Image filename restrictions for Android deployment

I am constantly receiving false loading errors on my Android deployed game.

Filename is ok, and the file is there.

Are there any restrictions to filename characters in Android? %, (, and )?

Thank you in advance.
The same restrictions that there are normally - you should only use HTML-compliant characters in your filenames.

So alphanumerics, dash, underscore, and $ and ! where required for character sheets.

To get any more specific help you'd have to show the actual errors.
And no spaces. Spaces will break your project. Use underscores instead. Underscores are safe.
It's worth noting that I think it's also case sensitive too. I'm not 100% certain about this fact, other than knowing that Windows doesn't care, but Mac and Linux do care. Knowing that Android is built on a linux kernal, I would imagine the same rules of case sensitivity apply there too.
(this only matters if you call something through a script call or notetag, where you'd manually type out the file name.)

So: HTML rules, plus case sensitivity.
It's worth noting that I think it's also case sensitive too. I'm not 100% certain about this fact, other than knowing that Windows doesn't care, but Mac and Linux do care. Knowing that Android is built on a linux kernal, I would imagine the same rules of case sensitivity apply there too.
(this only matters if you call something through a script call or notetag, where you'd manually type out the file name.)

So: HTML rules, plus case sensitivity.
I'd sincerely hope that isn't the case as I camelcase everyyyyyything.
I'd sincerely hope that isn't the case
That is the case for Mac and Linux, I can confirm that much, and likely Android is the same based on the fact it uses a derivative kernal that both Mac and Linux use.
But it doesn't matter if you type the file name correctly.
If the file is: bigBadActor
And you type: bigBadActor.png
This is okay.
But if you type: BigBadActor.png
This is not okay on Mac & Linux.
But again, it is only in places where you would need to manually type the name; note boxes, scripts, maybe some plugin parameters?
Obviously things like the show picture command, the software does it for you so it's not something you'd have to worry about.
In case anyone is as thick as me, to save them doing their own search for the term, camelCase is:

"CamelCase is a way to separate the words in a phrase by making the first letter of each word capitalized and not using spaces. It is commonly used in web URLs, programming and computer naming conventions. It is named after camels because the capital letters resemble the humps on a camel's back."

https://www.bing.com/search?q=what+...F50C149E880D991965444668E&clckatsg=1&hsmssg=0
I double checked.

It is not a case sensitivity thing. I was aware since we use all three OS here at home.

Also, “%” is compatible with UTF-8. So, it should not cause loading errors.

I am using Galv’s Extra character animations with special character sheets. The filenames must formated: “name%(8).png”. Where “8” in the example returns the the number of frames.

Since the android version is returning false “Failed to load” errors, I wandered what could be wrong and suspected of the special characters.

Do you have another suggestion?
It might be... have you tried to use replace the files with one without the %? I know the plugin won't work then, but at least you can see if that is the problem or not.

% could be the problem. I know for example that a space will be replace with %20, that that would cause a problem if you use spaces. I don't know if % with any other number also have a special meaning in URLs.
Also, “%” is compatible with UTF-8. So, it should not cause loading errors.
It's not a matter of operating system compatibility (well, the capitalization bit is), it's as I already said a matter of HTML compatibility.

% is also the HTML escape character (notice how if you try to load a file in your Web browser that has spaces in the name, those get converted to %20). All non-HTML-compliant characters use a %-leading escape code.

So I personally would be leery of trying to use that as a special character in your filenames because I'd think it would try to parse the following characters as a part of an escape code.

You can change the symbol in the plugin parameters for Galv's plugin. I'd suggest trying, perhaps, a dash if you don't use that in any of your existing filenames.
You can change the symbol in the plugin parameters for Galv's plugin. I'd suggest trying, perhaps, a dash if you don't use that in any of your existing filenames.
I didn't even know this was possible.

This would be the fix OP is looking for, however... It is going to be a pain in the rear to chance all the assets in the game, since this seems to be about a far developed or even completed game.

This is something that can't be avoid though, since % will cause problems and has to be changed.

So.... good luck converting everting. I hope you don't have plans for the weekend. 😛
By any chance, do you use built-in feature to exclude files that aren't used upon compiling build? Because for me it's always deletes some of the used files. So you can check the game and add them manually.
By any chance, do you use built-in feature to exclude files that aren't used upon compiling build? Because for me it's always deletes some of the used files.
That is a valid thing to know about, but the OP said in the first post the files are there. Presumably that means in the deployed game's folders.

This only happens when those files are referenced outside of the editor selection. That is, you put them into plugin parameters that weren't coded to mark the files as included, or you put the filenames into notetags or script calls.

It won't just miss files that you actually use and delete them instead 😉
So when it comes to android deployment, there is pretty limited support, so I hate to say it, but you're kind of on your own with this one.

I have one final suggestion, which would be to try something like @AceOfAces_Mod Cook Tool, which, due to how it bakes the files, doesn't really care about file names that much. The software will handle it, afaik.
I don't know, however, how well it will support an Android deployment.
I will rewrite the plugin changing that code requirement in the filename “%” for “EXTFRAMES”. And change all the files and file calls implemented with it. Those are less than 30 files. It will take just a few hours. I will share the result of this experiment with you later this week.
You have to redo all the events that use those graphics too. Otherwise you get the same error, because it looks for the old filenames. So if you have 200 events with the same file, you have to redo all 200 of them. And if you miss only one, your game will crash again.
You have to redo all the events that use those graphics too. Otherwise you get the same error, because it looks for the old filenames. So if you have 200 events with the same file, you have to redo all 200 of them. And if you miss only one, your game will crash again.

I know. I was cautious earlier. I call copies of those core events (eg., vegetation, animals, etc). So, I just need to change less than 30 files.

This week is insane for me. I will only be able to test this in a few days. I will share the results here.
Oh good. Still, I'd try it in a new project first, before you alter everything and it turns out not to work after all.
Ok.

I am confirming now that this fix solved the issue with the "%" problem. I just rewrote a few lines of the code to check for "$" instead of "%", and substituted all images and image calls.

However...

Other plugins are showing LOADING ERRORS for different reasons.

ARP Manual plugin, for example, loads images from 'img/pictures' folder. The code works fine on Windows builds, but returns this error on Android:
print.jpg


I tried to change the file path in the code to './img/pictures', but when on Android it still adds double // after the img folder name for a reason I have not discovered so far.

Do you have any suggestions?

Original thread: https://forums.rpgmakerweb.com/threads/image-filename-restrictions-for-android-deployment.169397/