Horn mod somehow stops all Automation-exported cars from functioning, but works fine on vanilla cars

Discussion in 'Content Creation' started by RY4NDY, Sep 28, 2021.

  1. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    Basically I made a simple horn mod for fun for private use, I looked at how this mod did it and then used that to create my own mod.

    When I go to the parts selector and equip my own horn on any official BeamNG vehicles it works exactly as it should; the horn plays the sound when I press the horn button and the rest of the car still works without issues.

    However, when I go to the parts selector and equip my own horn on any Automation-exported vehicle, it completely stops the vehicle from functioning; nothing happens when I press the horn button, and all other functions of the Automation vehicle also stop working (e.g. engine sound stops, car no longer responds to any controls, UI apps like the speedometer and tachometer stop moving); the Automation car effectively turns into a functionless "prop" that can't do much else other than being pushed around as soon as my horn is equipped.

    The issue isn't that Automation cars can't handle having their horn changed; if I replace the stock horn with any other vanilla horn (e.g. "horn 5" instead of the "horn 6" all Automation cars have by default) it will still keep working without issues; it is just the combination of "my horn mod" + "Any automation car" that somehow makes the Automation car completely stop working.

    Does anyone know what might be causing this?
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Send the log files, that must be a serious issue
     
    • Agree Agree x 1
  3. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    Are the log files you mean the ones located in documents\BeamNG.drive?
    And if so, which should I send? There are 3 of them (beamng.log, beamng.2.log, beamng.3.log), should I send all of them?
    --- Post updated ---
    Also here's a video of what I mean:


    • At first I use the LeGran with the stock horn; both the horn and the rest of the car work fine.
    • Then I change the LeGran's horn to my horn; both the horn and the rest of the car still work fine.
    • Then I use an Automation car with the stock horn; both the horn and the rest of the car work fine.
    • Then I change that Automation car's horn to my horn; both the horn and the rest of the car completely stop working.
     
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Yeah I mean those files, also this is super weird
     
    • Like Like x 1
  5. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    Ok, here they are:
     

    Attached Files:

  6. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Seems like it's a problem with the way the Automation car exported, there are errors that shouldn't happen on an Automation car. Weird, try re-exporting it.
     
  7. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    I have tried it with several Automation cars, both ones made by myself and ones downloaded from the "Automation" section of BeamNG's mods page, and the same thing happens on all of them.
    I've sent the horn mod to a friend as well, who then also had the exact same thing happen on his PC when he put it on any of his Automation cars.

    I therefore doubt it's caused by an error in specifically this Automation car or my PC/my copy of BeamNG, maybe it's a glitch that happens with all cars exported from the current version of Automation?
     
  8. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Then both that Automation car and the horn mod have some issues. Honestly I have no idea what exactly is wrong here. Can you send the horn mod?
     
  9. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    Sure, here it is:
     
  10. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Soundscape header is wrong, file extension is wrong, non-Unicode characters in part name... I'm surprised it even works on vanilla cars lol. Fix all of it and should work.
     
    • Like Like x 1
    • Agree Agree x 1
  11. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    What exactly is wrong with the Soundscape header?

    I just fixed the name (used normal u's instead of ú's) and converted the sound file to .ogg instead of .wav, but I wouldn't know what exactly I should do with the Soundscape header, so what should I do with that?
     
  12. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Look at vanilla horns in vehicles/common/sounds/soundscape.jbeam, next time base your mod on that instead of on another mod.
     
    • Like Like x 1
  13. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    37
    That worked; now the horn no longer breaks Automation cars, thanks!
     
    • Like Like x 1
  14. Uzziah Tyler

    Uzziah Tyler
    Expand Collapse
    Banned

    Joined:
    Sep 29, 2022
    Messages:
    54
    everytime i press H The horn doesnt respond to it Great. Frickin Great.
     
  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