Page 2 of 2

PostPosted: Mon Dec 11, 2006 9:17 pm
by Robert The Rebuilder
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!

PostPosted: Wed Dec 13, 2006 1:11 am
by Jonnee
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

PostPosted: Fri Dec 15, 2006 9:23 am
by Robert The Rebuilder
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.

PostPosted: Sat Dec 16, 2006 2:23 am
by Jonnee
Ok, thank you. Take yourself time! Enjoy the weekend!!! :D