Is OgreOde broken??

cxxD

03-03-2010 15:48:50

Hi guys,

i tried to use ogreode for my project (written in python-ogre) but somehow i cant run the code, especially this line:

body = ode.Body(world)

i think this is quite an often used line so this has to be my fault (and not ogreode's). Anyone who can help me?
[or someone please do some ogre-ode tutorials, those I've found seem a bit outdated)

I'm using pyogre 1.6

########
edit:
it crashes without any signs in the debug log or something like that... it loads the ressources and then it gets killed... this is weird

when i try to import the module in the shell i get errors but it apparently works when i run the program, the line quoted above does work in shell, too. This is really weird...

it even gets weirder... :) yesterday i could call the body function in the shell... but now its gone... i'm NOT kidding

dermont

04-03-2010 00:19:39

Hi guys,

i tried to use ogreode for my project (written in python-ogre) but somehow i cant run the code, especially this line:

body = ode.Body(world)

i think this is quite an often used line so this has to be my fault (and not ogreode's). Anyone who can help me?
[or someone please do some ogre-ode tutorials, those I've found seem a bit outdated)

I'm using pyogre 1.6

########
edit:
it crashes without any signs in the debug log or something like that... it loads the ressources and then it gets killed... this is weird

when i try to import the module in the shell i get errors but it apparently works when i run the program, the line quoted above does work in shell, too. This is really weird...

it even gets weirder... :) yesterday i could call the body function in the shell... but now its gone... i'm NOT kidding


Your problems appear specific to python-ogre, there could be a number of reasons for your crash, you would probably be better posting on the python-ogre forum/developers group:
viewforum.php?f=3
http://groups.google.com/group/python-ogre-developers

From your post I'm guessing that your root problem may be that your OgreOde world is not valid, that is you created ode.World(self.sceneManager) before creating the sceneManager.
viewtopic.php?f=3&t=7398&p=43432&hilit=ogreode#p43432

cxxD

04-03-2010 15:36:43

Thanks dude,

i knew it would be crap to call a scenemanager that didnt exist, therefore this cant be the problem...

thanks for the links... checking them out as soon as i can

Are the C++ (or whatever) function names not the same as in Python?? because when i type dir(ode) [what shows all functions inside a module] i get all functions ill need (Body too).