Solved Sound mod json unable to open

Discussion in 'Mod Support' started by DontKnowWhy186, Mar 16, 2024.

  1. DontKnowWhy186

    DontKnowWhy186
    Expand Collapse

    Joined:
    Aug 2, 2022
    Messages:
    1,007
    I have a problem where a sound mod json isn't working at all. The error in the console says:
    Unable to open jsonFile for init of an SFXSceneBlendLayer2D: "art/sound/blends/lam_galla_b_exhaust.sfxBlend2D.json"
    This is the json file in question (don't ask about the small number of samples, it is a work in progress)
    Code:
    {
        "header" : {
            "version" : 1
        },
        "eventName" : "event:>Engine>default",
        "samples" :
        [
            [
                ["art/sound/engine/lam_galla_b_exhaust/4693_OFF.wav", 4693],
                ["art/sound/engine/lam_galla_b_exhaust/7154_OFF.wav", 7154]
            ],
            [
                ["art/sound/engine/lam_galla_b_exhaust/4522_ON.wav", 4522],
                ["art/sound/engine/lam_galla_b_exhaust/5841_ON.wav", 5841],
                ["art/sound/engine/lam_galla_b_exhaust/7313_ON.wav", 7313]
            ]
        ]
    }
     
  2. Crazyrobot

    Crazyrobot
    Expand Collapse

    Joined:
    Mar 3, 2017
    Messages:
    15
    Check the json file and make sure its called "lam_galla_b_exhaust.sfxBlend2D.json" and not "lam_galla_b_exhaust.json". I had the same problem and this was the solution for me.
    Hope it helped!
     
  3. DontKnowWhy186

    DontKnowWhy186
    Expand Collapse

    Joined:
    Aug 2, 2022
    Messages:
    1,007
    It was always like that in the first place and still doesn't work
     
  4. Crazyrobot

    Crazyrobot
    Expand Collapse

    Joined:
    Mar 3, 2017
    Messages:
    15
    Just to confirm, is your file called "lam_galla_b_exhaust.sfxBlend3D.json" as this picture shows
     
    #4 Crazyrobot, Apr 22, 2024
    Last edited: Apr 22, 2024
  5. DontKnowWhy186

    DontKnowWhy186
    Expand Collapse

    Joined:
    Aug 2, 2022
    Messages:
    1,007
    Screenshot2024-04-24182636.png
    Yes it is, always has been.
     
  6. Crazyrobot

    Crazyrobot
    Expand Collapse

    Joined:
    Mar 3, 2017
    Messages:
    15
    Move the art folder out of the vehicles folder and place it in the root of your mod folder, like this

    Because when you specify "art/sound/engine/lam_galla_b_exhaust/4693_OFF.wav" the game expects the art folder to be in the root of your mod not nested within the vehicles folder
     
    #6 Crazyrobot, Apr 24, 2024
    Last edited: Apr 24, 2024
  7. DontKnowWhy186

    DontKnowWhy186
    Expand Collapse

    Joined:
    Aug 2, 2022
    Messages:
    1,007
    Thank you so much honestly! I didn't know I was that dumb.
     
    • 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