Resource Loading Works on PC but Getting null References on Android and HTML5

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By phonoforest

I’ve been stuck on this bug for almost a week and I’m wondering if anyone else has seen something like this. I’m trying to save and load game data by using ResourceLoader and everything seems to work perfectly on PC but in android and html5 the game fails to load the save.tres file and throws some invalid index errors when it tries to load the data. I created a simple test project to try to recreate the error but it seems to be working fine without problems. I don’t know what could be causing it in my actual project.

It looks like my problem was with FLAG_BUNDLE_RESOURCES not working in android or HTML5

I decided just to use the more traditional File class to save and load data instead because it seems like a better solution anyway.

phonoforest | 2023-05-31 21:55