Game Development Community

Car speed?

by Jeff Wilkinson · in Torque Game Engine · 12/21/2003 (8:59 pm) · 10 replies

I am trying to make my car go faster then 40 mph in the torque demo but am having a hard time doing it. I have already tried messing around with all the settings in the car.cs file and also I tried deleting the car.cs.dso as someone suggested thinking the settings did not take effect but nothing so far has worked. Dose anyone have any suggestions I could try out?

#1
12/21/2003 (9:36 pm)
Try adjusting the maxWheelSpeed value in car.cs. I set it to 100 and it jumped well over 40mph.

And yes, you must delete car.cs.dso for the new value to take effect. The DSO is a compiled version of the CS file (it gets recompiled when the script is loaded if it doesn't exist, otherwise the game will ignore the CS file and just load the DSO).

-Nerseus
#2
12/22/2003 (4:32 am)
You do not have to delete the .dso file. The Torque Engine will not ignore the new version and it will see that you updated the car.cs file and will give you a new car.cs.dso.

This particular car.cs.dso will get created when you start you game, not when you start torque.

A new car.cs.dso will not be created if it does not compile. (See the console.log for details on failures to compile.)

The one sort of "exception" would be the default.bind.cs. This file is over ridden be the config.cs and config.dso which is automatically created on the client when the game is executed. As a result if you update something in the default.bind.cs you will need to delete the config.cs and config.dso in order for your changes to take effect.
#3
12/22/2003 (2:29 pm)
Deleting the .dso will guarantee that then engine will recompile, or attempt to recompile the new .cs file.
#4
12/22/2003 (3:13 pm)
Harold is right there. I should have mentioned that I do often delete all the .dso files before running. It ensures that my changes are there and if it fails to compile I will notice because all functionality will be gone rather than having the "same thing" as before.
#5
12/22/2003 (9:11 pm)
When I change the maxWheelspeed to 100 the car is uncontrolable and drives around in circles!
#6
12/22/2003 (9:15 pm)
Then don't set it so high :)
I was only pointing out which value to change to get the max speed up'd. I'd suggest tweaking some other values to see their affect.

-Nerseus
#7
12/22/2003 (10:01 pm)
Heh, I often have a bit of fun with that.

One thing, without a wheel, it is REALLY hard to control the car in Torque at high speed. I think it's because it's easy to steer/adjust the wheels even when they're in contact with the ground, and also because (at least how I end up tuning it to make it go fast) the wheels seem to have such an incredible amount of inertia and driving force for the car that any bouncing at all precipitates a gradual and worsening series of overcompensations as those voracious, twenty-ton wheels bite into the ground again and again and again, on each bounce.

Ahhh, the fun -- one of my cooler creations is my JUMPOMETER. At informal LANs (4-6 of us) we invent games, like 'who can jump the farthest in 1 minute', and we use the jumpometer (which is just a script with 1 variable that records the max time you're airborne) to see who can do it the best.

The other impromptu game is an old favorite -- tag. Yes, tag. In fact, on the Playstation 2, one of those offroad 4x4 games -- BORING-ASS game, but playing tag could be absolutely sick, especially driving around some of the huge buildings.

You know . . . vehicle tag could be a great game.

/me scuttles to Torque, then realizes he has a fuckload of unfun programming that he DIDN'T get done today, and decides to sleep a little instead.
#8
12/22/2003 (10:41 pm)
Good ideas. Ought to get hacked into the racing mod right quick by some aspiring scripter. ;)
#9
12/23/2003 (1:03 am)
Those few ideas would be great examples of scripting.
#10
12/23/2003 (6:04 pm)
@Jeff mostly.

When I was first attempting to make it go faster(Speed is neat!) it would spin in circle on it's own. Just playing with it a litte I found that it handles much better at high speed if you make it front wheel drive or all wheel drive. I actually found this out by driving backwards, weird, so BTW rear wheel stear(like some forklifts) works pretty well with front wheel drive too.