1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Stuck, Having problems with creating your mod? Let us help you: Mod Support

WIP Beta released Automation Engine Converter 1.2 (4/23/16)

Discussion in 'Content Creation' started by JesseAye, Feb 27, 2016.

?

Was this application useful?

  1. Yes, and accurate!

    71.2%
  2. Yes, but could be more accurate.

    21.9%
  3. No, it was not useful.

    6.8%
  1. JesseAye

    JesseAye
    Expand Collapse

    Joined:
    Feb 27, 2016
    Messages:
    14
    No, not at this time at least. I have zero experience with models lol
     
  2. amarks240

    amarks240
    Expand Collapse
    Guest

    i have not fooled around with automation yet but id love an easy way to make nice torque curves. also, this would go good with an in game app that told you true wheel horsepower, as opposed to theoretical power we get now. i think BHP minus friction (something like 10 percent?) is the "THP" the in game graph shows.
     
  3. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,071
    Found a bug if you convert a engine with a rev limit of 10,000 RPM or more the converter will glitch out and only show 500 to 1000 rpms only.
     
  4. JesseAye

    JesseAye
    Expand Collapse

    Joined:
    Feb 27, 2016
    Messages:
    14
    Ok I'll check it out tomorrow, thanks for the heads up!
     
  5. Slammington

    Slammington
    Expand Collapse

    Joined:
    Aug 14, 2014
    Messages:
    1,380
    This works pretty well, I ported a 1.4 sohc engine into the covet. 80hp, 21 second 0-60. wohoo
     
  6. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,071
    no problem.
     
  7. (GNG) [S.PLH] wearyNATE15

    (GNG) [S.PLH] wearyNATE15
    Expand Collapse

    Joined:
    Oct 15, 2015
    Messages:
    1,123
    Wait, I read in the desc that it isnt working now, but that was at the end of feb. It works now?
     
  8. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,071
    This converter was working since released. :).
     
  9. (GNG) [S.PLH] wearyNATE15

    (GNG) [S.PLH] wearyNATE15
    Expand Collapse

    Joined:
    Oct 15, 2015
    Messages:
    1,123
    How do i modify it to put it in game? I have no clue how to do this. I read the desc of the mod, im just confused.
     
  10. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,071
    Do you have automation in steam? if you don't you need it :).
     
  11. (GNG) [S.PLH] wearyNATE15

    (GNG) [S.PLH] wearyNATE15
    Expand Collapse

    Joined:
    Oct 15, 2015
    Messages:
    1,123
    I have it in steam, I put the engine file in the converter, i need help after that.
     
  12. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,071
    it should convert it like this

    Code:
    [500, 189.18],
    [600, 196.39],
    [700, 203.2],
    [800, 210.55],
    [900, 216.65],
    [1000, 223.5],
    [1100, 229.89],
    [1200, 235.58],
    [1300, 240.42],
    [1400, 244.86],
    [1500, 249.56],
    [1600, 253.66],
    [1700, 258.01],
    [1800, 262.35],
    [1900, 265.84],
    [2000, 269.93],
    [2100, 274.18],
    [2200, 276.85],
    [2300, 279.37],
    [2400, 281.63],
    [2500, 284.09],
    [2600, 287.12],
    [2700, 290.07],
    [2800, 292.56],
    [2900, 294.85],
    [3000, 296.63],
    [3100, 298.54],
    [3200, 300.39],
    [3300, 302.84],
    [3400, 304.08],
    [3500, 304.28],
    [3600, 305.35],
    [3700, 306.37],
    [3800, 308.71],
    [3900, 310.48],
    [4000, 313.46],
    [4100, 315.45],
    [4200, 317.5],
    [4300, 319.61],
    [4400, 321.89],
    [4500, 325.43],
    [4600, 328.98],
    [4700, 333.51],
    [4800, 338.34],
    [4900, 342.77],
    [5000, 348.74],
    [5100, 354.96],
    [5200, 361.33],
    [5300, 367.34],
    [5400, 375.75],
    [5500, 384.64],
    [5600, 393.89],
    [5700, 403.76],
    [5800, 414.96],
    [5900, 426.66],
    [6000, 439.48],
    [6100, 454.85],
    [6200, 472.25],
    [6300, 494.01],
    [6400, 520.12],
    [6500, 552.84],
    [6600, 598.99],
    [6700, 656.61],
    [6800, 721.73],
    [6900, 785.3],
    [7000, 854.19],
    [7100, 931.5],
    [7200, 1018],
    [7300, 1087.37],
    [7400, 1132.49],
    [7500, 1162.15],
    [7600, 1176.84],
    [7700, 1181.97],
    [7800, 1181.17],
    [7900, 1180.3],
    [8000, 1176.09],
    [8100, 1173.79],
    [8200, 1170.08],
    [8300, 1164.16],
    [8400, 1156.01],
    [8500, 1146.61],
    [8600, 1136.2],
    [8700, 1117.81],
    [8800, 1102.85],
    [8900, 1088.48],
    [9000, 1070.28],
    
    Then you take a jbeam for example

    Code:
    
    {
    "pickup_engine_v8_otf": {
        "information":{
            "authors":"BeamNG",
            "name":"4.5L V8 Engine OTF",
            "value":1300,
        }
        "slotType" : "pickup_engine",
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["gavril_v8_pickup", ["pickup_engine"], [], {"pos":{"x":0, "y":0, "z":0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
             ["pickup_engbay", ["pickup_cab", "pickup_firewall", "pickup_frontmeat","pickup_engine_intake"]],
        ],
        "slots": [
            ["type", "default","description"]
            ["pickup_transmission","pickup_transmission_4A","Transmission"],
            ["pickup_exhaust_v8","pickup_exhaust_v8","V8 Exhaust"],
            ["pickup_enginetuning_v8","pickup_enginetuning_v8_stock", "Engine Tuning"],
        ],
        "enginetorque":[
            ["rpm", "torque"]
            [0, 0],
            [500, 125],
            [1000, 192],
            [2000, 290],
            [3000, 340],
            [4000, 345],
            [5000, 325],
            [6000, 295],
            [7000, 185],
            [8000, 75],
    
    
         ],
        "variables": [
            ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
            ["$idleRPM", "range", "RPM", "Engine", 850, 300, 5400, "Engine Idle RPM", "Engine Idle RPM"]
            ["$maxRPM", "range", "RPM", "Engine", 5400, 300, 5800, "Engine Rev Limiter", "Engine Rev Limiter"]
            ["$revLimiterRPMDrop", "range", "RPM", "Engine", 0, 0, 300, "Engine Rev Limiter RPM Drop", "Engine RPM Limiter"]
            ["$inertia", "range", "Inertia", "Engine", 0.16, 0.09, 1, "Engine Inertia", "Engine Inertia"]
    
        ],
        "engine":{
            //engine performance
            "idleRPM":"$idleRPM",
            "shiftDownRPM":3000,
            "shiftUpRPM":5300,
            "maxRPM":"$maxRPM",
            "inertia":"$inertia",
            "friction":19,
            "brakingCoefRPS":0.15,
            "burnEfficiency":0.33,
            "torqueReactionNodes:":["e1l","e2l","e4r"]
            "particulates":0.052
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"aluminum"
            "oilVolume":8
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":160
            "headGasketDamageThreshold":1500000
            "pistonRingDamageThreshold":1500000
            "connectingRodDamageThreshold":2000000
            },
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"selfCollision":false}
             {"collision":true}
             //--4.5L V8 Engine-
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"nodeWeight":28},
             {"group":"pickup_engine"},
             {"engineGroup":"engine_block"}
             ["e1r", -0.13, -1.14, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":500,"conductionRadius":0.2}],
             ["e1l", 0.13, -1.14, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":500,"conductionRadius":0.2}],
             ["e2r", -0.13, -1.68, 0.43],
             ["e2l", 0.13, -1.68, 0.43],
             {"engineGroup":["engine_block","engine_intake"]}
             ["e3r", -0.32, -1.14, 0.9],
             ["e3l", 0.32, -1.14, 0.9],
             ["e4r", -0.32, -1.68, 0.9{"isExhaust":true}],
             ["e4l", 0.32, -1.68, 0.9],
             {"chemEnergy":false,"burnRate":false,"flashPoint":false,"specHeat":false,"smokePoint":false,"selfIgnitionCoef":false,"baseTemp":false,"conductionRadius":false},
             {"engineGroup":""}
             {"group":""},
        ],
    
        "beams": [
              ["id1:", "id2:"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              //--ENGINE CUBE--
              {"beamSpring":12600840,"beamDamp":390},
              {"beamDeform":142500,"beamStrength":"FLT_MAX"},
              ["e1r","e1l"],
              ["e1r","e2r"],
              ["e1r","e2l"],
              ["e1r","e3r"],
              ["e1r","e3l"],
              ["e1r","e4r"{"isExhaust":true}],
              ["e1r","e4l"],
              ["e1l","e2r"],
              ["e1l","e2l"],
              ["e1l","e3r"],
              ["e1l","e3l"],
              ["e1l","e4r"],
              ["e1l","e4l"],
              ["e2r","e2l"],
              ["e2r","e3r"],
              ["e2r","e3l"],
              ["e2r","e4r"],
              ["e2r","e4l"],
              ["e2l","e3r"],
              ["e2l","e3l"],
              ["e2l","e4r"],
              ["e2l","e4l"],
              ["e3r","e3l"],
              ["e3r","e4r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
              ["e3l","e4l"],
              ["e4r","e4l"],
              /*
              {"breakGroup":"pickup_engbay"},
              {"beamSpring":168840,"beamDamp":390},
              {"beamDeform":3000,"beamStrength":4450},
              ["e4r","f2rr"],
              ["e4r","f1rr"],
              ["e4l","f2ll"],
              ["e4l","f1ll"],
              {"breakGroup":""},
              */
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                //engine
        ],
    }
    
    
    Then copy the torque curve from the converter to the jbeam,

    Like this

    also make sure to rename and adjust idle rpm etc.

    (take note this file has variables and its a little different then a regular engine.jbeam.)



    Code:
    
    {
    "pickup_engine_v8_test": {
        "information":{
            "authors":"BeamNG",
            "name":"4.5L V8 Engine Test",
            "value":1300,
        }
        "slotType" : "pickup_engine",
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["gavril_v8_pickup", ["pickup_engine"], [], {"pos":{"x":0, "y":0, "z":0}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
             ["pickup_engbay", ["pickup_cab", "pickup_firewall", "pickup_frontmeat","pickup_engine_intake"]],
        ],
        "slots": [
            ["type", "default","description"]
            ["pickup_transmission","pickup_transmission_4A","Transmission"],
            ["pickup_exhaust_v8","pickup_exhaust_v8","V8 Exhaust"],
            ["pickup_enginetuning_v8","pickup_enginetuning_v8_stock", "Engine Tuning"],
        ],
        "enginetorque":[
            ["rpm", "torque"]
            [0, 0],
            [500, 189.18],
            [600, 196.39],
            [700, 203.2],
            [800, 210.55],
            [900, 216.65],
            [1000, 223.5],
            [1100, 229.89],
            [1200, 235.58],
            [1300, 240.42],
            [1400, 244.86],
            [1500, 249.56],
            [1600, 253.66],
            [1700, 258.01],
            [1800, 262.35],
            [1900, 265.84],
            [2000, 269.93],
            [2100, 274.18],
            [2200, 276.85],
            [2300, 279.37],
            [2400, 281.63],
            [2500, 284.09],
            [2600, 287.12],
            [2700, 290.07],
            [2800, 292.56],
            [2900, 294.85],
            [3000, 296.63],
            [3100, 298.54],
            [3200, 300.39],
            [3300, 302.84],
            [3400, 304.08],
            [3500, 304.28],
            [3600, 305.35],
            [3700, 306.37],
            [3800, 308.71],
            [3900, 310.48],
            [4000, 313.46],
            [4100, 315.45],
            [4200, 317.5],
            [4300, 319.61],
            [4400, 321.89],
            [4500, 325.43],
            [4600, 328.98],
            [4700, 333.51],
            [4800, 338.34],
            [4900, 342.77],
            [5000, 348.74],
            [5100, 354.96],
            [5200, 361.33],
            [5300, 367.34],
            [5400, 375.75],
            [5500, 384.64],
            [5600, 393.89],
            [5700, 403.76],
            [5800, 414.96],
            [5900, 426.66],
            [6000, 439.48],
            [6100, 454.85],
            [6200, 472.25],
            [6300, 494.01],
            [6400, 520.12],
            [6500, 552.84],
            [6600, 598.99],
            [6700, 656.61],
            [6800, 721.73],
            [6900, 785.3],
            [7000, 854.19],
            [7100, 931.5],
            [7200, 1018],
            [7300, 1087.37],
            [7400, 1132.49],
            [7500, 1162.15],
            [7600, 1176.84],
            [7700, 1181.97],
            [7900, 1180.3],
            [8000, 1176.09],
            [8100, 1173.79],
            [8200, 1170.08],
            [8300, 1164.16],
            [8400, 1156.01],
            [8500, 1146.61],
            [8600, 1136.2],
            [8700, 1117.81],
            [8800, 1102.85],
            [8900, 1088.48],
            [9000, 1070.28],
    
    
    
         ],
        "variables": [
            ["name", "type", "unit", "category", "default", "min", "max", "title", "description"]
            ["$idleRPM", "range", "RPM", "Engine", 850, 300, 5400, "Engine Idle RPM", "Engine Idle RPM"]
            ["$maxRPM", "range", "RPM", "Engine", 5400, 300, 5800, "Engine Rev Limiter", "Engine Rev Limiter"]
            ["$revLimiterRPMDrop", "range", "RPM", "Engine", 0, 0, 300, "Engine Rev Limiter RPM Drop", "Engine RPM Limiter"]
            ["$inertia", "range", "Inertia", "Engine", 0.16, 0.09, 1, "Engine Inertia", "Engine Inertia"]
    
        ],
        "engine":{
            //engine performance
            "idleRPM":"$idleRPM",
            "shiftDownRPM":3000,
            "shiftUpRPM":5300,
            "maxRPM":"$maxRPM",
            "inertia":"$inertia",
            "friction":19,
            "brakingCoefRPS":0.15,
            "burnEfficiency":0.33,
            "torqueReactionNodes:":["e1l","e2l","e4r"]
            "particulates":0.052
    
            //cooling and oil system
            "thermalsEnabled":true
            "engineBlockMaterial":"aluminum"
            "oilVolume":8
    
            //engine durability
            "cylinderWallTemperatureDamageThreshold":160
            "headGasketDamageThreshold":1500000
            "pistonRingDamageThreshold":1500000
            "connectingRodDamageThreshold":2000000
            },
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"selfCollision":false}
             {"collision":true}
             //--4.5L V8 Engine-
             {"frictionCoef":0.5},
             {"nodeMaterial":"|NM_METAL"},
             {"nodeWeight":28},
             {"group":"pickup_engine"},
             {"engineGroup":"engine_block"}
             ["e1r", -0.13, -1.14, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":500,"conductionRadius":0.2}],
             ["e1l", 0.13, -1.14, 0.43,{"chemEnergy":1000,"burnRate":0.39,"flashPoint":700,"specHeat": 0.1,"selfIgnitionCoef":false,"smokePoint":600,"baseTemp":500,"conductionRadius":0.2}],
             ["e2r", -0.13, -1.68, 0.43],
             ["e2l", 0.13, -1.68, 0.43],
             {"engineGroup":["engine_block","engine_intake"]}
             ["e3r", -0.32, -1.14, 0.9],
             ["e3l", 0.32, -1.14, 0.9],
             ["e4r", -0.32, -1.68, 0.9{"isExhaust":true}],
             ["e4l", 0.32, -1.68, 0.9],
             {"chemEnergy":false,"burnRate":false,"flashPoint":false,"specHeat":false,"smokePoint":false,"selfIgnitionCoef":false,"baseTemp":false,"conductionRadius":false},
             {"engineGroup":""}
             {"group":""},
        ],
    
        "beams": [
              ["id1:", "id2:"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              //--ENGINE CUBE--
              {"beamSpring":12600840,"beamDamp":390},
              {"beamDeform":142500,"beamStrength":"FLT_MAX"},
              ["e1r","e1l"],
              ["e1r","e2r"],
              ["e1r","e2l"],
              ["e1r","e3r"],
              ["e1r","e3l"],
              ["e1r","e4r"{"isExhaust":true}],
              ["e1r","e4l"],
              ["e1l","e2r"],
              ["e1l","e2l"],
              ["e1l","e3r"],
              ["e1l","e3l"],
              ["e1l","e4r"],
              ["e1l","e4l"],
              ["e2r","e2l"],
              ["e2r","e3r"],
              ["e2r","e3l"],
              ["e2r","e4r"],
              ["e2r","e4l"],
              ["e2l","e3r"],
              ["e2l","e3l"],
              ["e2l","e4r"],
              ["e2l","e4l"],
              ["e3r","e3l"],
              ["e3r","e4r"],
              ["e3r","e4l"],
              ["e3l","e4r"],
              ["e3l","e4l"],
              ["e4r","e4l"],
              /*
              {"breakGroup":"pickup_engbay"},
              {"beamSpring":168840,"beamDamp":390},
              {"beamDeform":3000,"beamStrength":4450},
              ["e4r","f2rr"],
              ["e4r","f1rr"],
              ["e4l","f2ll"],
              ["e4l","f1ll"],
              {"breakGroup":""},
              */
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                //engine
        ],
    }
    
    
     
    #32 Josh, Apr 15, 2016
    Last edited: Apr 15, 2016
  13. (GNG) [S.PLH] wearyNATE15

    (GNG) [S.PLH] wearyNATE15
    Expand Collapse

    Joined:
    Oct 15, 2015
    Messages:
    1,123
    Im not able to write/edit in the engine jbeam, but in all other pages i can.. help plz? (will answer in morning) btw i am using notepad ++
     
    #33 (GNG) [S.PLH] wearyNATE15, Apr 15, 2016
    Last edited: Apr 15, 2016
  14. JesseAye

    JesseAye
    Expand Collapse

    Joined:
    Feb 27, 2016
    Messages:
    14
    Could you PM the file you're using? I just ran the program with the 4/20 update, and it converted an engine I just made with 11500 RPM.
    --- Post updated ---
    Are you decompressing the vehicle folder, saving the changes you are making, compressing the folder to the same structure, and then reloading BeamNG?
     
  15. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,071
    Here is a example engine with 11,000 RPM limit.
     
  16. JesseAye

    JesseAye
    Expand Collapse

    Joined:
    Feb 27, 2016
    Messages:
    14
    Are you decompressing the vehicle folder, saving the changes you are making, compressing the folder to the same structure
    Ahhh, there was a glitch reading the RPM Limit from the file, it would read "1100", instead of the "11000". Posting the updated application in a few moments.
     
  17. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,071
    Thank you sir, for the update.
     
  18. TheDominator

    TheDominator
    Expand Collapse

    Joined:
    Nov 28, 2012
    Messages:
    40
    I get an unhandled exception that says "Index was outside the bounds of the array".

    edit: Ignore me, I'm an idiot
     
    #38 TheDominator, Apr 30, 2016
    Last edited: Apr 30, 2016
  19. Mikegtrxu1

    Mikegtrxu1
    Expand Collapse

    Joined:
    Mar 19, 2016
    Messages:
    20
    I love this idea, it would be cool if they implemented something like this in the yet to be released career mode.
     
  20. Remington

    Remington
    Expand Collapse

    Joined:
    Apr 5, 2016
    Messages:
    179
    Might take some time for me to learn, (ADHD is terrible to deal with) but I see this as an opportunity to contribute. I'm pretty efficient at making specific engines in automation, anyone want a specific type? Should take no more than an hour to perfect.