Race ECUs for more cars (ETK?)

Discussion in 'Content Creation' started by ZeldaCarFan15, May 18, 2021.

  1. ZeldaCarFan15

    ZeldaCarFan15
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    107
    I've been wondering if there's a way to add race ECUs to more cars through mods, like I made more gearboxes with my gearbox pack
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,379
    Of course there is a way but to do it properly you need to carefully tune it specifically for each car separately.
     
    • Agree Agree x 2
  3. ZeldaCarFan15

    ZeldaCarFan15
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    107
    I just like the ability to adjust the RPM limit and cutoff timing with a Race ECU
     
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,379
    Oh, then that's easy, you can just copy the code for it from any car that has it and make a mod that adds it to any car you want
     
  5. ZeldaCarFan15

    ZeldaCarFan15
    Expand Collapse

    Joined:
    Mar 7, 2018
    Messages:
    107
    So... I think the ECUs would be in the engine jbeams, right?
    --- Post updated ---
    Can I make my own jbeams with just the ECU code in them? I don't want to overwrite the default ones...
     
    • Agree Agree x 1
  6. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,379
    Yeah that's what you should do
     
  7. myogg

    myogg
    Expand Collapse

    Joined:
    Aug 31, 2013
    Messages:
    163
    Here's an example ECU jbeam from my Cherrier tuning mod. It allows for boost by gear and adjustable rev limiter. Hopefully this gives you an idea how to make your ECU adjustable by using variables.

    Code:
    "vivace_engine_ecu_i3_1.2_bbg_jake": {
        "information":{
            "authors":"JakeLooker",
            "name":"Boost by Gear Race ECU",
            "value":4500,
        },
        "slotType" : "vivace_engine_ecu_i3_1.2",
        "variables": [
            ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
            ["$RPMlimit", "range", "RPM", "Engine", 6000, 3000, 8000, "RPM Limit", "Maximum RPM", {"stepDis":250}],
            ["$1stgear", "range", "psi", "Engine", 12, 0, 100, "1st Gear Boost", "Boost pressure limit for first gear", {"stepDis":0.5}],
            ["$2ndgear", "range", "psi", "Engine", 12, 0, 100, "2nd Gear Boost", "Boost pressure limit for second gear", {"stepDis":0.5}],
            ["$3rdgear", "range", "psi", "Engine", 12, 0, 100, "3rd Gear Boost", "Boost pressure limit for third gear", {"stepDis":0.5}],
            ["$4thgear", "range", "psi", "Engine", 12, 0, 100, "4th Gear Boost", "Boost pressure limit for fourth gear", {"stepDis":0.5}],
            ["$5thgear", "range", "psi", "Engine", 12, 0, 100, "5th Gear Boost", "Boost pressure limit for fifth gear", {"stepDis":0.5}],
            ["$6thgear", "range", "psi", "Engine", 12, 0, 100, "6th Gear Boost", "Boost pressure limit for sixth gear", {"stepDis":0.5}],
            ["$7thgear", "range", "psi", "Engine", 100, 0, 100, "7th Gear Boost", "Boost pressure limit for seventh gear", {"stepDis":0.5}],
            ["$backfireinstant", "range", "Bangs", "Engine", 4, 0, 10, "Bangs", "Amount of bangs when letting off", {"stepDis":0.25}],
            ["$backfiresustain", "range", "Pops", "Engine", 4, 0, 10, "Pops", "Sustained pops/crackles on overrun", {"stepDis":0.25}],
        ],
        "slots": [
            ["type", "default", "description"],
            ["vivace_engine_ecu_i3_1.2_speedlimit","vivace_engine_ecu_i3_1.2_speedlimit_off", "Speed Limiter", {"coreSlot":true}],
        ],
        "soundConfig": {
            "$+mainGain":2,
        },
        "mainEngine":{
            "revLimiterRPM":"$RPMlimit"
            "revLimiterType":"timeBased",
            "revLimiterCutTime":0.03,
            "instantAfterFireSound": "event:>Vehicle>Afterfire>box4_01>unmuffled>race_single",
            "sustainedAfterFireSound": "event:>Vehicle>Afterfire>box4_01>unmuffled>race_multi",
            "shiftAfterFireSound": "event:>Vehicle>Afterfire>box4_01>unmuffled>race_shift",
            "instantAfterFireCoef": "$backfireinstant",
            "sustainedAfterFireCoef": "$backfiresustain",
     },
        "turbocharger": {
            "wastegateStart":["$1stgear", "$2ndgear", "$3rdgear", "$4thgear", "$5thgear", "$6thgear", "$7thgear"],
        }
    },
     
    #7 myogg, May 19, 2021
    Last edited: May 19, 2021
  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