Post subject: FBA lua: can't get savestate.load to work.
Joined: 2/6/2011
Posts: 9
Hi all. I'm trying to automate my saving/loading code. Per this doc https://code.google.com/p/fbarr/wiki/LuaScriptingFunctions, at some point in my attempts to tas, I'm using lua to call: savestate.save(savestate.create(1)) I've also tried savestate.save(1) This creates a savestate file in the expected older, but when I load that file, the emulation is unaffected. The game continues as if I had not loaded anything. What am I doing wrong?
Joined: 2/6/2011
Posts: 9
nvm, figured it out. Apparently savestate.save is ineffective in the emu.registerbefore handler (creates a nonfunctional file), but is effective in emu.registerafter.