vehdata.lua
The vehdata.lua is the file responsible for storing all C.H.A.S.E.R vehicle profiles
In order to create a tire profile, inside the vehicledata
key, fill the tire profile in this manner:
(P.S: Like mentioned, the keyname has to be the same names as the yft, so "nero.yft"
becomes "nero"
)
vehicledata = {
nero = {
iselectric = false,
ismotorcycle = false,
dragcoeff = 0.3,
basegacc = 1.4,
torqueCurve = {
{rpm = 1000.0, torque = 872.7},
{rpm = 1100.0, torque = 991.7},
{rpm = 1200.0, torque = 1090.9},
{rpm = 1300.0, torque = 1174.8},
{rpm = 1400.0, torque = 1246.8},
{rpm = 1500.0, torque = 1309.1},
{rpm = 1600.0, torque = 1363.6},
{rpm = 1700.0, torque = 1411.8},
{rpm = 1800.0, torque = 1454.5},
{rpm = 1900.0, torque = 1492.8},
{rpm = 2000.0, torque = 1527.3},
{rpm = 2100.0, torque = 1558.4},
{rpm = 2200.0, torque = 1586.8},
{rpm = 2300.0, torque = 1600.0},
{rpm = 2400.0, torque = 1600.0},
{rpm = 2500.0, torque = 1600.0},
{rpm = 2600.0, torque = 1600.0},
{rpm = 2700.0, torque = 1600.0},
{rpm = 2800.0, torque = 1600.0},
{rpm = 2900.0, torque = 1600.0},
{rpm = 3000.0, torque = 1600.0},
{rpm = 3100.0, torque = 1600.0},
{rpm = 3200.0, torque = 1600.0},
{rpm = 3300.0, torque = 1600.0},
{rpm = 3400.0, torque = 1600.0},
{rpm = 3500.0, torque = 1600.0},
{rpm = 3600.0, torque = 1600.0},
{rpm = 3700.0, torque = 1600.0},
{rpm = 3800.0, torque = 1600.0},
{rpm = 3900.0, torque = 1600.0},
{rpm = 4000.0, torque = 1600.0},
{rpm = 4100.0, torque = 1600.0},
{rpm = 4200.0, torque = 1600.0},
{rpm = 4300.0, torque = 1600.0},
{rpm = 4400.0, torque = 1600.0},
{rpm = 4500.0, torque = 1600.0},
{rpm = 4600.0, torque = 1600.0},
{rpm = 4700.0, torque = 1600.0},
{rpm = 4800.0, torque = 1600.0},
{rpm = 4900.0, torque = 1600.0},
{rpm = 5000.0, torque = 1600.0},
{rpm = 5100.0, torque = 1600.0},
{rpm = 5200.0, torque = 1600.0},
{rpm = 5300.0, torque = 1600.0},
{rpm = 5400.0, torque = 1600.0},
{rpm = 5500.0, torque = 1600.0},
{rpm = 5600.0, torque = 1600.0},
{rpm = 5700.0, torque = 1600.0},
{rpm = 5800.0, torque = 1600.0},
{rpm = 5900.0, torque = 1600.0},
{rpm = 6000.0, torque = 1600.0},
{rpm = 6100.0, torque = 1600.0},
{rpm = 6200.0, torque = 1600.0},
{rpm = 6300.0, torque = 1600.0},
{rpm = 6400.0, torque = 1600.0},
{rpm = 6500.0, torque = 1600.0},
{rpm = 6600.0, torque = 1600.0},
{rpm = 6700.0, torque = 1600.0},
{rpm = 6800.0, torque = 1600.0},
{rpm = 6900.0, torque = 1600.0},
{rpm = 7000.0, torque = 1600.0},
{rpm = 7100.0, torque = 1580.7},
},
canuselaunchcontrol = true,
launchcontrolrpm = 5500,
hasstockflywheel = true,
flywheelweight = 2.2,
hasstockdifferential = true,
frontdifflock = 100,
reardifflock = 100,
transmissiontype = "sequential",
gearratios = {-3.776, 3.776, 2.35, 1.795, 1.345, 1.11, 0.91, 0.86, 0.7, 0.5},
finaldrive = 0.95,
automaticshiftpoint = 0.2,
weight = 1972.0,
turbodata = {
compressorsize = 0,
peakturbodecayboost = 0,
turbodecaypoint = 0.0,
maxtrboostpmax = 0.0,
maxtrboostpmin = 0.0,
maxtrboostpminprct = 0,
maxtrboostpmaxprct = 0,
booststartpoint = 0.0,
boosttype = 3,
},
gearboxammount = 7,
topspeed = 440,
tyremodel = "slick",
brakecapacity = 1.0,
brakedistribution = 0.55,
lstractionlossmulti = 1.15,
tracitionlossmulti = 1.0,
arbstrenght = 0.95,
arbbiasfront = 0.55,
suspensionraise = 0.0,
suspensionforce = 2.74,
suspensionrebounddamping = 2.15,
suspensioncompressiondamping = 1.48,
},
}
iselectric:
Is vehicle electric?
ismotorcycle:
Is vehicle a bike?
dragcoeff:
Usually estimated cd (drag coefficient) cars usually are between 0.15 to 0.4 bikes are between 0.5 and 1.0
basegacc:
The amount of acceleration in G's that will be exerced into the first gear, refer to the math help section for learning how to calculate an estimative.
When setting up a electric car, consider the value x 5, so to setup a gas car value of 1.0 you’d need to input a value of ~0.2
torqueCurve:
RPM in rotations per minute, Torque in Newton Meters, fill like this:
{rpm = 1000.0, torque = 687.5},
canuselaunchcontrol:
Can this vehicle use launch control?
launchcontrolrpm:
At what RPM should this vehicle use launch control?
hasstockflywheel:
Should the car have rpm decayment by default?
flywheelweight:
Time in seconds to rpm decayment
hasstockdifferential:
Should the car have differentials by default?
(If disabled, the car will not drift.)
frontdifflock:
Legacy feature, the value here doesn't matter.
reardifflock:
Legacy feature, the value here doesn't matter.
transmissiontype:
What sort of transmission the car has. Valid Inputs:
"automatic"
"sequential"
"manual"
gearratios:
A Table containing the gear ratios.
{-2.25, 2.25, 1.61, 1.19, 0.92, 0.75, 0.62, 0.55, 0.5, 0.5}
Always add one extra gear ratio to account for transmission upgrade, once that's done fill the rest with 0.5, the limit is always 10 (1st index being reverse) + 9 gears, do not go over it.
finaldrive:
Simulated final drive to reach the desired topspeed on the last gear, learn how to calculate it here.
automaticshiftpoint:
The point where it should shift in percentage, from 1.0 to 0.0,
thus 0.10 = shift at 90% of the rev range. (0.90 RPM)
weight:
The vehicle weight in KG.
turbodata:
Leave all at 0 if N/A, if using a supercharger, only set the compressorsize, and leave everything else at 0 You can learn to generate a turbo curve and values at this section: Valid Boost ID's: 0 = Turbo 1 = Supercharger 3 = N/A / Disabled
Utilizing the turbo viewer toolgearboxammount:
Amount of gears the vehicle has
topspeed:
Estimated max vehicle speed in KM/H
tyremodel:
The tyre model the car should used, tyre models are defined in tiredata.lua
If set to nil, peak grip will load from handling.meta.
brakecapacity:
The braking capacity defined in %, as braking can only go as much as the grip goes, so 100% = all breaking the amount of grip can handle, and so on.
If set to nil, will load from handling.meta.
brakedistribution:
Braking distribution in relation to the front wheels, in %, same as the power distribution, but usually you want it slightly more at the front (EX: 55%)
If set to nil, will load from handling.meta.
lstractionlossmulti:
The traction loss multiplier, basically how the tire loses traction in regards to terrain like dirt, sand, etc The higher it is, the worse the off-road performance.
If set to nil, will load from handling.meta.
tracitionlossmulti:
The traction loss multiplier, basically how the tire loses traction in regards to terrain like dirt, sand, etc The higher it is, the worse the off-road performance.
If set to nil, will load from handling.meta.
arbstrenght:
Anti roll bar strength, 0 to 100 %, the more, the more stiffer and less body roll
If set to nil, will load from handling.meta.
arbbiasfront:
Anti roll bar distribution, in %, 100 = only front has a ARB, 0 = Only rear has a ARB, anything in between will distribute the arb force in relation to the front wheels.
If set to nil, will load from handling.meta.
suspensionraise:
Doesn't do anything, currently disabled.
If set to nil, will load from handling.meta.
suspensionforce:
Suspension force, like the handling.meta, no units specified, so you'll need to tweak by feeling.
If set to nil, will load from handling.meta.
suspensionrebounddamping:
Suspension rebound force, like the handling.meta, no units specified, so you'll need to tweak by feeling.
If set to nil, will load from handling.meta.
suspensioncompressiondamping:
Suspension compression force, like the handling.meta, no units specified, so you'll need to tweak by feeling.
If set to nil, will load from handling.meta.
Last updated