Posts for j0nnyd

Joined: 3/20/2015
Posts: 2
Thanks for the quick reply! I will try the savestates tonight and reply back if I hit any other errors.
Post subject: Genetic Algorithm in Mario, Using LUA to Close the Client
Joined: 3/20/2015
Posts: 2
I am trying to use a genetic algorithm to beat Super Mario. I have a C# application launching BizHawk and I have BizHawk configured to open the savestate and open and start the script. I am currently using os.exit(0) to close it, but I keep getting access violation exceptions and I think it is because the client is not closing properly. So, the actual question, is there a built-in way to gracefully close the entire BizHawk client from a LUA script? I am opening and closing BizHawk over and over while the algorithm keeps evolving. Another question would be is there a better emulator suited for this type of application? Any help is appreciated! Another option would be to open BizHawk and then just have the script reload the savestate each time and not close the main client at all. I might try this when I get off work.