Daniel Hood
Member
Hi, I'm new to the forum so I hope I'm brief. I've been having trouble with saving and loading my game after exporting the package. I am exporting out of uwp so I'm assuming that's where the problem lies, considering how its set up, but just an assumption. This is what my save script looks like:
And this is what my load script looks like:
So through testing, it works fine. I can close the program and start it up again and still have my previous save. However, after I create the uwp package, no information seems to be saved. I'm not sure if I have to call the data in a different way or whatnot but i'm drawing a blank on why it works through testing and not the package. I should mention I'm not to familiar with the async side of things, so I'm wondering if I have to go that route. Any help would be much appreciated, thank you.
P.S. sorry if I'm in the wrong thread
Code:
ini_open("save.ini");
ini_write_real("Save","level",global.currentLevel);
ini_write_real("Jump","jumpback",global.jumpBack);
ini_write_real("Freeze","freeze",global.freeze);
ini_write_real("Burst","burst",global.burst);
ini_close();
Code:
ini_open("save.ini");
global.currentLevel = ini_read_real("Save","level",0);
global.jumpBack = ini_read_real("Jump","jumpback",0);
global.freeze = ini_read_real("Freeze","freeze",0);
global.burst = ini_read_real("Burst","burst",0);
ini_close();
P.S. sorry if I'm in the wrong thread
Last edited: