Compilation Help.

When testing my game in Engine i have no issue's. When i compile my game ( development ) i checked the ( exclude files not used )
When i shared this with a friend or dl myself - files like BGS/fire or thunder fail to load and yet i can still hear them?

i get a constant error saying retry this only occur's in the built version and not during testing.

Any ideas? I suspect it's because the files have .ogg and M4A. i suspect it's the m4A's not working.

These are the usual sound files within RPG MV. thanks.

Please move thread if not in correct place?
several possibilities, and none of your guesses.

1) filepath is wrong
RMMV creates HTML5-based games, and for that to work the entire folderpath has to follow networking rules. If you break any of there rules, for example the one of no spaces allowed, then the browser has problems loading files. And no, the windows override that tries to force the browser to allow spaces (%20) does not always work, and rarely on deployment to non-windows devices.

2) plugins have not registered their files
"exclude unused files" removes all files that the editor does not know to be in use. That is always correct for resources used in the engine itself, but the editor can't know what resources a plugin uses unless the plugin registers those files with the editor. And most plugin writers don't register their files, allowing them to be deleted on deployment.
There are workarounds if you know which files are missing.

the two different fileformats are for different devices - MacOS and iOS have default m4a, windows and android default to ogg if I remember correctly. And the other type of file is not used in such cases.
i Believe the file path is correct, it stated Error can't load for example BGS/fire so i'm thinking it's either get rid of the M4A'S and another check to do it is check a particular plugin also. i will let you know how it goes. Thanks again.
Believe the file path is correct, it stated Error can't load for example BGS/fire
that is almost always the error when the filepath does not follow networking rules - and the playtest overrides that path by a temporary path, just look at it when playtesting.

please give the full filepath from the drive letter to the index.html of the game, something like:
c:\folder\folder\folder\project\index.html

then we can tell you if the filepath is correct or not.
Because that error message is also always incomplete, it only shows the last part of the filepath when the problem is usually in the hidden first part.
If you are certain that you have placed the OGG and M4A s in the right place, are properly named, and are properly linked with the in-game event, then:

something I noticed is if you move files around within the folders of your project, the software gets very confused. I normally make a copy of my project before exporting it. This has fixed this issue every time for me.
Ok, after reading what Andar said yes it's a plugin that is called through a comment, meaning it's not loading in when excluding files. it seems to work when i include files. this gives me several options. don't use the plugin ( which is a great loss ) or include file's that aren't used. ! waheey.. Thanks all ! appriciate your input really do.
meaning it's not loading in when excluding files.
no, there is a workaround that can work for most plugins:
you make a map that is never linked to any other map in the game, and in there you have an event use that resource with regular event commands.
that convinces the engine that that file is used and needed to be copied.

I've moved this thread to MV Deployment. Thank you.

no, there is a workaround that can work for most plugins:
you make a map that is never linked to any other map in the game, and in there you have an event use that resource with regular event commands.
that convinces the engine that that file is used and needed to be copied.

Yeah, that'll do it
E:\RPG MV documents\Project Games\That_time_i_got_sucked_into_a_computer_game
Here is my computer filepath to the main section where you can find the HTML file.
E:\RPG MV documents\Project Games
and as I assumed it IS breaking the networking rules.
Spaces are forbidden in any part of the file/foldername, and you have three in them here.
Okay i will correct it ASAP thank you.

Original thread: https://forums.rpgmakerweb.com/threads/compilation-help.130114/