Game Development Community

"Bad World Box"

by Adam Brookman · in Torque Game Engine · 05/03/2005 (3:43 pm) · 1 replies

I have been trying to implement a Spiderman 2-ish chargeable jump for about a week now, to no avail. I go through the process of creating a dynamic variable in the player class and everything compiles fine. But then when I use the mvTriggerCount2++; statement the program crashes with an fatal error...

Quote:
Fatal: .\sdk\engine\sim\sceneobject.cc

Bad world box!

The game runs fine till I hit the jump button. I don't understand what sceneobject.cc has to do with the changes I made to player.h and player.cc. Help!

Edit: I am running the torqueDemo_DEBUG.exe if that helps anyone.

#1
03/03/2006 (4:48 am)
I know this is a bit late, but here is what appears to be happening (I'm getting these on debug builds as well by the way);

Something is calling either...
void SceneObject::resetRenderWorldBox()

or

SceneObject::resetWorldBox()

In both of these have a call to a function called...
AssertFatal(mWorldBox.isValidBox(), "Bad world box!");

This means check the objects world box and if it's valid continue, otherwise halt execution of the program.

This is so you can do a backtrace and figure out what is actually affecting your world box.

If I figure out whats causing my issue I'll let you know.
Also I don't think these asserts happen in a release build, if thats the case, then try looking at everything you changed and if you still don't see anything that could be causing the issue, maybe just do a release build and come back to it later, if your game proceeds normally under the release build. Not exactly good programming practice, but it's been my experience that the release build of TGE is surprisingly fault tolerant.