loading error: Rpg Maker MV

So, guys I know why that Error appears but is it possible to make a script that skips the sound if that happens?

Here an example:

Loading Error
Faliled to load: audio/bgm

If loading error = true

Then skip this sound ( or something like this)

Don't know how to do it and don't know if it is possible, in rpg maker but it's in java script so it should be possible.

Anyway if someone of you can or know how to make this then I would be ready to pay him for the help.
It's possible to an extent. But the problem with a system like this is that you have multiple layers that depend on the file you're trying to load.

You have the function that loads the sound - if it fails, it skips out. But then maybe you have the function that is a part of your animation that was playing the sound, so you have to add a check after loading the file to see whether it worked or not.

And then you have the next function that was going to set the volume of that sound, so you have to add a check there.

And then you have the code that was going to check whether you're done playing the sound effect that now needs to have a check added there.

I'm making this specific sequence of events up off the top of my head, but my point is that it's not as simple as just saying "skip it if it doesn't load" - the rest of the engine is presuming that the file did load when you told it to.

Anyway if someone of you can or know how to make this then I would be ready to pay him for the help.
Why wouldn't you just save your money and fix your game? You should only need to see an error message once and you know you need to replace that sound file. For that matter, why are you missing so many files that this would be a consideration?
Instead of using a script to skip error messages, you should fix the errors.

What would you do if in your car, the oil alert lamp goes on? Exchanging the oil or tape the lamp so that you don't see the alert until your car breaks down?

As for the loading error: the most common cause is if either the folderpath to the file or the filename itself contains a symbol that is forbidden under networking rules.
Forbidden are spaces, non-lation letters (öäü etc) and quite a number of special signs.

Make sure that neither the folderpath to your project, nor any filenames of added musics, contain any such letters.

Original thread: https://forums.rpgmakerweb.com/threads/loading-error-rpg-maker-mv.160943/