Unable to add sound to Automation car

Discussion in 'Content Creation' started by donburi, Jul 1, 2021.

  1. donburi

    donburi
    Expand Collapse

    Joined:
    Mar 4, 2019
    Messages:
    62
    The text may be strange because it uses machine translation.

    I tried to add blinker sounds, reverse Warn sounds, etc. to the Automation car.
    There is no blinker sound, and the reverse Warn sound cannot be adapted to a custom sound and does not sound.
    I did a lot of trial and error, but it still didn't make any sound.

    Please tell me who knows the cause.
    I will post the text.
    -----------------------------------------------
    "controller": [
    ["fileName"],
    ["vehicleController", {}],
    ["reverseWarn", {"beepLoopName": "file:> art> sound> reverse_sound> reverse_beep.ogg"}],
    ],,
    "reverseWarn": {
    "soundNode:": ["a17"],
    },

    "soundscape": [
    ["name", "src"],
    // indicator9
    // {"node:": "a17"},
    ["indicatorStart", "event:> Vehicle> Interior> Indicator> AU5_On"],
    ["indicatorStop", "event:> Vehicle> Interior> Indicator> AU5_Off"],
    ["indLoop1", "art> sound> indicator> indicator.ogg"],
    // ["indLoop2", "art> sound> indicator> indicator.ogg"],
    // lights15
    ["LightOn", "event:> Vehicle> Interior> Light> PEU_On"],
    ["Light Off", "event:> Vehicle> Interior> Light> PEU_Off"],
    // handbrake5
    {"node:": "a17"},
    ["handbrakeEngaging", "event:> Vehicle> Interior> Handbrake_Ratchet> Ratchet_05_Ratchet"],
    ["handbrakeDisengaging", "event:> Vehicle> Interior> Handbrake_Ratchet> Ratchet_05_Button"],
    ["handbrakeDisengaged", "event:> Vehicle> Interior> Handbrake_Ratchet> Ratchet_05_Thump"],
    // affects horn location because horn soundscape is loaded after
    // {"node:": "a17"},
    ],,
    --------------------------------------
     
  2. Sithhy™

    Sithhy™
    Expand Collapse

    Joined:
    Apr 5, 2017
    Messages:
    3,344
    I may be mistaken, but I'm not sure if you can give Automation vehicles any of the stock BeamNG sounds (or other things).

    Also, you have a double comma after the square bracket in two places; there should only be one
    upload_2021-7-1_23-11-39.png
     
    • Like Like x 1
  3. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,060
    This code is such a mess it's hard to tell what you were even trying to do, and there could be many mistakes in it that you aren't seeing due to how messy it is, you should rewrite it and maybe you will find the issue.
     
    • Like Like x 1
  4. donburi

    donburi
    Expand Collapse

    Joined:
    Mar 4, 2019
    Messages:
    62
    I didn't know that fact.
    Thank you for teaching me:)

    I've just started making mods recently, so it's certainly hard to understand the code.
    I think I'll rewrite the code again.
     
  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