Adjustable engine volume

Discussion in 'Content Creation' started by Leo Zieger, May 27, 2023.

  1. Leo Zieger

    Leo Zieger
    Expand Collapse

    Joined:
    Jan 12, 2023
    Messages:
    826
    Some engines are just too loud for my liking, I know I could change the main gain settings for each engine but I wanted a more general solution, so I created a "*_engine_ecu_silent" where I just copied the standard ECU and added the lines:

    "soundConfig": {
    "$+mainGain":-10,
    },
    "soundConfigExhaust": {
    "$+mainGain":-15,
    },
    This works fine but what if I wanted to make this adjustable? Like

    1) creating subslots for -5, -10, -15 and so on?
    Do I add:
    "slotType" : "engine_volume",
    "slots": [
    ["type", "default", "description"],
    ["engine_volume_default","engine_volume_default", "Engine Volume", {"coreSlot":true}],
    ],
    and then later multiple sections with slottype "engine_volume_default": like "engine_volume_-10" etc?
    That have just the above lines in them?

    2) adjustable in tuning menu:
    or I could add in the "engine_ecu_silent" variables:
    "variables": [
    ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
    ["$maingain", "range", "dB", "soundConfig", -10, -40, 0, "Engine volume", "Engine volume", {"stepDis":5}],
    ["$maingain", "range", "dB", "soundConfigExhaust", -10, -40, 0, "Exhaust volume", "Exhaust volume", {"stepDis":5}],
    would this be the right way?
    I hope this wasn´t too confusing, but it kind of is for me.
    --- Post updated ---
    upload_2023-5-27_9-0-25.png upload_2023-5-27_9-0-25.png

    I kind of got it to work, but it doesn't 100% do what it´s supposed to do. The two values seem to be depending on each other. Here is the code I added, maybe it is useful for you, too, and someone can check what is wrong:

    "variables": [
    ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
    ["$volumea", "range", "dB", "Main Volume Control", -10, -40, 20, "Engine Volume", "Engine Volume", {"stepDis":5}],
    ["$volumee", "range", "dB", "Main Volume Control", -35, -40, 20, "Exhaust Volume", "Exhaust Volume", {"stepDis":5}],
    ],
    "soundConfig": {
    "mainGain":"$volumea",
    },
    "soundConfigExhaust": {
    "mainGain":"$volumee",
    }
     
    • Like Like 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