Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / dbPhyMakeRigidBodyStaticMesh causes unhandled exception

Author
Message
Jonas
14
Years of Service
User Offline
Joined: 10th Aug 2005
Location: What day is it?
Posted: 5th Mar 2012 23:17
I can use dbPhyMakeRigidBodyStaticBox and the like but dbPhyMakeRigidBodyStaticMesh and dbPhyMakeRigidBodyStaticTerrain give me an unhandled exception error.

My use:
dbPhyMakeRigidBodyStaticMesh ( 261 );

Why am I the only person who can't get this to work?

Versions:
VS2008 Express
DarkGDK - Dark GDK Update - OCT10
Dark Physics - Dark GDK Update - 26th May 2009
(File Updated: 19th Jan 2010)
HowDo
16
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Mar 2012 08:59 Edited at: 8th Mar 2012 09:00
you need to use all the parameters for this and the other one to work meaning

dbPhyMakeRigidBodyStaticMesh ( ID, file$, material );

Dark Physics makes any hot drink go cold.
Jonas
14
Years of Service
User Offline
Joined: 10th Aug 2005
Location: What day is it?
Posted: 11th Mar 2012 21:41 Edited at: 11th Mar 2012 22:51
According to the documentation the file and the material id are optional parameters... is that wrong? I tried loading a mesh file at one point in my troubleshooting and got the same error. Will try a material number as well and post results but its kind of an annoying step seeing as how there's already a default material anyway.

Edit:
No good... using all the parameters now and same error. Any other thoughts?

Documentation:


My call:


And the terrain.x does exist and loads just fine.

Thanks for your help on this one so far. It has been a major thorn in my side.
HowDo
16
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Mar 2012 16:02
have you tried like this as the saved file must be in the same direcory as your game.




Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2019-09-16 17:04:24
Your offset time is: 2019-09-16 17:04:24