Solved help

Discussion in 'Mod Support' started by MASKED REPTILIAN, Oct 10, 2018.

  1. MASKED REPTILIAN

    MASKED REPTILIAN
    Expand Collapse

    Joined:
    May 10, 2018
    Messages:
    203
    ive tried to add a sound config into a baemng vehicle geuss what


    It doesnt work

    Code:
    {
    "BTR80_engine": {
        "information":{
            "authors":"Reactor_4aec",
            "name":"KamAZ 7403 diesel",
        }
        "slotType" : "BTR80_engine",
        "scalebeamSpring":1,
        "scalebeamDamp":1,
        "scalebeamDeform":1,
        "scalebeamStrength":1,
        "slots": [
            ["type", "default", "description"]
            ["BTR80_transmission","BTR80_transmission", "BTR-80 Transmission"],
        ],
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
        ],
        "props": [
            ["func"      , "mesh"              , "idRef:", "idX:", "idY:"            , "baseRotation"        , "rotation"                 , "translation"        , "min", "max", "offset", "multiplier"]
    
         ],
        "enginetorque":[
            ["rpm", "torque"]
            [0, 0],
            [500, 5680],
            [750, 5900],
            [1000, 6400],
            [1500, 6560],
            [2000, 6670],
            [3000, 6675],
            [4000, 6670],
        ],
        "engine":{
            "idleRPM":500,
            "shiftDownRPM":3000,
            "shiftUpRPM":3900,
            "maxRPM":4000,
            "revLimiterRPMDrop":0,
            "inertia":1.5,
            "friction":60
            "brakingCoefRPS":0.3
            "burnEfficiency":0.4
            "throttleSensitivity":1
            "torqueReactionNodes:":["fb11","fb10","ft10r"]
            "particulates":1
    
            "fuelCapacity":300
    
            //cooling and oil system
            "thermalsEnabled":false
            "engineBlockMaterial":"iron"
            "oilVolume":25
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":16000
            "headGasketDamageThreshold":150000000
            "pistonRingDamageThreshold":150000000
            "connectingRodDamageThreshold":150000000
    
            //cooling system
            "radiatorArea":0.8,
            "radiatorEffectiveness":2500000,
            "coolantVolume":6000
            "radiatorFanType":"mechanical",
            "radiatorFanMaxAirSpeed":2,
            "thermostatTemperature":90
    
            "oilRadiatorArea":0.5,
            "oilRadiatorEffectiveness":1000000,
            "oilThermostatTemperature":110
    
    
            "soundConfig": "BTR80_engine",
    },
    "soundConfig": {
        "sampleName": "B4",
        "mainGain": -18,
        "maxLoadMix": 0.6,
        "minLoadMix": 0,
        "onLoadGain":1,
        "offLoadGain":0.65,
        "eqLowGain": -5,
        "eqLowFreq": 150,
        "eqLowWidth": 0,
        "eqHighGain": -5,
        "eqHighFreq": 6000,
        "eqHighWidth": 0,
        "lowCutFreq":90,
        "highCutFreq":12000,
        "eqFundamentalGain": -15,
    }
    
        "nodes": [
             ["id", "posX", "posY", "posZ"],
    
             {"engineGroup":""}
             {"group":""},
            
        ],
        
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
        ],
    }
    "BTR80_transmission": {
        "information":{
            "authors":"Reactor_4aec",
            "name":"BTR-80 5-Speed Manual Transmission",
        }
        "slotType" : "BTR80_transmission",
        "scalebeamSpring":1,
        "scalebeamDamp":1,
        "scalebeamDeform":1,
        "scalebeamStrength":1,
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
    
    
    
        ],
        "engine":{
            "transmissionType":"manual",
            "gears":[-17.0, 0, 22.0, 11.0, 8.0, 5.2, 3.5]
            "clutchDuration":0.35
    
            },
        "nodes": [
             ["id", "posX", "posY", "posZ"],     
        ],
        
        "beams": [
              ["id1:", "id2:"],
              {"beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
        ],
    }
    }
     
  2. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    does it break your game? is the sound still vanilla sound? no sound at all? tell us more...post a screenshot of the console if it breaks the car and it wont load.
     
  3. MASKED REPTILIAN

    MASKED REPTILIAN
    Expand Collapse

    Joined:
    May 10, 2018
    Messages:
    203
    it still is a V8 when i set it to be a B4
     
  4. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    hmm, not too sure, it must be a bit more in depth than just changing the sample name...im sure theres another step needing to be taken. I have tried it in the past, changing from V8 TO i4 example. anyone have any insight??
     
  5. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Are you sure it is using the new system? If you have sbeam files or sound folder then it uses old sounds.
     
  6. Deleted member 160369

    Deleted member 160369
    Expand Collapse
    Guest

    Logic error in the code: the sound config you assigned to the engine (BTR80_engine) isn't defined anywhere. Use the default name (soundConfig) like the configuration you currently have in the code and it should work.
     
  7. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    The jbeam above still uses the super old drivetrain system which does not support any of the new features. You need to convert this to a proper powertrain first.
     
  8. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    doh! i totally didnt notice that code being super old. yea thats the problem right there lol it would make sense to copy and modify a current car's engine code and tweaking it to your liking. BTW, WTF needs that kind of engine torque???
     
  9. MASKED REPTILIAN

    MASKED REPTILIAN
    Expand Collapse

    Joined:
    May 10, 2018
    Messages:
    203
    how
     
  10. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
     
  11. MASKED REPTILIAN

    MASKED REPTILIAN
    Expand Collapse

    Joined:
    May 10, 2018
    Messages:
    203
    btr80 tank
     
  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