Failed to load: audio/bgm/03_A_Hero's_Return.ogg

I gave my friend/playtester a demo version of my game to test out for me and We get to the first big area (100x100)
and it constantly flashes this on his screen and makes the game unplayable...


"Loading Error:
Failed to load: audio/bgm/03_A_Hero's_Return.ogg"

Is there any known fix for this?
Make sure that file is in that directory? I mean, the error message is fairly self-explanatory 😉

If it's there in your original project but not getting exported, you may want to remove the apostrophe then choose the file again in the map properties.
Both audio files are in the folder and it still happens, tommorow I’ll have to try to re export without the apostrophe.
Both audio files are in the folder
are you sure?

because
03_A_Hero's_Return.ogg
and
03_a_hero's_return.ogg
are two different files, and if one is present while the other is requested that is exactly the error message you get.

only windows is programmed to load the wrong file in case of a Capitalisation error, all other operating systems will report a failed to load because the correct file (with the correct capitalisation) is missing.

that said, I also suspect the apostroph - MV and MZ create HTML5-based games, and that means that all filenames have to follow networking rules. Using any special symbol that is not covered in networking rules (like spaces for example) will cause errors on deployment, and the apostroph is also one of those.
I went back and checked everything you guys have said but the title of the song that is called in the area is the exact same as it is in my files, also the www file is created to be the data file for the deployed game, but the file path on the demo doesnt have this "www" in the file path.... is that a problem?
no, the www folder is the deployment-only result.

according to your screenshots you haven't tried the audio without the apostroph, and that was the main suggestion above - have you tried renaming and then deploying it?

and make sure the output folder is different than your project folder, you must never have the www folder inside your project folder.

EDIT:
and according to your screenshot you still have spaces in the folderpath, the name of your demo folder contains them. please remove those as well.
Yeah I just woke up and got on and am going to try all of these methods right now, If i playtest the demo version myself should the same error come up? Because my friend won't be on for a long time today and I really am itching to see the results, I'm going to redeploy the game to a non spaced folder and remove the apostrophe.
should the same error come up?
yes, if you have the same cause.

but as I added with the edit above the foldername where the demo is placed will also affect browser loading even if it is not part of the error message.
so if you place the demo inside a folder that follows the networking rules but your friend doesn't, then only your friend will get that error - until he moves the demo to a folder that is correctly named.
Interesting, thank you im gonna speedrun through my demo up to the point where it gives me the error
here's the changes i've made:
please give full screenshots of the current error and settings.
By that I mean the full console output available by F8 when the error happens, not the shortened main screen message from your first post.

Only that can pinpoint all possible causes - and I still see an apostroph in your folder screenshot, so you should doublecheck if its not that other file that is reported.
please give full screenshots of the current error and settings.
By that I mean the full console output available by F8 when the error happens, not the shortened main screen message from your first post.

Only that can pinpoint all possible causes - and I still see an apostroph in your folder screenshot, so you should doublecheck if its not that other file that is reported.
So I got passed the part where the error happens and the soundtrack is playing, but last time I play tested this before, even with the improper file names I also got passed this issue, while my friend still has the same issue on the same copy... I have reason to believe it's just reading off of my own rpg maker project files and not the demo file path.
I have reason to believe it's just reading off of my own rpg maker project files and not the demo file path.
cannot happen unless you have a plugin that redirects folders. all folderpaths are relative and there is no way for the browser to even find your project folder unless that path had been entered as a plugin option.
OR if you made the mistake and deployed into your project folder, in which case both project folder and deployment folder are damaged and need to be repaired.

but that is the reason why I asked for the full console output - you can ask that of your friend if the error only happens there, but it will point to the cause as that is much more comprehensive as the shortened error message of your first screenshot.
but that is the reason why I asked for the full console output - you can ask that of your friend if the error only happens there, but it will point to the cause as that is much more comprehensive as the shortened error message of your first screenshot.
Yeah I will try to contact him either today or tommorow and see if he can get that screenshot for me! Thank you for your time Andar, I will be back in a day or two!

Edit: I've had 2 people playtest my demo and I'm glad to say it was the apostrophe's!!!

Original thread: https://forums.rpgmakerweb.com/threads/failed-to-load-audio-bgm-03_a_heros_return-ogg.142974/