Game Development Community

Problem with HEAD - Error, bad range in getBinRange

by Roelf "TheRoDent" Diedericks · in Torque Game Engine · 10/27/2004 (4:42 am) · 5 replies

I keep getting an assert in sim/sceneObject.cc line 254

"Error, bad range in getBinRange" when running "TorqueDemo_DEBUG -game demo" when accessing the "Example: FPS multiplayer" of the torque demo.
This happens just after "Loading Objects" whilst loading the mission.

Compiled with VC6, GCC3 I keep getting the same. Release build just crashes, naturally...

Any ideas, tips?

#1
10/27/2004 (4:44 am)
Is this a clean HEAD??
#2
10/27/2004 (5:20 am)
Have you altered the code in anyway? added resources?
#3
10/27/2004 (6:57 am)
Completely clean checkout.
#4
10/27/2004 (7:04 am)
I have an idea it could have to do with floating point precision for the assert. I've now commented out the assert and things run just fine.
#5
10/27/2004 (7:06 am)
I've tried this, for instance - Example:
if (max >=min) {
	__asm {
	int 03}
}
AssertFatal(max >= min, "Error, bad range! in getBinRange");

and the int03 gets executed during engine initialisation even!

I sorta recall that comparison operators on floats can be very dodgy. Where was that again?