ODE Middleware

Hi,

I finally found some time to continue the game and I have a problem, which I don’t realy understand because I do almost exactly the same as you in your map script.

I am trying to load a gun:

firearmtest = Firearm()  #<--basically your gun class
firearmtest.loadConfig("config/guns/P90/main.txt") #<-- this does not matter
firearmtest.setupGeomAndPhysics(g.map, (0,0,10))  #<--Here the error occurs

The error message is:

Traceback (most recent call last):
  File "test.py", line 72, in <module>
    firearmtest.setupGeomAndPhysics(g.map, (0,0,10))
  File "/home/filip/develop/panda-shooter/dev/new/pickables.py", line 45, in setupGeomAndPhysics
    DynamicObject.__init__(self, map)
  File "/home/filip/develop/panda-shooter/dev/new/odeWorldManager.py", line 456, in __init__
    DynamicObjectNoCCD.__init__(self, map)
  File "/home/filip/develop/panda-shooter/dev/new/odeWorldManager.py", line 342, in __init__
    StaticObject.__init__(self, map)
TypeError: unbound method __init__() must be called with StaticObject instance as first argument (got Firearm instance instead)
Segmentation fault

I am a bit confused. I know why it has Firearm as “self”, but firearm is an Extension of StaticObject… so I dont understand the problem…

I hope you know what to do =)

Thank you very much
blenderkid