Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Errors in loading new level. Solution? #359202
02/16/11 05:56
02/16/11 05:56
Joined: Aug 2008
Posts: 81
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

Joined: Aug 2008
Posts: 81
I'm getting the following errors...

"Entity not a physics object in CarInit"
"Empty pointer in RRInit"

I don't know how to fix it. So I really need your help guys. Whenever I load a new level it will pop up an error above. However, if I click ok the game works just fine.

But I want to solve this error once and for all.

btw, im using the car demo example. The error has something to do in this part of code.

Quote:

action RRInit()
{
set(my,PASSABLE);
while (!pChassis) { wait(1);}
pRR=my;
InitWheel();
// make wheel constraint pointing up
wheelRR= phcon_add(PH_WHEEL, pChassis, my);
phcon_setparams1(wheelRR, my.x, vecUp, vecRight);
phcon_setparams2(wheelRR, vector(0,0,0), nullvector, vector(suspensionERP, suspensionCFM,0));
reset(my,PASSABLE);

//vec_set(my,vector(-426,-5788,69));

}

action CarInit()
{
player = me;
c_setminmax(my);
my.flags |= ZNEAR;

// build a car and wait til all wheels are ready
ChassisInit();
my.material = mat_metal;

while (wheelCounter<4) { wait(1); }
signallights();
UpdateSpeed(); // update rear wheel speed (continuous)
SpeedControl();// change speed (continuous)
SteerControl();// change heading (continuous)
}


I'm also getting pointer errors.

Because of this my car won't move.

Please help me.

Last edited by jpxtreme; 02/16/11 15:10.
Re: Errors in loading new level. Solution? [Re: jpxtreme] #359280
02/16/11 16:36
02/16/11 16:36
Joined: Aug 2008
Posts: 81
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

Joined: Aug 2008
Posts: 81
anyone pls help me.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1