Python

General debates and discussion about the Guild of Writers and Age creation

Postby Robert The Rebuilder » Mon Dec 11, 2006 9:17 pm

Here are the properties of the pistons in the FuncChk01 age:

float mass = 1.0
float rc = 0
float el = 0


Try reducing their properties to just those three.

Next, check to see that your age's python file JonaeHood.py is calling the appropriate methods of your Piston1/2/3 classes. That means that in JonaeHood.py, its __init__() method should be creating the Piston objects:

...
class JonaeHood(ptResponder,):
  __module__ = __name__

  def __init__(self):
      self.piston1 = Piston1()
      self.piston2 = Piston2()
      self.piston3 = Piston3()
      ...


And its OnFirstUpdate() should be calling the piston's OnFirstUpdate() methods:


  def OnFirstUpdate(self):
      ...
      self.piston1.OnFirstUpdate()
      self.piston2.OnFirstUpdate()
      self.piston3.OnFirstUpdate()


And finally, its OnServerInitComplete() should be calling the piston's OnServerInitComplete() methods:

  def OnServerInitComplete(self):
      ...
      self.piston1.OnServerInitComplete()
      self.piston2.OnServerInitComplete()
      self.piston3.OnServerInitComplete()


Put in print statements in the piston methods to make sure that they are being called.

Hopefully, that will cause them to move. Good luck!
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Postby Jonnee » Wed Dec 13, 2006 1:11 am

No. They still don't move.
Elfview shows this:

(12/13 09:00:10) __init__JonaeHoodObject v. 1
(12/13 09:00:10) Traceback (most recent call last):
(12/13 09:00:10) File "D:/Programme/Ubi Soft/Cyan Worlds/Uru - Ages Beyond Myst/Python/Src/JonaeHoodObject.py", line 157, in glue_getInst
(12/13 09:00:10) glue_inst = cl()
(12/13 09:00:10) File "D:/Programme/Ubi Soft/Cyan Worlds/Uru - Ages Beyond Myst/Python/Src/JonaeHoodObject.py", line 40, in __init__
(12/13 09:00:10) self.piston1 = Piston1()
(12/13 09:00:10) TypeError: 'module' object is not callable
(12/13 09:00:10) Python file JonaeHoodObject.py, instance not found.
(12/13 09:00:10) __init__JonaeHoodObject v. 1
(12/13 09:00:10) Traceback (most recent call last):
(12/13 09:00:10) File "D:/Programme/Ubi Soft/Cyan Worlds/Uru - Ages Beyond Myst/Python/Src/JonaeHoodObject.py", line 157, in glue_getInst
(12/13 09:00:10) glue_inst = cl()
(12/13 09:00:10) File "D:/Programme/Ubi Soft/Cyan Worlds/Uru - Ages Beyond Myst/Python/Src/JonaeHoodObject.py", line 40, in __init__
(12/13 09:00:10) self.piston1 = Piston1()
(12/13 09:00:10) TypeError: 'module' object is not callable
(12/13 09:00:10) Python file JonaeHoodObject.py, instance not found.

Slowly but surely I disbelieve if this was such a good idea to move these pistons. :D
If you would please give me your email adress in a PM I can show you the whole .py-files. But you don't need. I know you're busy and slowly I'm uncomfortable with this situation. Image

Jonnee
User avatar
Jonnee
 
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Postby Robert The Rebuilder » Fri Dec 15, 2006 9:23 am

Jonnee - check your PMs.

[EDIT] Nevermind, Jonnee - I just checked my email. I'll get back to you sometime over the weekend regarding the scripts.
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Postby Jonnee » Sat Dec 16, 2006 2:23 am

Ok, thank you. Take yourself time! Enjoy the weekend!!! :D
User avatar
Jonnee
 
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron