0.11 Mod Conversion Guide

0.11 Mod Conversion Guide

From BeamNG

Revision as of 00:49, 4 November 2019 by Toron Beldevar (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In version 0.11, we added nitrous support, over torque damage, afterfire, and other changes to engine simulation. To update your engines to utilize the new features, follow this guide.

The new code:

["n2o_system","", "Nitrous Oxide System"],

"uiName":"Gearbox",

//exhaust
"particulates":0.05
"instantAfterFireCoef": 0.5,
"sustainedAfterFireCoef": 1,
		
"maxTorqueRating": 340,
"maxOverTorqueDamage": 300,

The changes are put into an engine file like so:

//exhaust
        "particulates":0.05
        "instantAfterFireCoef": 0.5,
        "sustainedAfterFireCoef": 1,
//engine durability
        "cylinderWallTemperatureDamageThreshold":140
        "headGasketDamageThreshold":1500000
        "pistonRingDamageThreshold":1500000
        "connectingRodDamageThreshold":2000000
		
        "maxTorqueRating": 2500,
        "maxOverTorqueDamage": 200,
    "slots": [
        ["type", "default", "description"]
        ["barstow_exhaust_R","barstow_exhaust_R", "Right Exhaust"],
        ["barstow_exhaust_L","barstow_exhaust_L", "Left Exhaust"],
        ["barstow_transmission","barstow_transmission_3A", "Transmission"],
        ["barstow_intake_v8_423","barstow_intake_v8_423", "Intake",{"coreSlot":true}],
        ["n2o_system","", "Nitrous Oxide System"],
    ],
    "gearbox": {
        "uiName":"Gearbox",
        "gearRatios":[-3.28, -5.16, -10.0, 0, 10.0, 7.73, 7.16, 6.72, 5.56, 5.11, 4.51, 4.06, 3.62, 3.13, 2.67, 2.12, 1.62, 1.28, 1.07, 0.86, 0.69, 0.58],
        "friction": 5,
    },

Explanation of the code:

"uiName":"Gearbox",
  • Insert explanation here*
["n2o_system","", "Nitrous Oxide System"],

This is the part slot for NOS support, required if you want your engine to have nitrous.

"maxTorqueRating": 2500,

This is the maximum torque (in Nm) that the engine can handle.

"maxOverTorqueDamage": 200,

This is how much torque you can go over the maximum before engine malfunction.

"sustainedAfterFireCoef": 1,
  • Insert explanation here*
"instantAfterFireCoef": 0.5,
  • Insert explanation here*
Vehicle Creation
Get started: Introduction to Vehicle Creation
JBeam
Overview
Physics
Dynamics
Visuals
Extras
Upkeep
Deprecated
See also: JBeam ExamplesJBeam Physics Theory