1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.30 Bug Reporting thread
    Solutions and more information may already be available.

NBE isnt working for me

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by i.want.to.mod, Nov 12, 2019.

  1. i.want.to.mod

    i.want.to.mod
    Expand Collapse

    Joined:
    Jul 11, 2019
    Messages:
    195
    I am currently working on a project for a mod but when i go to use the NBE, the jbeam file comes up perfectly but the beams, nodes and triangles dont show up. I go to save the file from some stuff i have deleted and the program crashes. Any help with this would be amazing!
     
  2. Kueso

    Kueso
    Expand Collapse

    Joined:
    Oct 14, 2016
    Messages:
    4,463
    make sure the file has all of the necessary brackets
    EG:
    Code:
    {
    "etki_engineN": {
        "information":{
            "authors":"BeamNG",
            "name":"3.2L N Racing I6 Engine",
            "value":2200,
        }
        "slotType" : "etki_engine",
        "slots": [
            ["type", "default", "description"]
            ["etki_intakeN","etki_intake_sportN", "Intake",{"coreSlot":true}],
            ["etki_exhaust","etki_exhaust", "Exhaust"],
            ["etki_engine_ecuN","etki_engine_ecuN", "Engine Management",{"coreSlot":true}],
            ["n2o_system","", "Nitrous Oxide System"],
            ["etki_engine_internalsN","etki_engine_internalsN", "Engine Long Block",{"coreSlot":true}],
            ["etki_transmission","etki_transmission_5M", "Transmission"],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["combustionEngine", "mainEngine", "dummy", 0],
        ],
        "mainEngine": {
            "torque":[
                ["rpm", "torque"]
                [0, 0],
                [500, 114],
                [1000, 154],
                [2000, 166],
                [2500, 179],
                [3000, 187],
                [4000, 224],
                [5000, 239],
                [6000, 258],
                [7000, 274],
                [8000, 274],
                [8500, 274],
            ],
    
            "idleRPM":850,
            "maxRPM":8500,
            "revLimiterType":"timeBased",
            "revLimiterCutTime":0.18,
            "inertia":0.14,
            "friction":16
            "dynamicFriction":0.023,
            //"burnEfficiency":0.34
            "burnEfficiency":[
                [0, 0.10],
                [0.05, 0.21],
                [0.4, 0.38],
                [0.7, 0.44],
                [1, 0.30],
            ],
            "torqueReactionNodes:":["e1l","e2l","e4r"]
            "energyStorage": "mainTank",
            "requiredEnergyType":"gasoline",
    
            //exhaust
            "particulates":0.03,
            "instantAfterFireCoef": 1.8,
            "sustainedAfterFireCoef": 1.8,
    
            //"clutchTorque":360
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"aluminum"
            "oilVolume":5
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":140
            "headGasketDamageThreshold":1550000
            "pistonRingDamageThreshold":1550000
            "connectingRodDamageThreshold":2500000
    
            "maxTorqueRating": 465,
            "maxOverTorqueDamage": 375,
    
            //node beam interface
            "waterDamage": {"[engineGroup]:":["engine_intake"]},
            "radiator": {"[engineGroup]:":["radiator"]},
            "engineBlock": {"[engineGroup]:":["engine_block"]},
            "breakTriggerBeam":"engine",
            "uiName":"Engine",
    
            "soundConfig": "soundConfig",
            "soundConfigExhaust": "soundConfigExhaust",
            
                    //starter motor
            "starterSample":"event:>Engine>Starter>i4_1996_eng",
            "starterSampleExhaust":"event:>Engine>Starter>i4_1996_exh",
            "shutOffSampleEngine":"event:>Engine>Shutoff>i4_1996_eng",
            "shutOffSampleExhaust":"event:>Engine>Shutoff>i4_1996_exh",
            "starterVolume":0.67,
            "starterVolumeExhaust":0.8,
            "shutOffVolumeEngine":0.33,
            "shutOffVolumeExhaust":0.4,
            "starterThrottleKillTime":0.65,
            "idleRPMStartRate":2,
            "idleRPMStartCoef":1,
        },
        "soundConfig": {
            "sampleName": "V6_2_engine",
            "intakeMuffling": 1,
    
            "mainGain": -7,
            "onLoadGain":1,
            "offLoadGain":0.9,
    
            "maxLoadMix": 0.8,
            "minLoadMix": 0,
    
            "eqLowGain": -10,
            "eqLowFreq": 450,
            "eqLowWidth": 0.25,
    
            "eqHighGain": -10,
            "eqHighFreq": 2000,
            "eqHighWidth": 0.5,
    
    
            "lowShelfGain":0,
            "lowShelfFreq":80,
    
            "highShelfGain":8,
            "highShelfFreq":6000,
    
            "fundamentalFrequencyCylinderCount":6
            "eqFundamentalGain": -5
        },
        "soundConfigExhaust": {
            "sampleName": "I6_2_exhaust",
    
            "mainGain": 4,
            "onLoadGain":1,
            "offLoadGain":0.9,
    
            "maxLoadMix": 0.8,
            "minLoadMix": 0,
    
            "eqLowGain": 0,
            "eqLowFreq": 3000,
            "eqLowWidth": 0.3,
    
            "eqHighGain": -8,
            "eqHighFreq": 3000,
            "eqHighWidth": 0.2,
    
            "lowShelfGain":8,
            "lowShelfFreq":220,
    
            "highShelfGain":-5,
            "highShelfFreq":6000,
    
            "fundamentalFrequencyCylinderCount":6
            "eqFundamentalGain": -4
        },
        
        "vehicleController": {
            "clutchLaunchStartRPM":1500,
            "clutchLaunchTargetRPM":2000,
            //**highShiftDown can be overwritten by automatic transmissions**
            "highShiftDownRPM":[0,0,0,2200,3400,3900,4100,4200]
            //**highShiftUp can be overwritten by intake modifications**
            "highShiftUpRPM":8350
        },
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["etki_engineN", ["etki_engine"],[]{"pos":{"x":0,"y":0,"z":0}}],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"selfCollision":false},
             {"collision":true}
             {"group":"etki_engine"},
             {"nodeWeight":24},
             {"engineGroup":"engine_block"}
             {"chemEnergy":2000,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":500,"conductionRadius":0.15},
             ["e1r", -0.11, -1.0, 0.22],
             ["e1l", 0.11, -1.0, 0.22],
             ["e2r", -0.11, -1.59, 0.22],
             ["e2l", 0.11, -1.59, 0.22],
             {"engineGroup":["engine_block","engine_intake"]}
             ["e3r", -0.24, -1.0, 0.69],
             ["e3l", 0.05, -1.0, 0.75],
             ["e4r", -0.24, -1.59, 0.69{"isExhaust":"mainEngine"}],
             ["e4l", 0.05, -1.59, 0.75],
             {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false},
             {"engineGroup":""}
             {"group":""},
        ],
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":20001000,"beamDamp":500},
              {"beamDeform":250000,"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":"mainEngine"}],
              ["e1l","e4l"],
              ["e1r","e4l"],
              ["e1l","e4r"],
    
              ["e1r","e2l"],
              ["e1l","e2r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
    
              {"beamSpring":25000,"beamDamp":50},
              {"beamDeform":2000,"beamStrength":8000},
              //rad tube beams
              {"breakGroup":"radtube"},
              ["e4r","f15l"],
              ["e4r","f15"],
              ["e4l","f15r"],
              ["e4l","f15"],
              ["e2r","f18l"],
              ["e2r","f18"],
              ["e2l","f18r"],
              ["e2l","f18"],
              {"breakGroup":""},
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                {"groundModel":"metal"},
                /*
                ["e5l", "e1l", "e3l"],
                ["e4r", "e3r", "e2r"],
                ["e3r", "e1r", "e2r"],
                ["e1r", "e1l", "e2r"],
                ["e2r", "e1l", "e2l"],
                ["e3l", "e1l", "e3r"],
                ["e3r", "e1l", "e1r"],
                ["e4r", "e4l", "e3l"],
                ["e4r", "e3l", "e3r"],
                ["e4r", "e2r", "e4l"],
                ["e4l", "e2r", "e2l"],
                ["e4l", "e2l", "e6l"],
                ["e6l", "e3l", "e4l"],
                ["e6l", "e2l", "e5l"],
                ["e6l", "e5l", "e3l"],
                ["e2l", "e1l", "e5l"],
                */
                {"triangleType":"NONCOLLIDABLE"},
                ["e2l", "e2r", "e1r"],
                ["e1r", "e1l", "e2l"],
                {"triangleType":"NORMALTYPE"},
        ],
    }
    }
    take note of the brackets at the very top and very bottom
    import that code into a blank Jbeam file and edit it using Notepad++. when you click on a bracket it will turn red if it has a sister bracket, and burgundy if not. if it does, then the sister bracket will also be highlighted in red, making looking for missing brackets 10x easier

    hope this helps!
     
  3. i.want.to.mod

    i.want.to.mod
    Expand Collapse

    Joined:
    Jul 11, 2019
    Messages:
    195
    i was able to fix it. Thank you for the help though
     
    • Like Like x 1
  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