Why is my JBeam broken?

Discussion in 'Content Creation' started by CommandoAir, Apr 6, 2018.

  1. CommandoAir

    CommandoAir
    Expand Collapse

    Joined:
    Jan 24, 2014
    Messages:
    117
    I'm having a mess around trying to add an engine to the Covet. I copied the covet's engine .jbeam, removed any parts I didn't need, tweaked it to my liking and placed the .jbeam under: "Documents\BeamNG.drive\mods\unpacked\VX Engines\vehicles\hatch\VX_4A-GE.jbeam"

    Now when I try to spawn the Covet, I just get a very dark screen with the camera under the world, no car, and a whole bunch of errors in the console (but nothing seems to point to my mod).

    As a side note, is there any kind of software I can use that can scan and identify errors with .jbeams? I have the jbeam syntax for Notepad++ but I didn't see any highlighting that looked like an error.

    Here is the .Jbeam:
    Code:
    {
    "hatch_engine_vx_4age": {
        "information":{
            "authors":"BeamNG & VoidSixx",
            "name":"4A-GE 16v",
            "value":600,
        },
        "slotType" : "hatch_engine",
        "slots": [
            ["type", "default", "description"]
            ["hatch_intake","4age_factory_intake", "Intake",{"coreSlot":true}],
            ["hatch_exhaust","hatch_exhaust", "Exhaust"],
            ["hatch_engine_internals","4age_factory_internals", "Engine Long Block",{"coreSlot":true}],
            ["n2o_system","", "Nitrous Oxide System"],
            ["hatch_engine_ecu","4age_factory_ecu", "Engine Management",{"coreSlot":true}],
            ["hatch_transmission","hatch_transmission_6M_race", "Transmission"],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["combustionEngine", "mainEngine", "dummy", 0],
        ],
        "mainEngine": {
            "torque":[
                ["rpm", "torque"]
                [0,       0],
                [500,    50],
                [1000,   75],
                [1500,   97],
                [2000,  116.2],
                [2500,  128],
                [3000,  140.4],
                [3500,  143],
                [4000,  149.6],
                [4500,  150],
                [5000,  153.4],
                [5500,  153.5],
                [5800,  157],
                [6000,  156.1],
                [6500,  152],
                [6600,  147],
                [7000,  144],
                [7600,  123],
                [8000,  121.4],
            ],
    
            //max rpm physically capable of
            "idleRPM":900,
            "maxRPM":8200,
            "hasRevLimiter":true,
            "inertia":0.08,
            "friction":12,
            "dynamicFriction":0.04,
            //"burnEfficiency":0.30
            "burnEfficiency":[
                [0, 0.12],
                [0.05, 0.26],
                [0.4, 0.42],
                [0.7, 0.47],
                [1, 0.35],
            ],
            "torqueReactionNodes:":["e1l","e2l","e4r"]
            "energyStorage": "mainTank",
            "requiredEnergyType":"gasoline",
    
            //exhaust
            "particulates":0.03,
            "instantAfterFireCoef": 0.5,
            "sustainedAfterFireCoef": 0.5,
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"aluminum"
            "oilVolume":3.5
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":120
            "headGasketDamageThreshold":1500000
            "pistonRingDamageThreshold":1500000
            "connectingRodDamageThreshold":2000000
    
            "maxTorqueRating": 190,
            "maxOverTorqueDamage": 300,
    
            //node beam interface
            "waterDamage": {"[engineGroup]:":["engine_intake"]},
            "radiator": {"[engineGroup]:":["radiator"]},
            "engineBlock": {"[engineGroup]:":["engine_block"]},
            "breakTriggerBeam":"engine",
            "uiName":"Engine",
    
            "soundConfig": "soundConfig",
        },
        "soundConfig": {
            "sampleName": "I4",
            "mainGain": -18,
            "maxLoadMix": 0.65,
            "minLoadMix": 0,
            "onLoadGain":1,
            "offLoadGain":0.7,
            "eqLowGain": 10,
            "eqLowFreq": 400,
            //"eqLowWidth": 0,
            "eqHighGain": -5,
            "eqHighFreq": 2000,
            "lowCutFreq":80,
            "fundamentalFrequencyCylinderCount":4
            "eqFundamentalGain": 10
        },
        "vehicleController": {
            "clutchLaunchStartRPM":1700,
            "clutchLaunchTargetRPM":2400,
            //**highShiftDown can be overwritten by automatic transmissions**
            "highShiftDownRPM":[0,0,0,2700,3350,3600,3800,3800]
            //**highShiftUp can be overwritten by intake modifications**
            "highShiftUpRPM":6200
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["hatch_engine_sohc", ["hatch_engine"]],
        ],
        "nodes": [
            ["id", "posX", "posY", "posZ"],
            //--1.5L I4 Engine--
            {"selfCollision":false},
            {"collision":true}
            {"nodeMaterial":"|NM_METAL"},
            {"frictionCoef":0.5},
            {"group":"hatch_engine"},
            {"nodeWeight":12},
            {"engineGroup":"engine_block"}
            ["e1r", 0.12, -1.62, 0.30,{"chemEnergy":2000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.07}],
            ["e2r", -0.37, -1.62, 0.30,{"chemEnergy":2000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.07}],
            ["e1l", 0.12, -1.31, 0.30,{"chemEnergy":2000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.07}],
            ["e2l", -0.37, -1.31, 0.30,{"chemEnergy":2000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.07}],
            {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false},
            {"engineGroup":["engine_block","engine_intake"]}
            ["e3r", 0.12, -1.62, 0.74,{"isExhaust":"mainEngine"}],
            ["e3l", 0.12, -1.2, 0.74],
            ["e4r", -0.37, -1.62, 0.74],
            ["e4l", -0.37, -1.2, 0.74],
            {"engineGroup":""},
            {"group":""},
            //["tc1", 0.0, -1.62, 0.35{"nodeWeight":16}],
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":15001000,"beamDamp":400},
              {"beamDeform":250000,"beamStrength":"FLT_MAX"},
              //engine
              ["e1r","e1l"],
              ["e2r","e2l"],
              ["e3r","e3l"],
              ["e4r","e4l"],
              ["e1r","e2r"],
              ["e1l","e2l"],
              ["e3r","e4r"],
              ["e3l","e4l"],
              ["e1r","e3r"{"isExhaust":"mainEngine"}],
              ["e1l","e3l"],
              ["e2r","e4r"],
              ["e2l","e4l"],
              ["e2r","e3r"],
              ["e2l","e3l"],
              ["e2r","e3l"],
              ["e2l","e3r"],
              ["e1r","e4r"],
              ["e1l","e4l"],
              ["e1r","e4l"],
              ["e1l","e4r"],
              ["e1r","e2l"],
              ["e1l","e2r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
              ["e1r","e3l"],
              ["e1l","e3r"],
              ["e2r","e4l"],
              ["e2l","e4r"],
              //["tc1","e3l"],
              //["tc1","e3r"],
              //["tc1","e4l"],
              //["tc1","e4r"],
              //["tc1","e1l"],
              //["tc1","e1r"],
              {"disableMeshBreaking":true},
              {"beamDeform":90000,"beamStrength":90000}
              //["tc1","e2l"{"name":"driveshaft"}],
              //["tc1","e2r"{"name":"driveshaft"}],
              {"disableMeshBreaking":false},
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    },
    "4age_factory_ecu": {
        "information":{
            "authors":"BeamNG & VoidSixx",
            "name":"Factory ECU",
            "value":250,
        }  
        "slotType" : "hatch_engine_ecu",
        "mainEngine":{
            "idleRPM":900,
            "revLimiterRPM":7600,
            "revLimiterType":"timeBased",
            "revLimiterCutTime":0.11,
        },
    },
    "4age_factory_internals": {
        "information":{
            "authors":"BeamNG & VoidSixx",
            "name":"Factory Internals",
            "value":0,
        }
        "slotType" : "hatch_engine_internals",
        "mainEngine":{
        },
    },
    "4age_factory_intake": {
        "information":{
            "authors":"BeamNG & VoidSixx",
            "name":"Factory Intake",
            "value":100,
        }
        "slotType" : "hatch_intake",
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["hatch_airbox", ["hatch_engine","hatch_airbox"]],
            ["hatch_header", ["hatch_engine"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"selfCollision":false},
             {"collision":true}
             {"nodeMaterial":"|NM_METAL"},
             {"frictionCoef":0.5},
             {"group":"hatch_airbox"},
             {"nodeWeight":1},
             ["airb", 0.56, -1.52, 0.73],
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":50600,"beamDamp":120},
              {"beamDeform":2500,"beamStrength":"FLT_MAX"},
              ["airb","e2r"],
              ["airb","e4r"],
              ["airb","e1l"],
              ["airb","e2l"],
              ["airb","e4l"],
    
              {"beamDeform":2000,"beamStrength":10000},
              ["airb","e1r"],
              ["airb","e3r"],
              ["airb","e3l"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
    }
     
    #1 CommandoAir, Apr 6, 2018
    Last edited: Apr 6, 2018
  2. synsol

    synsol
    Expand Collapse
    QA Lead
    BeamNG Team

    Joined:
    Aug 4, 2013
    Messages:
    1,475
    Hi, can you please show the errors you have in the console ?
     
  3. Blijo

    Blijo
    Expand Collapse

    Joined:
    Apr 27, 2016
    Messages:
    2,055
    is this your complete code?
    It is missing a } in the end to close the jbeam file
     
  4. CommandoAir

    CommandoAir
    Expand Collapse

    Joined:
    Jan 24, 2014
    Messages:
    117
    Ah, that fixed it. Thanks.

    I'll still post the errors here just in case. I don't know what any of it means, but none of it looked like it was referring to my mod.

     
  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