Solved What am I missing 0.7.2----> 0.8 engine conversion (turbo not working)?

Discussion in 'Mod Support' started by Josh, Dec 25, 2016.

  1. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    I having a total brain fart right now this early Christmas morning :p.

    Below is my attempt to convert one of my test engines to 0.8.

    Any pointers

    Thanks

    Code:
    
    0.8
    
    {
    "pickup_engine_v8_35ST": {
        "information":{
            "authors":"BeamNG",
            "name":"3.5L Ecoboost Single TurboCharger V8",
            "value":1300,
        }
        "slotType" : "pickup_engine",
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["gavril_v8_pickup", ["pickup_engine"], [], {"pos":{"x":0, "y":0, "z":0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
             ["pickup_engbay", ["pickup_cab", "pickup_firewall", "pickup_frontmeat","pickup_engine_intake"]],
        ],
        "slots": [
            ["type", "default","description"]
            ["pickup_transmission","pickup_transmission_4A","Transmission"],
            ["pickup_exhaust_v8","pickup_exhaust_v8","V8 Exhaust"],
            //["pickup_supercharger_64","pickup_supercharger_64", "Intake",{"coreSlot":true}],
        ],
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["combustionEngine", "mainEngine", "dummy", 0],
        ],
        "mainEngine": {
            "torque":[
               ["rpm", "torque"]
                [000, 000.00],
                [500, 288.78],
                [600, 296.79],
                [700, 302.93],
                [800, 307.74],
                [900, 311.68],
                [1000, 315.22],
                [1100, 318.55],
                [1200, 320.78],
                [1300, 322.47],
                [1400, 324.48],
                [1500, 326.22],
                [1600, 327.88],
                [1700, 328.27],
                [1800, 329.64],
                [1900, 330.75],
                [2000, 331.48],
                [2100, 331.69],
                [2200, 331.68],
                [2300, 331.5],
                [2400, 331.15],
                [2500, 330.67],
                [2600, 330.1],
                [2700, 329.57],
                [2800, 328.96],
                [2900, 326.99],
                [3000, 325.55],
                [3100, 325.38],
                [3200, 324.53],
                [3300, 324.14],
                [3400, 323.95],
                [3500, 324],
                [3600, 324.46],
                [3700, 324.97],
                [3800, 325.57],
                [3900, 326.31],
                [4000, 327.02],
                [4100, 326.64],
                [4200, 327.3],
                [4300, 328.09],
                [4400, 328.73],
                [4500, 329.04],
                [4600, 328.21],
                [4700, 326.97],
                [4800, 326.66],
                [4900, 325.8],
                [5000, 325.39],
                [5100, 323.84],
                [5200, 322.17],
                [5300, 320.75],
                [5400, 318.22],
                [5500, 316.2],
                [5600, 313.25],
                [5700, 310.6],
                [5800, 307.72],
                [5900, 303.55],
                [6000, 299.57],
                [6100, 295.92],
                [6200, 291.14],
                [6300, 285.18],
                [6400, 279.59],
                [6500, 274.69],
                [6600, 270.61],
                [6700, 265.53],
                [6800, 260.59],
                [6900, 254.83],
                [7000, 249.18],
            ],
    
            //engine performance
            "idleRPM":850,
            "maxRPM":5800,
            "inertia":0.23,
            "friction":19,
            "dynamicFriction":0.035,
            "burnEfficiency":0.33,
            "torqueReactionNodes:":["e1l","e2l","e4r"],
            "particulates":0.052,
            "energyStorage": "mainTank",
            "requiredEnergyType":"gasoline",
    
            //cooling and oil system
            "thermalsEnabled":true,
            "engineBlockMaterial":"aluminum",
            "oilVolume":8,
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":160,
            "headGasketDamageThreshold":1500000,
            "pistonRingDamageThreshold":1500000,
            "connectingRodDamageThreshold":2000000,
    
            //node beam interface
            "waterDamage": {"[engineGroup]:":["engine_intake"]},
            "radiator": {"[engineGroup]:":["radiator"]},
            "engineBlock": {"[engineGroup]:":["engine_block"]},
            "breakTriggerBeam":"engine",
        },
        "vehicleController": {
            "clutchLaunchStartRPM":1600,
            "clutchLaunchTargetRPM":2200,
            //**highShiftDown can be overwritten by automatic transmissions**
            "highShiftDownRPM":[0,0,0,2600,2850,3050,3150,3150]
            //**highShiftUp can be overwritten by intake modifications**
            "highShiftUpRPM":5300
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["gavril_v8_pickup", ["pickup_engine"], [], {"pos":{"x":0, "y":0, "z":0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
            ["pickup_engbay", ["pickup_cab", "pickup_firewall", "pickup_frontmeat","pickup_engine_intake"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"selfCollision":false},
             {"collision":true},
             //--4.5L V8 Engine-
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"nodeWeight":28},
             {"group":"pickup_engine"},
             {"engineGroup":"engine_block"}
             ["e1r", -0.13, -1.14, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2}],
             ["e1l", 0.13, -1.14, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2}],
             ["e2r", -0.13, -1.68, 0.43],
             ["e2l", 0.13, -1.68, 0.43],
             {"engineGroup":["engine_block","engine_intake"]}
             ["e3r", -0.32, -1.14, 0.9],
             ["e3l", 0.32, -1.14, 0.9],
             ["e4r", -0.32, -1.68, 0.9{"isExhaust":true}],
             ["e4l", 0.32, -1.68, 0.9],
             {"chemEnergy":false,"burnRate":false,"flashPoint":false,"specHeat":false,"smokePoint":false,"selfIgnitionCoef":false,"baseTemp":false,"conductionRadius":false},
             {"engineGroup":""}
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              //--ENGINE CUBE--
              {"beamSpring":12600840,"beamDamp":390},
              {"beamDeform":142500,"beamStrength":"FLT_MAX"},
              ["e1r","e1l"],
              ["e1r","e2r"],
              ["e1r","e2l"],
              ["e1r","e3r"],
              ["e1r","e3l"],
              ["e1r","e4r"{"isExhaust":true}],
              ["e1r","e4l"],
              ["e1l","e2r"],
              ["e1l","e2l"],
              ["e1l","e3r"],
              ["e1l","e3l"],
              ["e1l","e4r"],
              ["e1l","e4l"],
              ["e2r","e2l"],
              ["e2r","e3r"],
              ["e2r","e3l"],
              ["e2r","e4r"],
              ["e2r","e4l"],
              ["e2l","e3r"],
              ["e2l","e3l"],
              ["e2l","e4r"],
              ["e2l","e4l"],
              ["e3r","e3l"],
              ["e3r","e4r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
              ["e3l","e4l"],
              ["e4r","e4l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        
        ],
        "turbocharger": {
            "wastegateStart":6,
            "wastegateLimit":8,
            "maxExhaustPower": 4000,
            "revLimiterRPMDrop":50,
            "backPressureCoef": 0.000035,
            "frictionCoef": 1.4,
            "inertia":3.9,
            "damageThresholdTemperature": 610,
            "pressurePSI":[
                //turbineRPM, pressure(PSI)
                [0,         -0.5],
                [30000,     0],
                [60000,     4],
                [90000,     7],
                [150000,    9],
                [200000,    11],
                [250000,    13],
            ],
            "engineDef":[
                //engineRPM, efficiency, exhaustFactor
                [0,     0.0,    0.0],
                [650,   0.15,   0.15],
                [1400,  0.2,   0.23],
                [2000,  0.31,    0.29],
                [2500,  0.42,    0.39],
                [3000,  0.63,    0.55],
                [4000,  0.74,    0.75],
                [5000,  0.88,    0.8],
                [6000,  1.0,    0.85],
                [7000,  0.95,    0.95],
                [8000,  0.85,    1.0],
            ],
        },
        "mainEngine": {
            "idleRPM":1000,
            "maxRPM":5800,
            "burnEfficiency":0.28,
            //turbocharger name
            "turbocharger":"turbocharger",
        },
        "vehicleController": {
            "highShiftUpRPM":7000
    
        },
    }
    }

    Code:
    0.7
    
     {
    "pickup_engine_v8_35ST": {
        "information":{
            "authors":"BeamNG",
            "name":"3.5L Ecoboost Single TurboCharger V8",
            "value":1300,
        }
        "slotType" : "pickup_engine",
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["gavril_v8_pickup", ["pickup_engine"], [], {"pos":{"x":0, "y":0, "z":0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
             ["pickup_engbay", ["pickup_cab", "pickup_firewall", "pickup_frontmeat","pickup_engine_intake"]],
        ],
        "slots": [
            ["type", "default","description"]
            ["pickup_transmission","pickup_transmission_4A","Transmission"],
            ["pickup_exhaust_v8","pickup_exhaust_v8","V8 Exhaust"],
            //["pickup_supercharger_64","pickup_supercharger_64", "Intake",{"coreSlot":true}],
        ],
        "enginetorque":[
            ["rpm", "torque"]
            [000, 000.00],
            [500, 288.78],
            [600, 296.79],
            [700, 302.93],
            [800, 307.74],
            [900, 311.68],
            [1000, 315.22],
            [1100, 318.55],
            [1200, 320.78],
            [1300, 322.47],
            [1400, 324.48],
            [1500, 326.22],
            [1600, 327.88],
            [1700, 328.27],
            [1800, 329.64],
            [1900, 330.75],
            [2000, 331.48],
            [2100, 331.69],
            [2200, 331.68],
            [2300, 331.5],
            [2400, 331.15],
            [2500, 330.67],
            [2600, 330.1],
            [2700, 329.57],
            [2800, 328.96],
            [2900, 326.99],
            [3000, 325.55],
            [3100, 325.38],
            [3200, 324.53],
            [3300, 324.14],
            [3400, 323.95],
            [3500, 324],
            [3600, 324.46],
            [3700, 324.97],
            [3800, 325.57],
            [3900, 326.31],
            [4000, 327.02],
            [4100, 326.64],
            [4200, 327.3],
            [4300, 328.09],
            [4400, 328.73],
            [4500, 329.04],
            [4600, 328.21],
            [4700, 326.97],
            [4800, 326.66],
            [4900, 325.8],
            [5000, 325.39],
            [5100, 323.84],
            [5200, 322.17],
            [5300, 320.75],
            [5400, 318.22],
            [5500, 316.2],
            [5600, 313.25],
            [5700, 310.6],
            [5800, 307.72],
            [5900, 303.55],
            [6000, 299.57],
            [6100, 295.92],
            [6200, 291.14],
            [6300, 285.18],
            [6400, 279.59],
            [6500, 274.69],
            [6600, 270.61],
            [6700, 265.53],
            [6800, 260.59],
            [6900, 254.83],
            [7000, 249.18],
    
    
    
    
    
        ],
        "turbocharger": {
            "wastegateStart": 17,
            "wastegateLimit": 20,
            "maxExhaustPower": 10000,
            "backPressureCoef": 0.0000916,
            "bovEnabled":false,
            "bovSoundVolumeCoef": 0.0
            "frictionCoef": 1072.5,
            "inertia":7,
            "pressurePSI":[
                //turbineRPM, pressure(PSI)
                [0,         0],
                [10000,     0],
                [15000,     0],
                [20000,     0],
                [30000,     0],
                [40000,     0],
                [50000,     15],
                [60000,     18],
                [70000,     24],
                [80000,     28],
                [90000,     35],
                [100000,    40],
            ],
            "engineDef":[
                //engineRPM, efficiency, exhaustFactor
                [0,     0.0,    0.0],
                [250,   0.0,   0.1],
                [500,  0.0,   0.2],
                [800,  0.0,   0.3],
                [1400,  0.0,    0.4],
                [2000,  0.1,    0.7],
                [2500,  0.2,    0.8],
                [3000,  0.3,    0.9],
            ],
        },   
        "engine":{
            //engine performance
            "idleRPM":550,
            "shiftDownRPM":1200,
            "shiftUpRPM":6200,
            "maxRPM":7000,
            "inertia":0.2,
            "friction":17
            "brakingCoefRPS":0.25
            "burnEfficiency":0.60
            "throttleSensitivity":1.1
            "torqueReactionNodes:":["e1l","e2l","e4r"]
            "particulates":0.165
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"iron"
            "oilVolume":6
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":150
            "headGasketDamageThreshold":1500000
            "pistonRingDamageThreshold":1500000
            "connectingRodDamageThreshold":1500000
        },
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"selfCollision":false}
             {"collision":true}
             //--4.1L I6 Engine-
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"nodeWeight":48},
             {"group":"pickup_engine"},
             {"engineGroup":"engine_block"}
             ["e1r", -0.14, -1.07, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2}],
             ["e1l", 0.14, -1.07, 0.43],
             ["e2r", -0.14, -1.72, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2}],
             ["e2l", 0.14, -1.72, 0.43],
             {"engineGroup":["engine_block","engine_intake"]}
             ["e3r", -0.15, -1.07, 0.88,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2}],
             ["e3l", 0.15, -1.07, 0.88],
             ["e4r", -0.15, -1.72, 0.88,{"isExhaust":true,"chemEnergy":1000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":"thermals","conductionRadius":0.2}],
             ["e4l", 0.15, -1.72, 0.88],
             {"engineGroup":""}
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              //--ENGINE CUBE--
              {"beamSpring":12600840,"beamDamp":390},
              {"beamDeform":142500,"beamStrength":"FLT_MAX"},
              ["e1r","e1l"],
              ["e1r","e2r"],
              ["e1r","e2l"],
              ["e1r","e3r"],
              ["e1r","e3l"],
              ["e1r","e4r"{"isExhaust":true}],
              ["e1r","e4l"],
              ["e1l","e2r"],
              ["e1l","e2l"],
              ["e1l","e3r"],
              ["e1l","e3l"],
              ["e1l","e4r"],
              ["e1l","e4l"],
              ["e2r","e2l"],
              ["e2r","e3r"],
              ["e2r","e3l"],
              ["e2r","e4r"],
              ["e2r","e4l"],
              ["e2l","e3r"],
              ["e2l","e3l"],
              ["e2l","e4r"],
              ["e2l","e4l"],
              ["e3r","e3l"],
              ["e3r","e4r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
              ["e3l","e4l"],
              ["e4r","e4l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                //engine
        },
    ],
    }
    }
     

    Attached Files:

    #1 Josh, Dec 25, 2016
    Last edited: Dec 25, 2016
  2. Inertia

    Inertia
    Expand Collapse

    Joined:
    Dec 29, 2015
    Messages:
    1,692
    What does or doesn't it do? Is it not showing up, is the engine stalling or completely dead, or is the game crashing? Can you post any errors in logs or console as well please.
     
  3. Alexivey89

    Alexivey89
    Expand Collapse

    Joined:
    Dec 25, 2016
    Messages:
    1
    i have the same problem on most dlc with different engines they just dont run nothing functions everything worked before the recent update
     
  4. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082

    No errors in the console, the turbo just doesn't work, I'll run with the base torque curve only.

    It doesn't even pop up in the parts menu. So I know I must have something misplaced or wrong.
     
  5. Inertia

    Inertia
    Expand Collapse

    Joined:
    Dec 29, 2015
    Messages:
    1,692
    Is the zip attached your final file structure? If so you need to use something like "mods/unpacked/turbov8/vehicles/pickup" then put your jbeam there.
    Unfortunately I can't access my PC right now, and I can't remember the proper file structure, sorry if it is wrong but it should be pretty close.

    EDIT: I just read through your jbeam again, I'm pretty sure the turbo needs a slot type attached which is the same as a slot under the actual engine. I could be wrong, but I'm fairly certain it needs it unless the system has changed since the new update.
     
    #5 Inertia, Dec 26, 2016
    Last edited: Dec 26, 2016
  6. MRcrash

    MRcrash
    Expand Collapse
    BeamNG Team

    Joined:
    Dec 12, 2014
    Messages:
    1,231
    You should look at official vehicles jbeam.
    I think there must be this in your engine section:
    "turbocharger": "turbocharger"
     
  7. 1UZ-FE

    1UZ-FE
    Expand Collapse

    Joined:
    Oct 13, 2014
    Messages:
    351
    If you are using "engine" instead of "mainEngine" under the turbo jbeam, then that's why.
     
  8. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Hm you have duplicated sections of "mainEngine" and "vehicleController" inside that one part, I don't think that's a good idea EVER.
    While I can't guarantee that this is actually the issue, try combining them into one each. (so just ONE "mainEngine" and ONE "vehicleController" per part)
     
  9. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    Sorry guys fixed it awhile ago, forgot to mark it solved.. Separated the turbo into its own jbeam, its easier for me and more organised.
     
  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