1 registered members (Ayumi),
886
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: [Newton] car problem
[Re: Marky Mark]
#55386
09/18/05 03:14
09/18/05 03:14
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
and I still get the error message...
if you want to test it, the wads are included in the folder, just re-locate them with the Texture Manager in WED.
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: [Newton] car problem
[Re: Marky Mark]
#55387
09/18/05 14:48
09/18/05 14:48
|
Joined: Jun 2005
Posts: 4,875
broozar
Expert
|
Expert
Joined: Jun 2005
Posts: 4,875
|
i got it. your erreor does not depend on the skybox, it occurs even if it´s deleted. so there are several possibilities:
a) you didn´t include the cls file properly b) you have another block in your level with a sky texture that i´m unable to find c) your car action is strange (the tutorial car code looks different)
[edit] AAAAAAAAAAAAAAAAHHH! i don´t believe it! look at the level strings u typed in your v0_1 wdl ^^ man, load YOUR level, not the Vehicle_playgrond and all works fine ^^
LOL
and, btw, check your camera script, it produces funny errors... eg, it sets your car to the camera position after a few seconds and gets stuck^^
Last edited by DaBro0zar; 09/18/05 14:56.
|
|
|
Re: [Newton] car problem
[Re: broozar]
#55388
09/18/05 19:39
09/18/05 19:39
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
LOL.. shame on me! hmm for the camera.. what should I do
EDIT: yeah it works, but my car is in the air at 0,0 :P
Last edited by Marky Mark; 09/18/05 19:42.
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: [Newton] car problem
[Re: broozar]
#55391
09/20/05 14:47
09/20/05 14:47
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
Ok thanks anyway.. Anyone know what I should do?
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: [Newton] car problem
[Re: Marky Mark]
#55392
09/20/05 15:01
09/20/05 15:01
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
This is my camera code.. The problem is : When the game starts, my car is in the air and start to fall to the ground. Before reaching the ground, he is teleported to the default camera position at 0,0...
starter move_camera() { camera.arc=72; camera.clip_near=20; camera.clip_far=24000;
var cam_ang[3]; var cam_dist=500; cam_ang.pan=180; cam_ang.tilt=30; cam_ang.roll=0;
while(!p_vehicle){wait(1);}
while(1) { if(mouse_right) { cam_ang.pan+=10*mouse_force.x; cam_ang.tilt=clamp(cam_ang.tilt+(10*mouse_force.y),5,80); } cam_dist=clamp(cam_dist-mickey.z,200,2000);
camera.x=p_vehicle.x+cos(cam_ang.pan)*(cam_dist*cos(cam_ang.tilt)); camera.y=p_vehicle.y+sin(cam_ang.pan)*(cam_dist*cos(cam_ang.tilt)); camera.z=p_vehicle.z+sin(cam_ang.tilt)*cam_dist;
vec_set(temp,p_vehicle.x); vec_sub(temp,camera.x); vec_to_angle(camera.pan,temp);
wait(1); } }
THIS is in my main:
dll_handle=newtonHandle; NewtonAddMap(s_level,0);
Last edited by Marky Mark; 09/20/05 21:51.
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: [Newton] car problem
[Re: Marky Mark]
#55393
09/20/05 21:08
09/20/05 21:08
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
Maybe I have to do something with my CLS??
Last edited by Marky Mark; 09/20/05 21:52.
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: [Newton] car problem
[Re: Marky Mark]
#55394
09/22/05 13:34
09/22/05 13:34
|
Joined: Feb 2005
Posts: 728 Germany, Berlin
Asse
Developer
|
Developer
Joined: Feb 2005
Posts: 728
Germany, Berlin
|
Don't make a starter! Code:
function main() { wait(3); level_load(wmb_Level);
wait(1); dll_handle = newtonHandle; NewtonAddMap(wmb_Level, splashscreen);
camera.arc=72; camera.clip_near=20; camera.clip_far=24000;
var cam_ang[3]; var cam_dist=500;
cam_ang.pan=180; cam_ang.tilt=30; cam_ang.roll=0; while(!p_F360) { wait(1); } while(1) { if(mouse_right) { cam_ang.pan+=10*mouse_force.x; cam_ang.tilt=clamp(cam_ang.tilt+(10*mouse_force.y),5,80); } cam_dist=clamp(cam_dist-mickey.z,200,2000); camera.x=p_F360.x+cos(cam_ang.pan)*(cam_dist*cos(cam_ang.tilt)); camera.y=p_F360.y+sin(cam_ang.pan)*(cam_dist*cos(cam_ang.tilt)); camera.z=p_F360.z+sin(cam_ang.tilt)*cam_dist; vec_set(temp,p_F360.x); vec_sub(temp,camera.x); vec_to_angle(camera.pan,temp); wait(1); } }
A6.31.4 Commercial
AMD Athlon XP 2400+
Radeon 9800Pro
512MB DDR-Ram
Windows XP Professional SP2
3D GameStudio Magazin
|
|
|
|