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.32 Bug Reporting thread
    Solutions and more information may already be available.

Drag race bus wont shift out of 1st gear (devs needed)

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ThreeDTech21, Sep 27, 2019.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    i don't know much about engine setup for BeamNG

    I cant get my drag race bus to switch out of first gear with the automatic drag transmission, I cant figure it out because I have very limited knowledge about the physics of engines and transmissions, if someone can make sense of the code big thanks!

    Here is the code for the V12 Drag Engine and Supercharger

    Part of the Drag Engine Jbeam
    Code:
    {
    "semi_engine_new": {
        "information":{
            "authors":"BeamNG",
            "name":"V12 Drag Race Engine 2",
            "value":6000,
        },
        "slotType" : "semi_engine",
        "slots": [
            ["type", "default", "description"]
            //engine
            ["semi_transmission","semi_transmission_new", "Transmission"],
            ["flatbus_turbo_drag","flatbus_supercharger", "Turbocharger"],
            ["semi_drag_exhaust","semi_drag_exhaust", "Exhaust"],
            ["n2o_system","", "Nitrous Oxide System"],
            ["semi_engine_internals","semi_engine_internals", "Engine Long Block",{"coreSlot":true}],
            ["semi_engine_ecu","semi_engine_ecu", "Engine Management"],
        ],
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["combustionEngine", "mainEngine", "dummy", 0],
        ],
        "mainEngine":{
            "torque":[
                ["rpm", "torque"]
                
                [0,    0],
                [200,  940],
                [500,  1044],
                [750,  1318],
                [1000, 1555],
                [1200, 1660],
                [1500, 1850],
                [1800, 1818],
                [2200, 1686],
                [2500, 1556],
                [3000, 1320],
                [3350, 915],
                
            ],
    
            "idleRPM":1200,
            "maxRPM":3350,
            "revLimiterType":"soft"
            "inertia":40,
            "friction":5,
            "idleRPMRoughness":20,
            "dynamicFriction":12,
            //"burnEfficiency":0.35
            "burnEfficiency":[
                [0,   0.20],
                [0.1, 0.25],
                [0.3, 0.32],
                [0.4, 0.46],
                [0.7, 0.44],
                [1,   0.42],
            ],
            "torqueReactionNodes:":["en4l","en3l","en1r"]
            "particulates":0.2
            "energyStorage": "mainTank",
            "requiredEnergyType":"diesel",
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"iron"
            "oilVolume":15
            //engine durability
            "cylinderWallTemperatureDamageThreshold":36000000
            "headGasketDamageThreshold":350000000
            "pistonRingDamageThreshold":350000000
            "connectingRodDamageThreshold":3500000000
            //node beam interface
            "waterDamage": {"[engineGroup]:":["semi_engine_intake"]}
            "radiator": {"[engineGroup]:":["semi_radiator"]}
            "engineBlock": {"[engineGroup]:":["semi_engine_block"]}
            "breakTriggerBeam":"engine",
            "soundConfig": "soundConfig",
            "soundConfigExhaust": "soundConfigExhaust",
    
            //starter motor
            "starterSample":"event:>Engine>Starter>i6diesel_semi_eng",
            "starterVolume":0.67,
            "starterThrottleKillTime":1.2,
            "idleRPMStartRate":2,
            "idleRPMStartCoef":0.8,
    
    Part of the Supercharger Code
    Code:
    },
    "flatbus_supercharger": {
        "information":{
            "authors":"BeamNG",
            "name":"Supercharger Stage 5",
            "value":2600,
        }
        "slotType" : "flatbus_turbo_drag",
        "supercharger": {
            "whineLoopEvent": "event:>Vehicle>Forced_Induction>Supercharger_02>supercharger"
            //"whineLoopEvent": "event:>Vehicle>Forced_Induction>Supercharger_01>supercharger"
            "whineVolumePerPSI": 0.02
            "whinePitchPer10kRPM": 1.65
    
            "gearRatio":1.65,
            "clutchEngageRPM":0,
            "pressureRatePSI":250,
            "pressurePSIPer1kRPM":40.1,
            "crankLossPer1kRPM":0.025,
            "type":"roots",
            "lobes":8,
            "twistedLobes":true,
            
            "boostController":[
                //throttle in %, factor
                [0,     0.8],
                [100,     2],
            ],
        },
        "mainEngine": {
            //supercharger name
            "supercharger":"supercharger",
            "$*instantAfterFireCoef": 6,
            "$*sustainedAfterFireCoef": 6,
        },
        "soundConfig": {
            "$+maxLoadMix": 0.9,
            "$+intakeMuffling":-0.0,
            "$+mainGain":1,
        },
        "vehicleController": {
            "revMatchThrottle":0.3,
    

    Here is part of the transmission code
    Code:
    }
    "flatbus_transmission_drag2": {
        "information":{
            "authors":"Dudeman",
            "name":"Drag 4-Speed Automatic",
        }
        "slotType" : "semi_transmission",
        "powertrain" : [
            ["type", "name", "inputName", "inputIndex"],
            ["torqueConverter", "torqueConverter", "mainEngine", 1],
            ["automaticGearbox", "gearbox", "torqueConverter", 1],
        ],
        "gearbox": {
            "gearRatios":[-4.05, -5.03, 0, 10.45, 2.25, 1.41, 1.00]
            "parkLockTorque":25000,
            "oneWayViscousCoef":10,
            "friction": 10,
        },
        "torqueConverter": {
            "converterDiameter": 0.425,
            "converterStiffness":5,
            "couplingAVRatio":0.90,
            "stallTorqueRatio":1.96,
            "lockupClutchTorque":500,
        },
        "vehicleController": {
            "automaticModes":"PRNDM",
            "transmissionGearChangeDelay":0.5,
            "transmissionShiftDelay":0.5,
            //"shiftDownRPMOffsetCoef":0.6,
            "calculateOptimalLoadShiftPoints": true
            "lowShiftDownRPM":[500,0,0,0,500,700,700,700,700,700,700,700,700]
            "lowShiftUpRPM":1200,
            "highShiftUpRPM":1600,
            "highShiftDownRPM":[500,0,0,0,500,1000,1000,1000,1000,1000,1000,1000,1000]
            "wheelSlipUpThreshold":5,
    
     
  2. SebastianJDM

    SebastianJDM
    Expand Collapse

    Joined:
    Apr 9, 2017
    Messages:
    856
    make sure your torque converter doesn't stall too high. also make sure it is set to shift before/at redline (not a further RPM). that's really all i can say. does it work in manual mode?

    also, make sure your "highShiftDownRPM" isn't at/higher than the RPM your engine is at after it makes the 1-2 shift (if it revs to 1600, shifts and ends up at 900, it will downshift again because your highShiftDownRPM is over 900.)
     
    • Agree Agree 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