Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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), 886 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 6 1 2 3 4 5 6
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 Offline OP
User
Marky Mark  Offline 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 Offline
Expert
broozar  Offline
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 Offline OP
User
Marky Mark  Offline 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] #55389
09/19/05 21:30
09/19/05 21:30
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
Quote:

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^^




Do you know where is the problem in the script?


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: [Newton] car problem [Re: Marky Mark] #55390
09/20/05 05:07
09/20/05 05:07
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
sorry, i didn´t look further into your script, it seemed too long. and, btw, i´m no scripting expert. sry

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 Offline OP
User
Marky Mark  Offline 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 Offline OP
User
Marky Mark  Offline 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 Offline OP
User
Marky Mark  Offline 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 Offline
Developer
Asse  Offline
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
Re: [Newton] car problem [Re: Asse] #55395
09/22/05 13:56
09/22/05 13:56
Joined: Mar 2005
Posts: 514
Brazil
Carloos Offline
User
Carloos  Offline
User

Joined: Mar 2005
Posts: 514
Brazil
I think your car keeps falling for another reason. I used to have this problem very often when I played with newton for the firs times, but now I can make it work almost all the time in my project. There´s something mistical with it lol.

Are you working on a demo ? Do you have a Newton car demo ? I started loading a demo level , studing the newton parameters and then deleting the car and tyres and inserting mine ones, and made it a thousand times till my car finally got his tyres and fall in the ground with his wonderfull working suspension. Someone told you that you have to group the tyres before group them with the car model ? Are you placing your car far from the ground ? Arent you by mistake grouping something else with the car or tires ?

Cya

Page 4 of 6 1 2 3 4 5 6

Moderated by  HeelX, Spirit 

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