Posts for princeofexcess

Post subject: Thanks for quick reply
Joined: 11/24/2018
Posts: 2
I have tried but I am getting an error: Error creating file This is my code: state = 1 save = savestate.create(state) save_object = savestate.save(save) savestate.load(save_object) if you could post a code snipplet that works i would be extremely greatful
Post subject: loading a save state in lua script
Joined: 11/24/2018
Posts: 2
I am trying to load a savestate from lua script. (in the VBA recording, vba-rerecording-svn480-win32) The savestate already exists as a file (however I could also create it inside the script as well) I have tried using the following script to test loading:
save_object = savestate.create(1) savestate.load(save_object)
I get the following error
... lua:28: loadstate failed
I would really love if someone could explain to me how to load a game from a savestate file and from a savestate object using a lua script. The documentation on how to use savestates is still under a TODO list on the website... I really need this utility to make my script work!