I can't get custom engines to work in the game

Discussion in 'Content Creation' started by Click_, Jun 3, 2018.

  1. Click_

    Click_
    Expand Collapse

    Joined:
    Jun 3, 2018
    Messages:
    1
    First of all, I hope this is in correct place. I've tried following the tutorial https://www.beamng.com/threads/tutorial-how-to-mod-engine-part-1.39221/ and I also tried to copy the whole engine.jbeam but neither works. I also tried modifying indestructible engine blocks modslot but that didn't work either. I'd like to be able to experiment with modified or my own made custom parts. I'm guessing something changed in the file structure since the writing of the tutorial or I'm doing something wrong. I'm putting these inside "vehicles" folder that is inside compressed zip, and that is in the mods folder in documents/beamng/mods
    Here's the two variations I've attempted:

    Code:
    {
    "test_pigeon": {
        "information":{
            "authors":"click",
            "name":"test",
            "value":0,
        },
        "slotType" : "pigeon_mod",
        "mainEngine": {
            "torque":[
                ["rpm", "torque"]
                [0, 90],
                [500, 90],
                [1000, 90],
                [1500, 90],
                [2000, 90],
                [2500, 90],
                [3000, 90],
                [4000, 90],
                [5000, 90],
                [5500, 90],
                [6000, 90],
            ],
    }
    }

    Code:
    {
    "afsafsafsbarstow_engine_v8_291": {
        "information":{
            "authors":"BeamNG",
            "name":"asfasfafs291 CUI V8 Engine",
            "value":990,
        }
        "slotType" : "barstow_engine",
        "slots": [
            ["type", "default", "description"]
            ["barstow_exhaust_v8","barstow_exhaust_v8", "Exhaust"],
            ["barstow_intake_v8","barstow_intake_v8", "Intake",{"coreSlot":true}],
            ["barstow_engine_ecu","barstow_engine_ecu", "Engine Management"],
            ["n2o_system","", "Nitrous Oxide System"],
            ["barstow_engine_internals","barstow_engine_internals", "Engine Long Block",{"coreSlot":true}],
            ["barstow_transmission","barstow_transmission_3A", "Transmission"],
        ],
        "powertrain": [
            ["type", "name", "inputName", "inputIndex"],
            ["combustionEngine", "mainEngine", "dummy", 0],
        ],
        "mainEngine":{
            "torque":[
                ["rpm", "torque"]
                [0        0],
                [500    432],
                [1000    432],
                [1500    432],
                [2000    432],
                [2500    432],
                [3000    432],
                [3500    428],
                [4000    406],
                [5000    320],
                [6000    225],
                [7000    140],
                [8000    90],
            ],
    
            "idleRPM":700,
            //max rpm physically capable of
            "maxRPM":5000,
            "hasRevLimiter":false,
            "inertia":0.2,
            "friction":20
            "dynamicFriction":0.025
            //"burnEfficiency":0.29
            "burnEfficiency":[
                [0, 0.1],
                [0.05, 0.22],
                [0.4, 0.28],
                [0.7, 0.34],
                [1, 0.23],
            ],
            "torqueReactionNodes:":["e1l","e2l","e4r"]
            "particulates":0.055
            "energyStorage": "mainTank",
            "requiredEnergyType":"gasoline",
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"iron"
            "oilVolume":8
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":150
            "headGasketDamageThreshold":1500000
            "pistonRingDamageThreshold":1500000
            "connectingRodDamageThreshold":2000000
    
            "maxTorqueRating": 580,
            "maxOverTorqueDamage": 400,
    
            //node beam interface
            "waterDamage": {"[engineGroup]:":["engine_intake"]}
            "radiator": {"[engineGroup]:":["radiator"]}
            "engineBlock": {"[engineGroup]:":["engine_block"]}
            "breakTriggerBeam":"engine",
            "uiName":"Engine",
    
            "soundConfig": "soundConfig",
        },
        "soundConfig": {
            "sampleName": "V8_2",
            "mainGain": -18,
            "maxLoadMix": 0.6,
            "minLoadMix": 0,
            "onLoadGain":1,
            "offLoadGain":0.6,
            "eqLowGain": -5,
            "eqLowFreq": 150,
            //"eqLowWidth": 0,
            "eqHighGain": -5,
            "eqHighFreq": 6000,
            //"eqHighWidth": 0,
            "lowCutFreq":90,
            //"fundamentalFrequencyCylinderCount":8
            //"eqFundamentalGain": 15,
        },
        "vehicleController": {
            "clutchLaunchStartRPM":1200,
            "clutchLaunchTargetRPM":1600,
            //**highShiftDown can be overwritten by automatic transmissions**
            "highShiftDownRPM":[0,0,0,1800,2500,2600,2600,2600]
            //**highShiftUp can be overwritten by intake modifications**
            "highShiftUpRPM":4800
        },
        "props": [
            ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"]
            ["radiatorFanSpin"  , "barstow_coolingfan_v8", "e2r","e2l","e4r",  {"x":0, "y":0, "z":0}, {"x":0, "y":1, "z":0}    , {"x":0, "y":0, "z":0}, -360, 360, 0, 1],
        ],
        "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            ["barstow_engine_v8_291", ["barstow_engine"]],
            ["barstow_header_v8_291", ["barstow_engine"]],
            ["barstow_radtube_v8", ["barstow_radtube","barstow_engine"]],
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"selfCollision":false},
             {"collision":true}
             {"group":"barstow_engine"},
             {"engineGroup":"engine_block"}
             {"nodeWeight":26.7},
             {"chemEnergy":2000,"burnRate":0.39,"flashPoint":650,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.2},
             ["e1r", -0.13, -0.94, 0.20],
             ["e1l", 0.13, -0.94, 0.20],
             ["e2r", -0.13, -1.50, 0.30],
             ["e2l", 0.13, -1.50, 0.30],
             {"selfCollision":true},
             {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false}
             {"engineGroup":["engine_block","engine_intake"]}
             ["e3r", -0.32, -0.94, 0.76],
             ["e3l", 0.32, -0.94, 0.76],
             ["e4r", -0.32, -1.50, 0.76{"isExhaust":"mainEngine"}],
             ["e4l", 0.32, -1.50, 0.76],
             {"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"{"isExhaust":"mainEngine"}],
    
              ["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"{"isExhaust":"mainEngine"}],
              ["e1r","e4l"],
              ["e1l","e4r"],
    
              ["e1r","e2l"],
              ["e1l","e2r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
    
              ["e1r","e3l"],
              ["e1l","e3r"],
              ["e2r","e4l"],
              ["e2l","e4r"],
    
              //radtube
              {"beamSpring":166830,"beamDamp":84},
              {"beamDeform":2025,"beamStrength":7000},
              ["e2r","ra1r"],
              ["e2l","ra1r"],
              ["e4r","ra1r"],
              ["e4l","ra1r"],
              {"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"},
        ],
    }
     
  2. MASKED REPTILIAN

    MASKED REPTILIAN
    Expand Collapse

    Joined:
    May 10, 2018
    Messages:
    203
    can you send me the files and ill try and get them working and ill tell you how i did it so you can do it in the future
     
  3. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Hmm, I belive it should be like this now and without zipping:
    Documents\BeamNG.drive\vehicles\Pigeon\yourpigeonmod

    This defines where engine will show up, this line makes it show up in Barstow:
    "slotType" : "barstow_engine",

    Changing line to this makes it show up in Pigeon:
    "slotType" : "pigeon_engine",
     
  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