I'm having trouble with my "demo" game on I deployed on Android, I keep getting the "Failed to load: audio/bgm/Theme2.m4a". I'm frustrated at this point. Does anyone know how to fix this?
Game audio won't work on android
RPG Maker Mobile DeploymentThat means the file is missing. You need to check that a file with that exact name (including capital letters) is there. So yes even theme2.m4a will fail to load as it must include the capital T as well in the name.
It's still not working
Ok, is it there on the andriod phone? That screenshot doesn't tell me if it is on your phone or on your PC. If you are checking excluse unused files it might be getting removed by accident in your deployment.
android need both ogg and m4a files, while windows only need ogg.
also make sure the files are H64 if I remember correctly and not lower or higher
if its in the wrong codec.
you need to check this to make sure and check the files if they are like those as well.
also make sure the files are H64 if I remember correctly and not lower or higher
if its in the wrong codec.
you need to check this to make sure and check the files if they are like those as well.
I have both Ogg and M4a files, I don't understand what H64 is or how to check it. Is there a an article or youtube video on the matter?
Nothing worked what should I do now?
Please only post one post while waiting on replies. If you need to add on, edit your post. This is to give people time to answer and to let all threads have a fair chance.
As to the rest no idea as I don't know more than that. You'll need to wait for someone who uses andriod more to assist with this.
As to the rest no idea as I don't know more than that. You'll need to wait for someone who uses andriod more to assist with this.
It's been over a week, what now?
Is this a file you have added or modified, or is it one that comes with MV by default and that you haven't touched?
It's default.
In that case there are two different possibilities that can result in such errors, both because of some stupid decisions from Microsoft.
First problem is capitalization. For every OS but MS Windows, the files Abc.m4a and abc.m4a are two different files, and if you try to load Abc.m4a when the real filename is abc.m4a then the error "file not found" comes up. ONLY Windows has a stupid override that says "I don't find Abc.m4a, so let's look if there is a file abc.m4a and load that wrong file without telling the user if it exists."
So if you somehow got the wrong reference stored somewhere (which is easy because Windows also tries to display all files with capital letters at front), then you won't get this error message until you deploy to a different system.
And the only way to repair that is to search for every reference and make sure it points to the correct file with the correct capitalization.
The second possibility is the path above the error message. You can see that the error message only displays the path below the project directory. But the error can also be somewhere above.
RMMV creates HTML5-based games, and that means that all filepaths have to follow networking rules. If a foldername does not follow those rules, then the browser used to play the game has problems loading the files.
Android should automatically handle everything above the project directory, but it can be the project directory itself that is the problem.
And again Windows has some overrides to "help" people get their files displayed in browsers even if they have an incompatible filename. That override is the reason why spaces are replaced with %20 everywhere in the browser, but again other systems work differently - and you get the %20 everywhere because the browser can't handle spaces, not even in error messages.
There are a number of other networking rules (it's plural after all), so please give us the full filepath from drive letter to index.html under windows, and we can check if there is anything that should be changed before deploying to android.
First problem is capitalization. For every OS but MS Windows, the files Abc.m4a and abc.m4a are two different files, and if you try to load Abc.m4a when the real filename is abc.m4a then the error "file not found" comes up. ONLY Windows has a stupid override that says "I don't find Abc.m4a, so let's look if there is a file abc.m4a and load that wrong file without telling the user if it exists."
So if you somehow got the wrong reference stored somewhere (which is easy because Windows also tries to display all files with capital letters at front), then you won't get this error message until you deploy to a different system.
And the only way to repair that is to search for every reference and make sure it points to the correct file with the correct capitalization.
The second possibility is the path above the error message. You can see that the error message only displays the path below the project directory. But the error can also be somewhere above.
RMMV creates HTML5-based games, and that means that all filepaths have to follow networking rules. If a foldername does not follow those rules, then the browser used to play the game has problems loading the files.
Android should automatically handle everything above the project directory, but it can be the project directory itself that is the problem.
And again Windows has some overrides to "help" people get their files displayed in browsers even if they have an incompatible filename. That override is the reason why spaces are replaced with %20 everywhere in the browser, but again other systems work differently - and you get the %20 everywhere because the browser can't handle spaces, not even in error messages.
There are a number of other networking rules (it's plural after all), so please give us the full filepath from drive letter to index.html under windows, and we can check if there is anything that should be changed before deploying to android.
Original thread: https://forums.rpgmakerweb.com/threads/game-audio-wont-work-on-android.120371/