I’m using this save system in my game:
https://forums.unrealengine.com/filedata/fetch?id=1525798
I have this system in 3 blueprints in my game scene which are going to be saving/loading data somewhere during run time.
They’re always on the “Event begin play” and “Event Construct” nodes.
When I need to save a value I use:
https://forums.unrealengine.com/filedata/fetch?id=1525799
When I need to load a value I use:
https://forums.unrealengine.com/filedata/fetch?id=1525800
and It works fine… In editor and development builds.
Now in shipping builds it’s a whole different story.
First of all I have it it so the game is in one apk file and I have the “Use ExternalFilesDir for UE4Game Files” Option unchecked since
I found it to be very prone to exploitation from the player, I also wanted the saves to be persistent through uninstalls.
I added the following permissions to the “Extra Permissions” Section of the Advanced APK Packaging menu:
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_INTERNAL_STORAGE
android.permission.READ_INTERNAL_STORAGE
I also added the to the android manifest manually just in case.
If I build my APK as a development build, everything works fine, the APK asks for external storage permission on installation and the saving and loading work fine.
When I try building my APK for distribution though the APK does not as for any permission and the saving and loading don’t work, I then go inside the app permissions in my phone’s settings menu and manually grant the game storage permission which makes the menu scene able to “sometimes” save and load a value or two, however the game scene is still unable to save/load anything.
I’ve been pulling my hair out on this issue for a while, testing it on multiple devices and trying a bunch of different solutions that proved fruitless such as trying the “Use ExternalFilesDir for UE4Game Files” option.
at the moment I’m at my wit’s end and don’t have a clue where to go from here, without this feature I really don’t have a game, so any help you can provide my with is very very much appreciated.
Thanks in advance.