K
kookamango
Guest
Hi all,
I'm not able to save or read high scores on android. Well, I'm not able to read them for sure. I do see 4kb in app data after I run the save script, but am not able to load it. Here is my code:
Object create event:
Object destroy event:
As you can see from the commented out lines, I've tried other formats for saving the data, without success. Any ideas?
I'm not able to save or read high scores on android. Well, I'm not able to read them for sure. I do see 4kb in app data after I run the save script, but am not able to load it. Here is my code:
Object create event:
Code:
//file=working_directory + "\savegame.ini"
file="savegame.ini"
ini_open(file) //begin saving
global.head=ini_write_real("base","head",0)
global.armor=ini_write_real("base","armor",0)
global.weapon=ini_write_real("base","weapon",0)
global.difficulty=ini_write_real("base","difficulty",0)
global.best=ini_write_real("base","best",0)
global.gold=ini_write_real("base","gold",0)
ini_close()
Code:
//file=working_directory + "\savegame.ini"
file="savegame.ini"
ini_open(file) //begin saving
ini_write_real("base","head",global.head)
ini_write_real("base","armor",global.armor)
ini_write_real("base","weapon",global.weapon)
ini_write_real("base","difficulty",global.difficulty)
ini_write_real("base","best",global.best)
ini_write_real("base","gold",global.gold)
ini_close()