A
AsePlayer
Guest
I use ini files to keep track of my app's total gold, etc. It works on the test and when I try and run it on an android device it seems to just straight up not work. Is there a fix or an alternative?
I have this on every room creation code.This is not expected to not work. Therefore, please post all relevant code.
The code appears to not be running at all. I usedIs this code actually running? Verify it using something that will make itself noticeable if the code runs.
Is the file actually being created (and, by extension, accessible)? Verify it using file_exists or reading the file's contents after it has been created.
I haven't really "built" an apk per say, I've been using the target build on an emulator from Android Studio. Does the apk need to be fully done and installed to actually make the .ini's work?They are expected to work on mobile.
Be careful when pointing fingers at code that may or may not have ran, though - what you did was add entirely separate code. Perform the check right next to the code that's supposed to be running to verify that it runs. From a problem-solving standpoint, there is a huge difference between the save code not running at all and the save code running but failing to producing a file.
Just to make sure we're on the same page here: How are you running the game on your Android device? The expected procedure is to build an APK file, install it on the device and run it.
Try building an APK and running it directly on a target device, removing the potential additional problem sources that are the emulator and the test build runner. The answer this process will produce should be more conclusive than any of my educated guesses about what could be interfering with the permissions in between, so let's leave it at an inconclusive "I can see a few things that could go wrong there" to further motivate you to test it out.I haven't really "built" an apk per say, I've been using the target build on an emulator from Android Studio. Does the apk need to be fully done and installed to actually make the .ini's work?
I'll work on it and keep you updated! Sorry for not being super helpful in this, new to game maker and game making in general!Try building an APK and running it directly on a target device, removing the potential additional problem sources that are the emulator and the test build runner. The answer this process will produce should be more conclusive than any of my educated guesses about what could be interfering with the permissions in between, so let's leave it at an inconclusive "I can see a few things that could go wrong there" to further motivate you to test it out.