enginedata.lua

The enginedata.lua file is responsible for holding all data required to call an engineswap. You can learn how to generate the necessary data here:

Creating an engineswap profile

Once you have the proper data, In order to create a engine swap profile, inside the enginedata key, fill the engine swap profile in this manner: (P.S: The key name will be the name you will call on the engine swap, so in this case it's "Street_NA_I4")

enginedata = {
    Street_NA_I4 = { -- The key name will be the name you will call on the engine swap.
        name = "1.6L VVT I4",
        basegacc = 0.52589620480128,
        avgacc = 0.264,
        engineefficiency = 0.00018194348725017,
        torqueCurve = {
            {rpm = 1000.0, torque = 66.5},
            {rpm = 1100.0, torque = 75.6},
            {rpm = 1200.0, torque = 83.1},
            {rpm = 1300.0, torque = 89.5},
            {rpm = 1400.0, torque = 95.0},
            {rpm = 1500.0, torque = 99.8},
            {rpm = 1600.0, torque = 103.9},
            {rpm = 1700.0, torque = 107.6},
            {rpm = 1800.0, torque = 110.8},
            {rpm = 1900.0, torque = 113.8},
            {rpm = 2000.0, torque = 116.4},
            {rpm = 2100.0, torque = 118.8},
            {rpm = 2200.0, torque = 120.9},
            {rpm = 2300.0, torque = 122.9},
            {rpm = 2400.0, torque = 124.7},
            {rpm = 2500.0, torque = 126.4},
            {rpm = 2600.0, torque = 127.9},
            {rpm = 2700.0, torque = 129.3},
            {rpm = 2800.0, torque = 130.6},
            {rpm = 2900.0, torque = 131.9},
            {rpm = 3000.0, torque = 133.0},
            {rpm = 3100.0, torque = 134.1},
            {rpm = 3200.0, torque = 135.1},
            {rpm = 3300.0, torque = 136.0},
            {rpm = 3400.0, torque = 136.9},
            {rpm = 3500.0, torque = 137.8},
            {rpm = 3600.0, torque = 138.5},
            {rpm = 3700.0, torque = 139.3},
            {rpm = 3800.0, torque = 140.0},
            {rpm = 3900.0, torque = 140.7},
            {rpm = 4000.0, torque = 141.3},
            {rpm = 4100.0, torque = 141.9},
            {rpm = 4200.0, torque = 142.5},
            {rpm = 4300.0, torque = 143.1},
            {rpm = 4400.0, torque = 143.6},
            {rpm = 4500.0, torque = 144.1},
            {rpm = 4600.0, torque = 144.6},
            {rpm = 4700.0, torque = 145.0},
            {rpm = 4800.0, torque = 145.5},
            {rpm = 4900.0, torque = 145.9},
            {rpm = 5000.0, torque = 146.3},
            {rpm = 5100.0, torque = 146.7},
            {rpm = 5200.0, torque = 147.1},
            {rpm = 5300.0, torque = 147.4},
            {rpm = 5400.0, torque = 147.8},
            {rpm = 5500.0, torque = 148.1},
            {rpm = 5600.0, torque = 148.4},
            {rpm = 5700.0, torque = 148.8},
            {rpm = 5800.0, torque = 149.1},
            {rpm = 5900.0, torque = 149.3},
            {rpm = 6000.0, torque = 149.6},
            {rpm = 6100.0, torque = 149.9},
            {rpm = 6200.0, torque = 150.2},
            {rpm = 6300.0, torque = 150.4},
            {rpm = 6400.0, torque = 150.7},
            {rpm = 6500.0, torque = 150.9},
            {rpm = 6600.0, torque = 151.1},
            {rpm = 6700.0, torque = 151.4},
            {rpm = 6800.0, torque = 151.6},
            {rpm = 6900.0, torque = 151.8},
            {rpm = 7000.0, torque = 152.0},
            {rpm = 7100.0, torque = 151.9},
            {rpm = 7200.0, torque = 151.6},
            {rpm = 7300.0, torque = 151.1},
            {rpm = 7400.0, torque = 150.3},
            {rpm = 7500.0, torque = 149.4},
            {rpm = 7600.0, torque = 148.3},
            {rpm = 7700.0, torque = 145.7},
            {rpm = 7800.0, torque = 142.1},
            {rpm = 7900.0, torque = 137.5},
            {rpm = 8000.0, torque = 131.8},
            {rpm = 8100.0, torque = 125.2},
        },
        turbodata = { -- leave all at 0 if N/A, only fill compressor size if super charger, Contact Legacy_DMC for the turbo curve viewer tool in order to generate one.
            compressorsize = 0,
            peakturbodecayboost = 0,
            turbodecaypoint = 0.0,
            maxtrboostpmax = 0.0,
            maxtrboostpmin = 0.0,
            maxtrboostpminprct = 0,
            maxtrboostpmaxprct = 0,
            booststartpoint = 0.0,
            boosttype = 3, -- 0 For turbo, 1 For super charger, 3 For N/A / Force Disable
        },
        audiohash = "blista",
        flywheelweight = 2.6,
        size = 1.55,
    },
}

name :

The engine DISPLAY name.

basegacc:

The base acceleration for this engine in g's, automatically calculated by the chaser_getengineswapdata() export

avgacc :

The Average acceleration for this engine in g's, automatically calculated by the chaser_getengineswapdata() export

engineefficiency :

The efficiency for this engine in g/kg , automatically calculated by the chaser_getengineswapdata() export

torqueCurve:

The torque curve for this engine, simply copy it from the vehdata.lua of the vehicle you're creating an engineswap profile for.

turbodata:

The turbo profile for this engine, you can copy it if the original vehicle have, or create your own, instructions on how to do so can be found here.

audiohash:

The audiohash to define the engine sound for this engineswap profile.

flywheelweight:

The weight of the flywheel, the more the slower the rev decayment, the less the faster.

size:

The ammount of space this engine requires on the vehicle enginebay to be installed, you can check the space of the current vehicle enginebay on it's globalvehdata.lua entry or calling the chaser_getenginebaysize export.

Last updated