Auto Transmission type throws "vehicle exception"

Discussion in 'Mod Support' started by RedRoosterFarm, Jul 4, 2017.

  1. RedRoosterFarm

    RedRoosterFarm
    Expand Collapse

    Joined:
    May 3, 2016
    Messages:
    197
    I am having issues with adding automatic transmissions to my mod
    Code below:
    Code:
    "etk_transmission_6A_2010": {
        "information":{
            "authors":"BeamNG RedRoosterFarm",
            "name":"2010 6-Speed Auto Transmission",
            "value":2800,
        },
        "slotType": "etk_gavril_transmission",
        "slots": [
            ["type", "default", "description"],
            ["traveler_transfer_case","traveler_transfer_case_FWD", "Transfer Case"{"coreSlot":true}],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["torqueConverter", "torqueConverter", "mainEngine", 1],
            ["automaticGearbox", "gearbox", "torqueConverter", 1],
        ],
        "gearbox": {
            "gearRatios":[-3.21, 0, 4.12, 2.84, 2.28, 1.57, 1.00, 0.69],
            "parkLockTorque":2000,
            "oneWayViscousCoef":12,
            "gearChangeTime": 0.3,
            "friction": 1,
        },
        "torqueConverter": {
            "converterDiameter": 0.295,
            "converterStiffness":10,
            "couplingAVRatio":0.9,
            "stallTorqueRatio":1.8,
            "lockupClutchTorque":500,
        },
        "vehicleController": {
            "automaticModes":"PRNDS",
            "calculateOptimalLoadShiftPoints": true,
            "transmissionGearChangeDelay":0.5
            "gearboxDecisionSmoothingDown":1
            "gearboxDecisionSmoothingUp":2.5
            "lowShiftDownRPM":1500,
            "lowShiftUpRPM":2100,
            "torqueConverterLockupRPM":2000
            "torqueConverterLockupMinGear":2
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_gavril_transmission", ["etk_gavril_engine","etk_gavril_transmission"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--9 Speed Auto--
             {"selfCollision":false},
             {"collision":true}
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_transmission"},
             {"nodeWeight":28.5},
             ["tra1", 0.0, -1.0, 0.23],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              //--TRANSMISSION CONE--
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":9240600,"beamDamp":150},
              {"beamDeform":600000,"beamStrength":"FLT_MAX"},
              ["tra1","e1r"],
              ["tra1","e1l"],
              ["tra1","e3r"],
              ["tra1","e3l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    "etk_transmission_6A_2012": {
        "information":{
            "authors":"BeamNG RedRoosterFarm",
            "name":"2012 6-Speed Auto Transmission",
            "value":2800,
        },
        "slotType": "etk_gavril_transmission",
        "slots": [
            ["type", "default", "description"],
            ["traveler_transfer_case","traveler_transfer_case_FWD", "Transfer Case"{"coreSlot":true}],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["torqueConverter", "torqueConverter", "mainEngine", 1],
            ["automaticGearbox", "gearbox", "torqueConverter", 1],
        ],
        "gearbox": {
            "gearRatios":[-3.21, 0, 4.12, 2.84, 2.28, 1.45, 1.00, 0.69],
            "parkLockTorque":2000,
            "oneWayViscousCoef":12,
            "gearChangeTime": 0.3,
            "friction": 1,
        },
        "torqueConverter": {
            "converterDiameter": 0.295,
            "converterStiffness":10,
            "couplingAVRatio":0.9,
            "stallTorqueRatio":1.8,
            "lockupClutchTorque":500,
        },
        "vehicleController": {
            "automaticModes":"PRNDS",
            "calculateOptimalLoadShiftPoints": true,
            "transmissionGearChangeDelay":0.5
            "gearboxDecisionSmoothingDown":1
            "gearboxDecisionSmoothingUp":2.5
            "lowShiftDownRPM":1500,
            "lowShiftUpRPM":2100,
            "torqueConverterLockupRPM":2000
            "torqueConverterLockupMinGear":2
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_gavril_transmission", ["etk_gavril_engine","etk_gavril_transmission"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--9 Speed Auto--
             {"selfCollision":false},
             {"collision":true}
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_transmission"},
             {"nodeWeight":28.5},
             ["tra1", 0.0, -1.0, 0.23],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              //--TRANSMISSION CONE--
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":9240600,"beamDamp":150},
              {"beamDeform":600000,"beamStrength":"FLT_MAX"},
              ["tra1","e1r"],
              ["tra1","e1l"],
              ["tra1","e3r"],
              ["tra1","e3l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    "etk_transmission_9A": {
        "information":{
            "authors":"BeamNG RedRoosterFarm",
            "name":"9-Speed Auto Transmission",
            "value":2800,
        },
        "slotType": "etk_gavril_transmission",
        "slots": [
            ["type", "default", "description"],
            ["traveler_transfer_case","traveler_transfer_case_FWD", "Transfer Case"{"coreSlot":true}],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["torqueConverter", "torqueConverter", "mainEngine", 1],
            ["automaticGearbox", "gearbox", "torqueConverter", 1],
        ],
        "gearbox": {
            "gearRatios":[-3.81, 0, 4.70, 2.84, 1.91, 1.38, 1.00, 0.81, 0.70, 0.58, 0.45],
            "parkLockTorque":2000,
            "oneWayViscousCoef":12,
            "gearChangeTime": 0.3,
            "friction": 1,
        },
        "torqueConverter": {
            "converterDiameter": 0.295,
            "converterStiffness":10,
            "couplingAVRatio":0.9,
            "stallTorqueRatio":1.8,
            "lockupClutchTorque":500,
        },
        "vehicleController": {
            "automaticModes":"PRNDSM",
            "calculateOptimalLoadShiftPoints": true,
            "transmissionGearChangeDelay":0.5
            "gearboxDecisionSmoothingDown":1
            "gearboxDecisionSmoothingUp":2.5
            "lowShiftDownRPM":1500,
            "lowShiftUpRPM":2100,
            "torqueConverterLockupRPM":2000
            "torqueConverterLockupMinGear":2
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_gavril_transmission", ["etk_gavril_engine","etk_gavril_transmission"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--9 Speed Auto--
             {"selfCollision":false},
             {"collision":true}
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_transmission"},
             {"nodeWeight":28.5},
             ["tra1", 0.0, -1.0, 0.23],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              //--TRANSMISSION CONE--
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":9240600,"beamDamp":150},
              {"beamDeform":600000,"beamStrength":"FLT_MAX"},
              ["tra1","e1r"],
              ["tra1","e1l"],
              ["tra1","e3r"],
              ["tra1","e3l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    
    However the DCT and Manual transmissions work fine
    Code below:
    Code:
    "etk_gavril_transmission_6M": {
        "information":{
            "authors":"BeamNG RedRoosterFarm",
            "name":"6-Speed Manual Transmission",
            "value":1800,
        },
        "slotType": "etk_gavril_transmission",
        "slots": [
            ["type", "default", "description"],
            ["traveler_transfer_case","traveler_transfer_case_RWD", "Transfer Case"{"coreSlot":true}],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["frictionClutch", "clutch", "mainEngine", 1],
            ["manualGearbox", "gearbox", "clutch", 1],
        ],
        "gearbox": {
            "gearRatios":[-3.73, 0, 4.11, 2.32, 1.54, 1.18, 1.00, 0.85],
            "friction": 1,
        },
        "clutch": {},
        "vehicleController": {
            "transmissionShiftDelay":0.19,
            "lowShiftDownRPM":[0,0,0,3100,3300,3550,3700,3700]
            "lowShiftUpRPM":4700,
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_gavril_transmission", ["etk_gavril_engine","etk_gavril_transmission"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--6 Speed Manual--
             {"selfCollision":false},
             {"collision":true}
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_transmission"},
             {"nodeWeight":28.5},
             ["tra1", 0.0, -1.0, 0.375],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              //--TRANSMISSION CONE--
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":9240600,"beamDamp":150},
              {"beamDeform":600000,"beamStrength":"FLT_MAX"},
              ["tra1","e1r"],
              ["tra1","e1l"],
              ["tra1","e3r"],
              ["tra1","e3l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    "etk_gavril_transmission_6DCT": {
        "information":{
            "authors":"BeamNG RedRoosterFarm",
            "name":"6-Speed DCT Transmission",
            "value":1800,
        },
        "slotType": "etk_gavril_transmission",
        "slots": [
            ["type", "default", "description"],
            ["traveler_transfer_case","traveler_transfer_case_RWD", "Transfer Case"{"coreSlot":true}],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["dctGearbox", "gearbox", "mainEngine", 1],
        ],
        "gearbox": {
            "gearRatios":[-3.73, 0, 4.11, 2.32, 1.54, 1.18, 1.00, 0.85],
            "parkLockTorque":2000,
        },
        "clutch": {},
        "vehicleController": {
            "automaticModes":"PRNDM",
            "calculateOptimalLoadShiftPoints": false,
            "lowShiftDownRPM":[0,0,0,3300,3800,4000,4200,4200]
            "lowShiftUpRPM":5600,
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_gavril_transmission", ["etk_gavril_engine","etk_gavril_transmission"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--6 Speed Manual--
             {"selfCollision":false},
             {"collision":true}
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_transmission"},
             {"nodeWeight":28.5},
             ["tra1", 0.0, -1.0, 0.23],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              //--TRANSMISSION CONE--
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":9240600,"beamDamp":150},
              {"beamDeform":600000,"beamStrength":"FLT_MAX"},
              ["tra1","e1r"],
              ["tra1","e1l"],
              ["tra1","e3r"],
              ["tra1","e3l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    
    and here is the engine jbeam:

    Code:
    {
    "etk_gavril_engine_i6": {
        "information":{
            "authors":"RedRoosterFarm",
            "name":"3.6L V6 ETK-Gavril Engine",
            "value":5600,
        },
        "slotType": "etk_gavril_engine",
        "slots": [
            ["type", "default", "description"],
            ["etk_gavril_transmission","etk_gavril_transmission_6DCT", "Transmission"],
            ["etk_gavril_intake_i6","etk_gavril_intake_i6", "Intake",{"coreSlot":true}],
            ["traveler_radiator","traveler_radiator", "Radiator"],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["combustionEngine", "mainEngine", "dummy", 0],
        ],
        "mainEngine": {
            "torque":[
                ["rpm", "torque"],
                [0, 0],
                [350, 75],
                [700, 100],
                [1000, 160],
                [1500, 250],
                [2000, 280],
                [2500, 320],
                [3000, 325],
                [3500, 339],
                [4000, 349],
                [4500, 352],
                [5000, 349],
                [5500, 339],
                [6000, 325],
                [6500, 314],
                [7000, 275],
            ],
    
            "idleRPM":900,
            "maxRPM":8000,
            "revLimiterRPMDrop":100,
            "inertia":0.16,
            "friction":14,
            "dynamicFriction":0.0239,
            //"burnEfficiency":0.42,
            "burnEfficiency":[
                [0, 0.2],
                [0.05, 0.38],
                [0.4, 0.46],
                [0.7, 0.49],
                [1, 0.3],
            ],
            "torqueReactionNodes:":["e2r","e1r","e4r"],
            "particulates":0.02,
            "energyStorage": "mainTank",
            "requiredEnergyType":"gasoline",
    
            //cooling and oil system
            "thermalsEnabled":true,
            "engineBlockMaterial":"aluminum",
            "oilVolume":10,
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":200,
            "headGasketDamageThreshold":1500000,
            "pistonRingDamageThreshold":1500000,
            "connectingRodDamageThreshold":2000000,
    
            //node beam interface
            "waterDamage": {"[engineGroup]:":["engine_intake"]},
            "radiator": {"[engineGroup]:":["radiator"]},
            "engineBlock": {"[engineGroup]:":["engine_block"]},
            "breakTriggerBeam":"engine",
        },
        "vehicleController": {
            "clutchLaunchStartRPM":1500,
            "clutchLaunchTargetRPM":2000,
            //**highShiftDown can be overwritten by automatic transmissions**
            "highShiftDownRPM":[0,0,0,2000,2400,2800,3100,3200]
            //**highShiftUp can be overwritten by intake modifications**
            "highShiftUpRPM":5000
        },,
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_gavril_engine_i6", ["etk_gavril_engine","etk_gavril_transmission"]],
            ["etk_gavril_radtube_i6", ["etk_gavril_radiator","etk_gavril_engine"]],
            ["traveler_engbaycrap", ["traveler_body"]],
            
            ["traveler_radsupport", ["traveler_body"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             //--3.0L I6 Engine--
             {"selfCollision":false},
             {"collision":true},
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"etk_gavril_engine"},
             {"nodeWeight":22},
             {"engineGroup":"engine_block"},
             {"chemEnergy":2000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.13},
             ["e1r", -0.46, -1.285, 0.26],
             ["e1l", 0.30, -1.285, 0.26],
             ["e2r", -0.48, -2.1, 0.30],
             ["e2l", 0.30, -2.1, 0.30],
             {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false},
             {"engineGroup":["engine_block","engine_intake"]}
             ["e3r", -0.56, -1.365, 0.96],
             ["e3l", 0.40, -1.365, 0.96],
             ["e4r", -0.48, -2.2, 0.94{"isExhaust":true}],
             ["e4l", 0.30, -2.2, 0.94],
             {"engineGroup":""},
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":9990600,"beamDamp":150},
              {"beamDeform":999000,"beamStrength":"FLT_MAX"},
              //engine
              ["e1r","e1l"],
              ["e2r","e2l"],
              ["e3r","e3l"],
              ["e4r","e4l"],
    
              ["e1r","e2r"],
              ["e1l","e2l"],
              ["e3r","e4r"],
              ["e3l","e4l"],
    
              ["e1r","e3r"],
              ["e1l","e3l"],
              ["e2r","e4r"],
              ["e2l","e4l"],
    
              ["e2r","e3r"],
              ["e2l","e3l"],
              ["e2r","e3l"],
              ["e2l","e3r"],
    
              ["e1r","e4r"{"isExhaust":true}],
              ["e1l","e4l"],
              ["e1r","e4l"],
              ["e1l","e4r"],
    
              ["e1r","e2l"],
              ["e1l","e2r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
    
              ["e1r","e3l"],
              ["e1l","e3r"],
              ["e2r","e4l"],
              ["e2l","e4r"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    "etk_gavril_intake_i6": {
        "information":{
            "authors":"RedRoosterFarm",
            "name":"Stock Intake",
            "value":0,
        },
        "slotType" : "etk_gavril_intake_i6",
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etk_gavril_header_i6", ["etk_gavril_engine"]],
            ["etk_gavril_intake_i6", ["etk_gavril_engine","etk_gavril_radiator"]],
        ],
    },
    }
    
    Any Ideas what would cause this error?
     
    #1 RedRoosterFarm, Jul 4, 2017
    Last edited: Jul 4, 2017
  2. on3cherryshake

    on3cherryshake
    Expand Collapse

    Joined:
    May 12, 2015
    Messages:
    438
    I'm not sure, really, but can I make a suggestion?

    If I were you, I would change the 4th gear from 1.57 to 1.46. If you use the prime gear (1.57) for 4th instead of the normally used 4th gear (1.46), sure it will make the 3 to 4 change more tolerable, but the 4 to 5 change is horrendously long, lol :D

    Oh and, what is the difference between the 2010 and 2012 6-speed?
     
  3. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,268
    I added "}" in the end and it worked. Used 800 series as a test mule.
     
  4. on3cherryshake

    on3cherryshake
    Expand Collapse

    Joined:
    May 12, 2015
    Messages:
    438
    Yep, that should do it, it closes off the code.
     
  5. RedRoosterFarm

    RedRoosterFarm
    Expand Collapse

    Joined:
    May 3, 2016
    Messages:
    197
    If only that was the issue... All of the engine/gearbox items are in the same file and if the closing brace was missing I would have no vehicle showing up...
     
  6. on3cherryshake

    on3cherryshake
    Expand Collapse

    Joined:
    May 12, 2015
    Messages:
    438
    That is also true. Try copying the powertrain / torque converter / gearbox / vehicle controller code and putting it into a copy of the manual trans code.
     
  7. Goosah

    Goosah
    Expand Collapse
    Global Moderator
    BeamNG Team

    Joined:
    Aug 30, 2013
    Messages:
    790
    It's important to look in the console or beamng.log in documents/beamng.drive to find the actual content of the error, usually there is a decent hint.
     
  8. RedRoosterFarm

    RedRoosterFarm
    Expand Collapse

    Joined:
    May 3, 2016
    Messages:
    197
    Sorry I forgot to add the traceback :)
    Code:
    24.23798|E|libbeamng.Lua.Exception|lua/vehicle/controller/vehicleController.lua:1609: attempt to perform arithmetic on a nil value
    124.23800|E|libbeamng.Lua.Exception|=============== Stack Traceback >> START >>
    124.23801|E|libbeamng.Lua.Exception|(1) metamethod C function '__mul'
    124.23802|E|libbeamng.Lua.Exception|(2) Lua upvalue 'calculateOptimalLoadShiftPoints' at file 'lua/vehicle/controller/vehicleController.lua:1609'
    124.23803|E|libbeamng.Lua.Exception|  Local variables:
    124.23804|E|libbeamng.Lua.Exception|  torqueCurve = table: 0x36ce0fd8  {1:-14, 2:-14.002502802144, 3:-14.005005604289, 4:-14.007508406433, 5:-14.010011208578 (more...)}
    124.23805|E|libbeamng.Lua.Exception|  (for generator) = C function: next
    124.23806|E|libbeamng.Lua.Exception|  (for state) = table: 0x36d04890  {0:0, 1:4.7, 2:2.84, 3:1.91, 4:1.38, 5:1, 6:0.81, 7:0.7, 8:0.58, 9:0.45 (more...)}
    124.23807|E|libbeamng.Lua.Exception|  (for control) = number: nan
    124.23808|E|libbeamng.Lua.Exception|  k = number: 1
    124.23809|E|libbeamng.Lua.Exception|  v = number: 4.7
    124.23810|E|libbeamng.Lua.Exception|  shiftUp = nil
    124.23810|E|libbeamng.Lua.Exception|  shiftDown = nil
    124.23811|E|libbeamng.Lua.Exception|  currentGearRatio = number: 4.7
    124.23812|E|libbeamng.Lua.Exception|  nextGearRatio = number: 2.84
    124.23813|E|libbeamng.Lua.Exception|  previousGearRatio = number: 0
    124.23814|E|libbeamng.Lua.Exception|  (for index) = number: 7050
    124.23815|E|libbeamng.Lua.Exception|  (for limit) = number: 7900
    124.23816|E|libbeamng.Lua.Exception|  (for step) = number: 50
    124.23817|E|libbeamng.Lua.Exception|  i = number: 7050
    124.23818|E|libbeamng.Lua.Exception|  (*temporary) = nil
    124.23819|E|libbeamng.Lua.Exception|  (*temporary) = number: 4229
    124.23820|E|libbeamng.Lua.Exception|  (*temporary) = number: 1
    124.23821|E|libbeamng.Lua.Exception|  (*temporary) = number: 927.538
    124.23822|E|libbeamng.Lua.Exception|  (*temporary) = number: -0
    124.23823|E|libbeamng.Lua.Exception|  (*temporary) = number: 1201.78
    124.23823|E|libbeamng.Lua.Exception|  (*temporary) = boolean: false
    124.23824|E|libbeamng.Lua.Exception|  (*temporary) = string: "attempt to perform arithmetic on a nil value"
    124.23825|E|libbeamng.Lua.Exception|(3) Lua field 'init' at file 'lua/vehicle/controller/vehicleController.lua:1816'
    124.23826|E|libbeamng.Lua.Exception|  Local variables:
    124.23827|E|libbeamng.Lua.Exception|  jbeamData = table: 0x3597f490  {gearboxDecisionSmoothingUp:2.5, slotType:main, skinName:imperial, lowShiftDownRPM:table: 0x36d4dc88 (more...)}
    124.23829|E|libbeamng.Lua.Exception|  throttleSmoothingIn = number: 1
    124.23830|E|libbeamng.Lua.Exception|  throttleSmoothingOut = number: 2.5
    124.23831|E|libbeamng.Lua.Exception|  cvtGearRatioSmoothingIn = number: 20
    124.23832|E|libbeamng.Lua.Exception|  cvtGearRatioSmoothingOut = number: 5
    124.23833|E|libbeamng.Lua.Exception|  cvtTargetAVSmoothingIn = number: 0.5
    124.23834|E|libbeamng.Lua.Exception|  cvtTargetAVSmoothingOut = number: 2
    124.23835|E|libbeamng.Lua.Exception|  wheelSlipShiftUpSmoothingIn = number: 2
    124.23835|E|libbeamng.Lua.Exception|  wheelSlipShiftUpSmoothingOut = number: 20
    124.23839|E|libbeamng.Lua.Exception|  torqueConverter = table: 0x36cfc308  {lockupClutchDamp:4.7446051300137, inputName:mainEngine, children:table: 0x36cb5bf8 (more...)}
    124.23841|E|libbeamng.Lua.Exception|  hasEngine = boolean: true
    124.23842|E|libbeamng.Lua.Exception|  hasGearbox = boolean: true
    124.23843|E|libbeamng.Lua.Exception|  hasTorqueConverter = boolean: true
    124.23844|E|libbeamng.Lua.Exception|  shiftRPMNames = table: 0x36d4dc10  {1:lowShiftDownRPM, 2:highShiftDownRPM, 3:lowShiftUpRPM, 4:highShiftUpRPM (more...)}
    124.23845|E|libbeamng.Lua.Exception|  defaultShiftPoints = table: 0x36d4dc60  {lowShiftDownRPM:2000, highShiftDownRPM:3500, highShiftUpRPM:5000, lowShiftUpRPM:2500 (more...)}
    124.23846|E|libbeamng.Lua.Exception|  gearCount = number: 11
    124.23847|E|libbeamng.Lua.Exception|  gearCounter = number: 12
    124.23848|E|libbeamng.Lua.Exception|(4) Lua field 'init' at file 'lua/vehicle/controller.lua:153'
    124.23849|E|libbeamng.Lua.Exception|  Local variables:
    124.23850|E|libbeamng.Lua.Exception|  jbeamControllers = table: 0x36028058  {0:table: 0x3597f490, 1:table: 0x3597f768, 2:table: 0x3597fc58}
    124.23851|E|libbeamng.Lua.Exception|  controllers = table: 0x36d314f8  {vehicleController:table: 0x3597f490, traveler_navi:table: 0x3597f768, etkGauges:table: 0x3597fc58 (more...)}
    124.23852|E|libbeamng.Lua.Exception|  directory = string: "controller/"
    124.23853|E|libbeamng.Lua.Exception|  (for generator) = C function: next
    124.23854|E|libbeamng.Lua.Exception|  (for state) = table: 0x36d314f8  {vehicleController:table: 0x3597f490, traveler_navi:table: 0x3597f768, etkGauges:table: 0x3597fc58 (more...)}
    124.23854|E|libbeamng.Lua.Exception|  (for control) = number: nan
    124.23855|E|libbeamng.Lua.Exception|  k = string: "vehicleController"
    124.23856|E|libbeamng.Lua.Exception|  c = table: 0x3597f490  {gearboxDecisionSmoothingUp:2.5, slotType:main, skinName:imperial, lowShiftDownRPM:table: 0x36d4dc88 (more...)}
    124.23857|E|libbeamng.Lua.Exception|  filePath = string: "controller/vehicleController"
    124.23858|E|libbeamng.Lua.Exception|  controller = table: 0x36d56780  {setGearboxMode:function: 0x36d4d6d8, onSerialize:function: 0x36d4db28, shiftToGearIndex:function: 0x36d4d690 (more...)}
    124.23859|E|libbeamng.Lua.Exception|  data = table: 0x3597f490  {gearboxDecisionSmoothingUp:2.5, slotType:main, skinName:imperial, lowShiftDownRPM:table: 0x36d4dc88 (more...)}
    124.23860|E|libbeamng.Lua.Exception|(5) Lua global 'initSystems' at line 98 of chunk '"lua/vehicle/main.lua"]'
    124.23861|E|libbeamng.Lua.Exception|(6) Lua function '?' at line 246 of chunk '"lua/vehicle/main.lua"]'
    124.23862|E|libbeamng.Lua.Exception|  Local variables:
    124.23863|E|libbeamng.Lua.Exception|  path = string: "vehicles/traveler/"
    124.23866|E|libbeamng.Lua.Exception|  partConfigData = string: "{[\"vars\"]={[\"$camber_RR\"]=1,[\"$trackwidth_R\"]=0.305,[\"$toe_FL\"]=1.0005,[\"$toe_RR\"]=0.9995,[\"$camber_RL\"]=1,[\"$tirepressure_R\"]=43.8,[\"$toe_RL\"]=0.9995,[\"$toe_FR\"]=1.0005,[\"$camber_FL\"]=0.95,[\"$trackwidth_F\"]=0.34,[\"$tirepressure_F\"]=43.8,[\"$camber_FR\"]=0.95},[\"parts\"]={[\"traveler_door_FR\"]=\"traveler_door_FR\",[\"traveler_headlight_R\"]=\"traveler_headlight_R\",[\"gps\"]=\"none\",[\"traveler_strut_F\"]=\"traveler_strut_F\",[\"traveler_fueltank\"]=\"traveler_fueltank\",[\"traveler_steer\"]=\"traveler_steer_paddles\",[\"traveler_door_FL\"]=\"traveler_door_FL\",[\"traveler_glass\"]=\"traveler_glass\",[\"traveler_towhitch\"]=\"none\",[\"brakepad_F\"]=\"brakepad_F_sport\",[\"traveler_spring_R\"]=\"traveler_spring_R\",[\"tire_F_17x9\"]=\"tire_F_255_60_17_sport\",[\"wheel_F_5\"]=\"wheel_23b_17x9_F\",[\"traveler_seat_ML\"]=\"traveler_seat_ML\",[\"traveler_rollcage\"]=\"none\",[\"traveler_suspension_R\"]=\"traveler_suspension_R\",[\"etk_gavril_transmission\"]=\"etk_transmission_9A\",[\"traveler_wheeldata_R\"]=\"traveler_wheeldata_R\",[\"traveler_mirror_R\"]=\"traveler_mirror_R\",[\"traveler_transfer_case\"]=\"traveler_transfer_case_RWD\",[\"traveler_fender_R\"]=\"traveler_fender_R\",[\"traveler_roof_rack_accessory\"]=\"none\",[\"traveler_roof_rack\"]=\"traveler_roof_rack\",[\"skin_gauges\"]=\"traveler_gauges_imperial\",[\"traveler_door_RR\"]=\"traveler_door_RR\",[\"traveler_seats_R\"]=\"traveler_seats_R\",[\"traveler_taillight_L\"]=\"traveler_taillight_L\",[\"paint_design\"]=\"none\",[\"traveler_differential_F\"]=\"none\",[\"traveler_door_RL\"]=\"traveler_door_RL\",[\"window_color\"]=\"none\",[\"etk_gavril_intake_i6\"]=\"etk_gavril_intake_i6\",[\"traveler_brake_F\"]=\"traveler_brake_F\",[\"traveler_licenseplate_R\"]=\"traveler_licenseplate_R\",[\"traveler_licenseplate_R_alt\"]=\"none\",[\"traveler_tailgate\"]=\"traveler_tailgate\",[\"tire_R_17x9\"]=\"tire_R_255_60_17_sport\",[\"traveler_brake_R\"]=\"traveler_brake_R\",[\"traveler_differential_R\"]=\"traveler_differential_R\",[\"wheel_R_5\"]=\"wheel_23b_17x9_R\",[\"traveler_licenseplate_F\"]=\"none\",[\"traveler_body\"]=\"traveler_body_wagon\",[\"traveler_swaybar_R\"]=\"traveler_swaybar_R\",[\"traveler_ESC\"]=\"traveler_ESC\",[\"traveler_driveshaft_R\"]=\"traveler_driveshaft_R\",[\"brakepad_R\"]=\"brakepad_R_sport\",[\"traveler_wheeldata_F\"]=\"traveler_wheeldata_F\",[\"traveler_dashboard\"]=\"traveler_dash\",[\"traveler_bumper_F\"]=\"traveler_bumper_F\",[\"traveler_steering\"]=\"traveler_steering\",[\"traveler_swaybar_F\"]=\"traveler_swaybar_F\",[\"traveler_hood\"]=\"traveler_hood\",[\"traveler_seat_FR\"]=\"traveler_seat_FR\",[\"licenseplate_design_2_1\"]=\"none\",[\"traveler_suspension_F\"]=\"traveler_suspension_F\",[\"traveler_windshield\"]=\"traveler_windshield\",[\"traveler_fender_L\"]=\"traveler_fender_L\",[\"traveler_bumper_R\"]=\"traveler_bumper_R\",[\"etk_gavril_engine\"]=\"etk_gavril_engine_i6\",[\"traveler_seat_MR\"]=\"traveler_seat_MR\",[\"traveler_ABS\"]=\"traveler_ABS\",[\"traveler_infotainment\"]=\"traveler_infotainment_301\",[\"traveler_seat_FL\"]=\"traveler_seat_FL\",[\"traveler_taillight_R\"]=\"traveler_taillight_R\",[\"traveler_mirror_L\"]=\"traveler_mirror_L\",[\"traveler_headlight_L\"]=\"traveler_headlight_L\",[\"traveler_strutbrace_F\"]=\"traveler_strutbrace_F\",[\"traveler_shifter\"]=\"traveler_shifter_A\",[\"etk_gavril_exhaust\"]=\"etk_gavril_exhaust\",[\"traveler_radiator\"]=\"traveler_radiator\",[\"traveler_shock_R\"]=\"traveler_shock_R\"}}"
    124.23869|E|libbeamng.Lua.Exception|  hp1 = userdata: 0x345ad748
    124.23870|E|libbeamng.Lua.Exception|  hp2 = userdata: 0x345b3d98
    124.23871|E|libbeamng.Lua.Exception|--------------- << END <<
    124.23873|E|libbeamng.Lua.Exception|******************************************
    124.23874|E|libbeamng.Lua.Exception|*** DISABLING VEHICLE DUE TO EXCEPTION ***
    124.23875|E|libbeamng.Lua.Exception|******************************************
    124.23876|E|libbeamng.Lua.Exception|*** you have to reload the vehicle
    124.25226|D|GELua.main|Player #0 vehicle switched from: nil to: physicsID 1859 (vehicles/traveler/)
    
    51.26371|E|libbeamng.lua.V|*** FATAL LUA ERROR: lua/vehicle/controller/vehicleController.lua:1507: attempt to index field 'behaviorLookup' (a nil value)
    51.26374|E|libbeamng.lua.V|=============== Stack Traceback >> START >>
    51.26377|E|libbeamng.lua.V|(1) Lua upvalue 'setGearboxBehavior' at file 'lua/vehicle/controller/vehicleController.lua:1507'
    51.26379|E|libbeamng.lua.V|  Local variables:
    51.26380|E|libbeamng.lua.V|  behavior = string: "realistic"
    51.26382|E|libbeamng.lua.V|  (*temporary) = nil
    51.26383|E|libbeamng.lua.V|  (*temporary) = string: "vehicleController"
    51.26385|E|libbeamng.lua.V|  (*temporary) = string: "controller"
    51.26386|E|libbeamng.lua.V|  (*temporary) = number: 1
    51.26387|E|libbeamng.lua.V|  (*temporary) = number: 10
    51.26388|E|libbeamng.lua.V|  (*temporary) = string: "attempt to index field 'behaviorLookup' (a nil value)"
    51.26389|E|libbeamng.lua.V|(2) Lua field 'onDeserialize' at file 'lua/vehicle/controller/vehicleController.lua:1929'
    51.26390|E|libbeamng.lua.V|  Local variables:
    51.26391|E|libbeamng.lua.V|  data = table: 0x36d66eb0  {previousGearboxBehavior:realistic}
    51.26392|E|libbeamng.lua.V|(3) Lua global 'deserializePackages' at file 'lua/common/utils.lua:1273'
    51.26393|E|libbeamng.lua.V|  Local variables:
    51.26394|E|libbeamng.lua.V|  data = table: 0x36d64738  {bdebug:table: 0x36d677d8, energyStorage:table: 0x36d67c28, controller:table: 0x36d66e88 (more...)}
    51.26395|E|libbeamng.lua.V|  filter = nil
    51.26397|E|libbeamng.lua.V|  (for generator) = C function: next
    51.26398|E|libbeamng.lua.V|  (for state) = table: 0x34542b50  {cruiseControl:table: 0x36d6d5b0, ffi:table: 0x34574330, hydros:table: 0x345ac150 (more...)}
    51.26399|E|libbeamng.lua.V|  (for control) = number: nan
    51.26400|E|libbeamng.lua.V|  k = string: "controller/vehicleController"
    51.26401|E|libbeamng.lua.V|  v = table: 0x36d56780  {setGearboxMode:function: 0x36d4d6d8, onSerialize:function: 0x36d4db28, shiftToGearIndex:function: 0x36d4d690 (more...)}
    51.26402|E|libbeamng.lua.V|  shouldProcess = boolean: true
    51.26403|E|libbeamng.lua.V|(4) Lua global 'importPersistentData' at line 426 of chunk '"lua/vehicle/main.lua"]'
    51.26404|E|libbeamng.lua.V|  Local variables:
    51.26406|E|libbeamng.lua.V|  s = string: "{[\"bdebug\"]={[\"vehicle\"]={[\"meshVisibility\"]=100,[\"collisionTriangle\"]=false,[\"cog\"]=1,[\"cog_modes\"]={\"off\",\"on\",\"nowheels\"},[\"nodeVis\"]=\"off\",[\"objectData\"]=false,[\"nodeText\"]=\"off\",[\"beamVis_modes\"]={\"off\",\"simple\",\"type\",\"with broken\",\"broken only\",\"stress\",\"deformation\",\"breakgroups\",\"deformgroups\"},[\"beamVisAlpha\"]=1,[\"nodeVis_modes\"]={\"off\",\"simple\",\"weights\",\"velocities\",\"forces\",\"density\"},[\"beamVis\"]=\"off\",[\"nodeText_modes\"]={\"off\",\"names\",\"numbers\",\"names+numbers\",\"weights\",\"materials\"}},[\"fov\"]=80,[\"debugEnabled\"]=false,[\"terrain\"]={[\"staticCollision\"]=false,[\"groundmodel\"]=false},[\"renderer\"]={[\"disableShadows\"]=false,[\"showFps\"]=false,[\"wireframe\"]=false,[\"visualization\"]=\"None\",[\"boundingboxes\"]=false},[\"physicsEnabled\"]=true},[\"energyStorage\"]={[\"mainTank\"]={[\"remainingVolume\"]=69.9973}},[\"controller\"]={},[\"controller/vehicleController\"]={[\"previousGearboxBehavior\"]=\"realistic\"},[\"sounds\"]={[\"uiDebugging\"]=false,[\"engineNode\"]=216},[\"partmgmt\"]={[\"config\"]={[\"vars\"]={[\"$camber_RR\"]=1,[\"$trackwidth_R\"]=0.305,[\"$toe_FL\"]=1.0005,[\"$toe_RR\"]=0.9995,[\"$camber_RL\"]=1,[\"$tirepressure_R\"]=43.8,[\"$toe_RL\"]=0.9995,[\"$toe_FR\"]=1.0005,[\"$camber_FL\"]=0.95,[\"$trackwidth_F\"]=0.34,[\"$tirepressure_F\"]=43.8,[\"$camber_FR\"]=0.95},[\"parts\"]={[\"traveler_door_FR\"]=\"traveler_door_FR\",[\"traveler_headlight_R\"]=\"traveler_headlight_R\",[\"gps\"]=\"none\",[\"traveler_strut_F\"]=\"traveler_strut_F\",[\"traveler_fueltank\"]=\"traveler_fueltank\",[\"traveler_steer\"]=\"traveler_steer_paddles\",[\"traveler_door_FL\"]=\"traveler_door_FL\",[\"traveler_glass\"]=\"traveler_glass\",[\"traveler_towhitch\"]=\"none\",[\"brakepad_F\"]=\"brakepad_F_sport\",[\"traveler_spring_R\"]=\"traveler_spring_R\",[\"tire_F_17x9\"]=\"tire_F_255_60_17_sport\",[\"wheel_F_5\"]=\"wheel_23b_17x9_F\",[\"traveler_seat_ML\"]=\"traveler_seat_ML\",[\"traveler_rollcage\"]=\"none\",[\"traveler_suspension_R\"]=\"traveler_suspension_R\",[\"etk_gavril_transmission\"]=\"etk_transmission_9A\",[\"traveler_wheeldata_R\"]=\"traveler_wheeldata_R\",[\"traveler_mirror_R\"]=\"traveler_mirror_R\",[\"traveler_transfer_case\"]=\"traveler_transfer_case_RWD\",[\"traveler_fender_R\"]=\"traveler_fender_R\",[\"traveler_roof_rack_accessory\"]=\"none\",[\"traveler_roof_rack\"]=\"traveler_roof_rack\",[\"skin_gauges\"]=\"traveler_gauges_imperial\",[\"traveler_door_RR\"]=\"traveler_door_RR\",[\"traveler_seats_R\"]=\"traveler_seats_R\",[\"traveler_taillight_L
    51.26421|E|libbeamng.lua.V|*** while executing this line: importPersistentData('{["bdebug"]={["vehicle"]={["meshVisibility"]=100,["collisionTriangle"]=false,["cog"]=1,["cog_modes"]={"off","on","nowheels"},["nodeVis"]="off",["objectData"]=false,["nodeText"]="off",["beamVis_modes"]={"off","simple","type","with broken","broken only","stress","deformation","breakgroups","deformgroups"},["beamVisAlpha"]=1,["nodeVis_modes"]={"off","simple","weights","velocities","forces","density"},["beamVis"]="off",["nodeText_modes"]={"off","names","numbers","names+numbers","weights","materials"}},["fov"]=80,["debugEnabled"]=false,["terrain"]={["staticCollision"]=false,["groundmodel"]=false},["renderer"]={["disableShadows"]=false,["showFps"]=false,["wireframe"]=false,["visualization"]="None",["boundingboxes"]=false},["physicsEnabled"]=true},["energyStorage"]={["mainTank"]={["remainingVolume"]=69.9973}},["controller"]={},["controller/vehicleController"]={["previousGearboxBehavior"]="realistic"},["sounds"]={["uiDebugging"]=false,["engineNode"]=216},["partmgmt"]={["config"]={["vars"]={["$camber_RR"]=1,["$trackwidth_R"]=0.305,["$toe_FL"]=1.0005,["$toe_RR"]=0.9995,["$camber_RL"]=1,["$tirepressure_R"]=43.8,["$toe_RL"]=0.9995,["$toe_FR"]=1.0005,["$camber_FL"]=0.95,["$trackwidth_F"]=0.34,["$tirepressure_F"]=43.8,["$camber_FR"]=0.95},["parts"]={["traveler_door_FR"]="traveler_door_FR",["traveler_headlight_R"]="traveler_headlight_R",["gps"]="none",["traveler_strut_F"]="traveler_strut_F",["traveler_fueltank"]="traveler_fueltank",["traveler_steer"]="traveler_steer_paddles",["traveler_door_FL"]="traveler_door_FL",["traveler_glass"]="traveler_glass",["traveler_towhitch"]="none",["brakepad_F"]="brakepad_F_sport",["traveler_spring_R"]="traveler_spring_R",["tire_F_17x9"]="tire_F_255_60_17_sport",["wheel_F_5"]="wheel_23b_17x9_F",["traveler_seat_ML"]="traveler_seat_ML",["traveler_rollcage"]="none",["traveler_suspension_R"]="traveler_suspension_R",["etk_gavril_transmission"]="etk_transmission_9A",["traveler_wheeldata_R"]="traveler_wheeldata_R",["traveler_mirror_R"]="traveler_mirror_R",["traveler_transfer_case"]="traveler_transfer_case_RWD",["traveler_fender_R"]="traveler_fender_R",["traveler_roof_rack_accessory"]="none",["traveler_roof_rack"]="traveler_roof_rack",["skin_gauges"]="traveler_gauges_imperial",["traveler_door_RR"]="traveler_door_RR",["traveler_seats_R"]="traveler_seats_R",["traveler_taillight_L"]="traveler_taillight_L",["paint_design"]="none",["traveler_differential_F"]="none",["traveler_door_RL"]="traveler_door_RL",["window_color"]="none",["etk_gavril_intake_i6"]="etk_gavril_intake_i6",["traveler_brake_F"]="traveler_brake_F",["traveler_licenseplate_R"]="traveler_licenseplate_R",["traveler_licenseplate_R_alt"]="none",["traveler_tailgate"]="traveler_tailgate",["tire_R_17x9"]="tire_R_255_60_17_sport",["traveler_brake_R"]="traveler_brake_R",["traveler_differential_R"]="traveler_differential_R",["wheel_R_5"]="wheel_23b_17x9_R",["traveler_licenseplate_F"]="none",["traveler_body"]="traveler_body_wagon",["traveler_swaybar_R"]="traveler_swaybar_R",["traveler_ESC"]="traveler_ESC",["traveler_driveshaft_R"]="traveler_driveshaft_R",["brakepad_R"]="brakepad_R_sport",["traveler_wheeldata_F"]="traveler_wheeldata_F",["traveler_dashboard"]="traveler_dash",["traveler_bumper_F"]="traveler_bumper_F",["traveler_steering"]="traveler_steering",["traveler_swaybar_F"]="traveler_swaybar_F",["traveler_hood"]="traveler_hood",["traveler_seat_FR"]="traveler_seat_FR",["licenseplate_design_2_1"]="none",["traveler_suspension_F"]="traveler_suspension_F",["traveler_windshield"]="traveler_windshield",["traveler_fender_L"]="traveler_fender_L",["traveler_bumper_R"]="traveler_bumper_R",["etk_gavril_engine"]="etk_gavril_engine_i6",["traveler_seat_MR"]="traveler_seat_MR",["traveler_ABS"]="traveler_ABS",["traveler_infotainment"]="traveler_infotainment_301",["traveler_seat_FL"]="traveler_seat_FL",["traveler_taillight_R"]="traveler_taillight_R",["traveler_mirror_L"]="traveler_mirror_L",["traveler_headlight_L"]="traveler_headlight_L",["traveler_strutbrace_F"]="traveler_strutbrace_F",["traveler_shifter"]="traveler_shifter
    51.26425|E|libbeamng.lua.V|*** in chunk: string
    51.33223|D|XInputManager::setupForceFeedback|FFB motor was found in device "xinput0", and is bound to "steering", but has FFB disabled, so won't be used
    51.33228|E|libbeamng.lua.V|*** FATAL LUA ERROR: [string "string"]:1: attempt to index field 'mainController' (a nil value)
    51.33231|E|libbeamng.lua.V|=============== Stack Traceback >> START >>
    51.33233|E|libbeamng.lua.V|(1) main chunk of [string "string"] at line 1
    51.33234|E|libbeamng.lua.V|--------------- << END <<
    51.33239|E|libbeamng.lua.V|*** while executing this line: controller.mainController.setStarter(false)
    51.33241|E|libbeamng.lua.V|*** in chunk: string
    
     
  9. on3cherryshake

    on3cherryshake
    Expand Collapse

    Joined:
    May 12, 2015
    Messages:
    438
    Maybe it's in your slots code. You don't have a differential.

    It could also be not having a highShiftUpRPM value. The log mentioned a vehicle controller error
     
    #9 on3cherryshake, Jul 5, 2017
    Last edited: Jul 5, 2017
  10. Inertia

    Inertia
    Expand Collapse

    Joined:
    Dec 29, 2015
    Messages:
    1,692
    I had this issue on an auto transmission of mine, same error and all. I have no clue why it is broken as it all looks fine and I'm sure it worked a while ago.
     
  11. Goosah

    Goosah
    Expand Collapse
    Global Moderator
    BeamNG Team

    Joined:
    Aug 30, 2013
    Messages:
    790
    Hm can you try setting calculateOptimalLoadShiftPoints to false?

    The error points to the shift point calculation where it examines the torque curve, and I suspect the problem is that you set a maxRPM higher than the highest value in your torque table. The second thing to test would be lowering the maxRPM
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice