I don't create any objects before the gdk loop..This error does not show up for me right off the bat it seems so random I don't understand that..
dbMakeObjectBox ( 4500, 1024, 1, 1024 );
dbPositionObject ( 4500, 0, 0, 0 );
dbTextureObject ( 4500, 1 );
dbScaleObjectTexture ( 4500, 64.0f, 64.0f );
myPhysics.makeBox ( 4500, true, 1 );
myPhysics.kinematicOn ( 4500 );
That code is called directly after
dbSyncOn ( );
dbSyncRate ( 40 );
dbBackdropOff ( );
dbAutoCamOff ( );
dbSetCameraRange ( 0.5f, 30000.0f );
dbRandomize ( dbTimer ( ) );
dbHideMouse ( );
myPhysics.start ( false, 0.5, 0.5, 0.5 );
myPhysics.setGravity ( 0, -9.8, 0 );
LocalPlayer.Create ( 1, 2, 10, 1 );
ScalerX.Create ( 0 );
ScalerY.Create ( 1 );
ScalerZ.Create ( 2 );
myTools[0] = &mySpawnTool;
myTools[1] = &myScalerTool;
myTools[2] = &myPhysicsTool;
myPhysics.simulate ( );
Here is the localplayer.create function
this->PlayerModel = PlayerModelNumber;
this->CrosshairImg = CrosshairsImgNumber;
this->CrosshairSprite = CrosshairsSpriteNumber;
this->SkyModel = SkyboxModelNumber;
this->CurrentTool = 0;
this->Speed = 0.0f;
this->MaxTool = 2;
dbMakeObjectBox ( this->PlayerModel, 1.0f, 3.0f, 1.0f );
dbTextureObject ( this->PlayerModel, 11 );
dbPositionObject ( this->PlayerModel, 0, 1, 0 );
myPhysics.makeCharacterController ( this->PlayerModel, 1, 45 );
dbRotateObject ( this->PlayerModel, 0, 0, 0 );
dbMakeObjectBox ( this->SkyModel, -3000, -3000, -3000 );
dbColorObject ( this->SkyModel, dbRGB ( 255, 255, 255 ) );
dbSprite ( this->CrosshairSprite, 0, 0, this->CrosshairImg );
dbHideSprite ( this->CrosshairSprite );
Here is the scaler.create function
this->Used = true;
this->Focused = false;
this->Which = Pos;
this->ModelNumber = Pos + 4600;
dbMakeObjectSphere ( this->ModelNumber, 0.3f );
if ( Pos == 0 )
{
dbColorObject(this->ModelNumber, dbRGB ( 0, 0, 255 ));
} else if ( Pos == 1 )
{
dbColorObject(this->ModelNumber, dbRGB ( 0, 255, 0 ));
} else if ( Pos == 2 )
{
dbColorObject(this->ModelNumber, dbRGB ( 255, 0, 0 ));
}
dbHideObject ( this->ModelNumber );
The project has gotten kinda large I can email you the entire thing if you'd like...
Add me to your MSN!
