Hello,
I am stuck! A game prototype works fine on the debugger but when I bundle the Android application the screen only show the GUI and none of the GOs (sprites).
Please, help…
Can you upload a sample of the sprite images you are using?
Are you using texture profiles?
Are you using a custom render script? Can you please verify that the z-value is within the range that is supposed to be visible (-1 to 1 unless you’ve made changes). Are your seeing any errors in the log on your device (using logcat or pidcat)?
Images are simple tiles like this one: https://postimg.cc/p9Kb0PpL
All are packed in an atlas and the project use the default /builtins/graphics/default.texture_profiles
Ops… now I see sorry
A configuration file that is read and updated before to start of the game, is read-only in the device.
How can I work it around?
Which file?
A custom file (config.cfg), used to store some game info like user progress, score, etc…
I assume you are bundling this file?
You can make a copy of it externally with normal file io.
Yes, you are not allowed to write files in all locations.
Use sys.get_save_file() to get a writable location. Copy it there first.
Great!
Getting the path with sys.get_save_file() before to read/write to the file works.
Thank you so much.