Help with RPM change

Discussion in 'Automation' started by 7r1f0rc3 Gaming, Apr 21, 2019.

  1. 7r1f0rc3 Gaming

    7r1f0rc3 Gaming
    Expand Collapse

    Joined:
    May 20, 2017
    Messages:
    36
    Trying to modify the RPM to something like 18000 RPM. Power doesn't matter at the moment, but I need someone's help with modifying the files to have an 18000 rpm car. I can change the power myself.
    Here's what I have so far for camso_engine
    {
    "Camso_Engine": {
    "information":{
    "authors":"Camshaft Software",
    "name":"Car Engine",
    }
    "slotType" : "Camso_Engine",
    "slots": [
    ["type", "default", "description"]

    ["Camso_Transmission","Camso_Transmission", "Transmission"]
    ],
    "powertrain" : [
    ["type", "name", "inputName", "inputIndex"],
    ["combustionEngine", "mainEngine", "dummy", 0],
    ],

    "mainEngine": {
    "torque":[
    ["rpm", "torque"]
    [0,0],
    [1100, 359.72],
    [1200, 367.38],
    [1300, 375.24],
    [1400, 381.62],
    [1500, 387.06],
    [1600, 392.47],
    [1700, 397.83],
    [1800, 403.61],
    [1900, 408.11],
    [2000, 413.55],
    [2100, 418.95],
    [2200, 424.23],
    [2300, 429.27],
    [2400, 433.40],
    [2500, 435.15],
    [2600, 438.40],
    [2700, 442.07],
    [2800, 446.71],
    [2900, 451.27],
    [3000, 455.33],
    [3100, 458.79],
    [3200, 462.68],
    [3300, 467.41],
    [3400, 471.41],
    [3500, 475.37],
    [3600, 479.11],
    [3700, 480.87],
    [3800, 484.02],
    [3900, 488.44],
    [4000, 492.65],
    [4100, 497.10],
    [4200, 499.37],
    [4300, 502.63],
    [4400, 506.13],
    [4500, 510.34],
    [4600, 514.50],
    [4700, 519.37],
    [4800, 525.56],
    [4900, 530.94],
    [5000, 535.42],
    [5100, 540.11],
    [5200, 546.51],
    [5300, 552.93],
    [5400, 558.12],
    [5500, 563.43],
    [5600, 570.41],
    [5700, 578.14],
    [5800, 587.83],
    [5900, 595.75],
    [6000, 604.28],
    [6100, 613.32],
    [6200, 623.54],
    [6300, 629.90],
    [6400, 634.76],
    [6500, 638.09],
    [6600, 641.11],
    [6700, 644.84],
    [6800, 647.85],
    [6900, 651.10],
    [7000, 653.51],
    [7100, 654.24],
    [7200, 655.18],
    [7300, 657.59],
    [7400, 656.86],
    [7500, 655.58],
    [7600, 654.25],
    [7700, 653.13],
    [7800, 650.48],
    [7900, 648.55],
    [8000, 646.52],
    [8100, 642.75],
    [8200, 640.63],
    [8300, 637.09],
    [8400, 634.13],
    [8500, 630.72],
    [8600, 626.62],
    [8700, 621.45],
    [8800, 616.82],
    [8900, 613.04],
    [9000, 608.78],
    [9100, 604.07],
    [9200, 599.54],
    [9300, 594.84],
    [9400, 591.09],
    [9500, 587.37],
    [9600, 582.82],
    [9700, 579.21],
    [9800, 574.45],
    [9900, 570.74],
    [10000, 567.42],
    [10100, 563.58],
    [10200, 560.25],
    [10300, 556.79],
    [10400, 552.72],
    [10500, 548.99],
    [10600, 544.82],
    [10700, 540.30],
    [10800, 535.88],
    [10900, 532.41],
    [11000, 529.63],
    [11100, 525.67],
    [11200, 521.53],
    [11300, 517.14],
    [11400, 512.00],
    [11500, 507.21],
    [11600, 502.60],
    [11700, 498.13],
    [11800, 493.34],
    [11900, 488.25],
    [12000, 482.77],
    [12100, 560.25],
    [12200, 556.79],
    [12300, 552.72],
    [12400, 548.99],
    [12500, 544.82],
    [12600, 540.30],
    [12700, 535.88],
    [12800, 532.41],
    [12900, 529.63],
    [13000, 525.67],
    [13100, 521.53],
    [13200, 517.14],
    [13300, 512.00],
    [13400, 507.21],
    [13500, 502.60],
    [13600, 498.13],
    [13700, 493.34],
    [13800, 488.25],
    [13900, 482.77],
    [14000, 567.42],
    [14100, 563.58],
    [14200, 560.25],
    [14300, 556.79],
    [14400, 552.72],
    [14500, 548.99],
    [14600, 544.82],
    [14700, 540.30],
    [14800, 535.88],
    [14900, 532.41],
    [15000, 529.63],
    [15100, 525.67],
    [15200, 521.53],
    [15300, 517.14],
    [15400, 512.00],
    [15500, 507.21],
    [15600, 502.60],
    [15700, 498.13],
    [15800, 493.34],
    [15900, 488.25],
    [16000, 482.77],
    [16100, 567.42],
    [16200, 563.58],
    [16300, 560.25],
    [16400, 556.79],
    [16500, 552.72],
    [16600, 548.99],
    [16700, 544.82],
    [16800, 540.30],
    [16800, 535.88],
    [16900, 532.41],
    [17000, 529.63],
    [17100, 525.67],
    [17200, 521.53],
    [17300, 517.14],
    [17400, 512.00],
    [17500, 507.21],
    [17600, 502.60],
    [17700, 498.13],
    [17800, 493.34],
    [17900, 488.25],
    [18000, 482.77],

    ],
    //rev limiters have some options
    //"revLimiterType":"rpmDrop", //Default choice. waits for rpm to fall before torque comes back. Can have long delays in high gears. Uses "revLimiterRPMDrop".
    //"revLimiterType":"timeBased", //Waits for "revLimiterCutTime" time window, but also has "revLimiterMaxRPMDrop" fallback, if the rpm falls too much in the time window.
    //"revLimiterType:"soft", //Tapers the the torque off in some range of rpm defined by "revLimiterSmoothOvershootRPM"
    //"hasRevLimiter":false, //Disables rev limiter
    "revLimiterRPMDrop":100,
    //engine performance
    "idleRPM":1045.9232274106,
    "maxRPM":20000, //Max RPM before overrev damage is likely
    "inertia":0.4896775761525, //(kg*m/s^2)
    "friction":7.9269646360565, //Constant friction torque (Nm)
    "dynamicFriction":0.096245751665603, //Friction torque that increases with engine speed (Nm/rad/s)



    "waterDamage": {"[engineGroup]:":["engine_intake"]}, //Engine hydrolocks when nodes in this group go under water
    "radiator": {"[engineGroup]:":["radiator"]}, //Radiator steam is emitted from nodes in this group
    "engineBlock": {"[engineGroup]:":["engine_block"]}, //Engine thermal mass is taken from nodes in this group
    //"fuel": {"[engineGroup]:":["fuel"]},
    "breakTriggerBeam":"engine", //Engine breaks if beam with this name is broken

    "soundConfig": "soundConfig", //What section name to look for for engine sound information

    "particulates":0.099999995529652,

    //cooling and oil system,
    "thermalsEnabled":false,
    "engineBlockMaterial":"aluminium", //"aluminum", "aluminium", "iron"


    //cooling system
    "radiatorArea":0.86594870873372,
    "radiatorEffectiveness":20000,
    "coolantVolume":6.3948671455882,
    "radiatorFanType":"electric",
    "radiatorFanTemperature":105
    "radiatorFanMaxAirSpeed":2,
    "thermostatTemperature":90,

    //oil radiator
    "oilRadiatorArea":6.3948671455882,
    "oilRadiatorEffectiveness":2000,
    "oilThermostatTemperature":100,
    "oilVolume":5.0461503591911, //Litres

    //engine durability
    "cylinderWallTemperatureDamageThreshold":1600, //Cylinder temp (C) over which damage starts to occur to rings
    "headGasketDamageThreshold":1500000, //Durability of headgasket
    "pistonRingDamageThreshold":1500000, //Durability of headgasket
    "connectingRodDamageThreshold":2000000, //Durability of connecting rods

    "energyStorage": "mainTank", //Name of the fuel tank
    "requiredEnergyType":"gasoline", //Type of fuel required
    "burnEfficiency": [ //How much fuel energy is converted to work in the cylinders (does not account for engine friction losses)
    [0.00, 0.18],
    [0.05, 0.39],
    [0.40, 0.51],
    [0.70, 0.63],
    [1.00, 0.43],

    ],
    "torqueReactionNodes:":["engine0", "engine1", "engine2"]
    },
    "vehicleController": {
    //https://wiki.beamng.com/VehicleController
    //I will put commonly used values below

    //universally useful values
    "calculateOptimalLoadShiftPoints":true, //The high shift points ones can be auto calculated
    //"shiftDownRPMOffsetCoef":1.3, //Can spread the downshift points for auto calculation if it tends to hunt too much (choose lower number to spread more)

    "lowShiftDownRPM":1395.9232274106,
    //"highShiftDownRPM":5750,
    "lowShiftUpRPM":1895.9232274106,
    //"highShiftUpRPM":11375,

    "topSpeedLimit":136.41725210243097877, //Speed limiter in m/s

    //may want to increase values below for ultra high powered cars. On our drag cars they are set to 99999 to effectively disable
    //"wheelSlipUpThreshold":7000, //A wheelspin threshold to stop arcade/auto gearbox from upshifting while spinning the tires or drifting
    //"wheelSlipDownThreshold":10000, //A wheelspin threshold to stop arcade/auto gearbox from downshifting when locking the brakes
    },

    "soundConfig": {
    "sampleName": "B2384D0A48D1129FA5F86ABCDD67F6A8",
    "mainGain": 7.5,
    "maxLoadMix": 1,
    "minLoadMix": 0,
    "onLoadGain":1,
    "offLoadGain":1,
    "eqLowGain": 0,
    "eqLowFreq": 400,
    "eqLowWidth": 0,
    "eqHighGain": 0,
    "eqHighFreq": 6000,
    "eqHighWidth": 0.5,
    "lowCutFreq":80,
    //"fundamentalFrequencyCylinderCount":4,
    "eqFundamentalGain": 0,
    },

    },

    "Camso_Transmission": {
    "information":{
    "authors":"Camshaft Software",
    "name":"Transmission",
    }
    "slotType" : "Camso_Transmission",
    "slots": [
    ["type", "default", "description"]

    ],

    "gearbox": {
    //https://wiki.beamng.com/DctGearbox
    "gearRatios":[-3.83, 0, 3.65, 2.36, 1.72, 1.33, 1.07, 0.89, 0.75],
    "friction": 0, //Constant friction torque on input shaft
    "parkLockTorque": 1000, //Maximum holding torque of park mode
    },

    "vehicleController":
    {
    //dct useful values
    "automaticModes":"PRNDSM", //Add or remove P,R,N,D,S,M,L,1,2 from the string to customize modes
    "clutchLaunchStartRPM":1145.9232274106, //RPM where launching behavior starts
    "clutchLaunchTargetRPM":1645.9232274106, //RPM it tries to maintain while launching
    "revMatchThrottle": 0.25, //Controls shift rev match assist. Reduce this value to as much as 0.25 for high powered engines
    "transmissionShiftDelay": 0.15, //Added time to shift if it didnt have the right gear preselected
    "dctClutchTime": 0.05, //How fast it can shift in ideal case (either a correct shift or act of preselecting)
    "gearboxNode:":["engine0"], //node used to play gear damage sound
    },


    "powertrain" : [
    ["type", "name", "inputName", "inputIndex"],
    ["dctGearbox", "gearbox", "mainEngine", 1],


    ["differential", "centreDiff", "gearbox", 1, {"diffType":"lsd", "gearRatio":1.00, "diffTorqueSplit":0.19}],
    //https://wiki.beamng.com/Differential
    //needed values to tune diff behavior
    //locked specific - nothing needed, auto calc now

    //lsd specific
    //"lsdPreload":50, //Nm of preload torque. Clutch diffs 50-250, Torsen around 0
    //lsdLockCoef:0.2, //On throttle locking ramp. O.1-0.2 for clutch type, 0.3-0.4 is more like torsen
    //lsdRevLockCoef:0.2, //=lsdLockCoef by default. O.1-0.2 for clutch type, 0.3-0.4 is more like torsen

    ["shaft", "frontDriveShaft", "centreDiff", 1 ],
    ["differential", "frontDiff", "frontDriveShaft", 1, {"diffType":"lsd", "gearRatio":5.87, "diffTorqueSplit":0.50}],
    //https://wiki.beamng.com/Differential
    //needed values to tune diff behavior
    //locked specific - nothing needed, auto calc now

    //lsd specific
    //"lsdPreload":50, //Nm of preload torque. Clutch diffs 50-250, Torsen around 0
    //lsdLockCoef:0.2, //On throttle locking ramp. O.1-0.2 for clutch type, 0.3-0.4 is more like torsen
    //lsdRevLockCoef:0.2, //=lsdLockCoef by default. O.1-0.2 for clutch type, 0.3-0.4 is more like torsen

    ["shaft", "rearDriveShaft", "centreDiff", 2 ],
    ["differential", "rearDiff", "rearDriveShaft", 1, {"diffType":"lsd", "gearRatio":5.87, "diffTorqueSplit":0.50}],
    //https://wiki.beamng.com/Differential
    //needed values to tune diff behavior
    //locked specific - nothing needed, auto calc now

    //lsd specific
    //"lsdPreload":50, //Nm of preload torque. Clutch diffs 50-250, Torsen around 0
    //lsdLockCoef:0.2, //On throttle locking ramp. O.1-0.2 for clutch type, 0.3-0.4 is more like torsen
    //lsdRevLockCoef:0.2, //=lsdLockCoef by default. O.1-0.2 for clutch type, 0.3-0.4 is more like torsen

    ["shaft", "wheelaxleFL", "frontDiff", 1, {"connectedWheel":"FL", "friction":0}],
    ["shaft", "wheelaxleFR", "frontDiff", 2, {"connectedWheel":"FR", "friction":0}],
    ["shaft", "wheelaxleRL", "rearDiff", 1, {"connectedWheel":"RL", "friction":0}],
    ["shaft", "wheelaxleRR", "rearDiff", 2, {"connectedWheel":"RR", "friction":0}],

    ],
    },




    "Camso_FuelTank": {
    "information":{
    "name":"Fuel Tank",
    "value":250,
    },
    "slotType" : "Camso_FuelTank",
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ],
    "variables": [
    ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
    ["$fuel", "range", "L", "Engine", 45, 0, 60, "Fuel Volume", "Initial Fuel Volume", {"stepDis":0.5}]
    ],
    "energyStorage": [
    ["type", "name"],
    ["fuelTank", "mainTank"],
    ],
    "mainTank": {
    "energyType":"gasoline", //Type of fuel (must match engine for engine to run)
    "fuelCapacity": 60, //Litres
    "startingFuelCapacity": "$fuel", //Litres
    "fuel": {"[engineGroup]:":["fuel"]}, //Adds fuel mass to nodes in this engineGroup
    "breakTriggerBeam": "fuelTank", //Fuel tank drains if beam with this name is broken
    }
    "nodes": [
    //add nodes here in an engineGroup called "fuel" as indicated above. The physics will add fuel mass to these nodes

    ],
    "beams": [
    //breakTriggerBeam here can cause fuel tank to rupture in crash (drains the fuel slowly)
    ],
    },
    }


    Ingame, however, it still says and revs to 12000 RPM (the original rpm). Help?
    (vehicle in question will be available to download. warning: will cause an eargasm if you've a thing for high-pitched 4 liter i-4's))
     

    Attached Files:

  2. PlayKoyote24

    PlayKoyote24
    Expand Collapse

    Joined:
    Jul 27, 2018
    Messages:
    84
    Just Set the normal rev limiter up to 18000 and adjust high Shift up RPM and Everything will be fibe, no reason to overcomplicate it.
     
  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