Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualO-san

Posted 13 June 2012 - 05:14 AM

Hello!

I'm developing a game which uses lua for scripting. I am at a point in development where I want to have save files/states and I am wondering what's the best solution. My scripts usually have a table where most of the variables reside, I use no coroutines in my scripts. Is it a good idea to somehow iterate through the lua stack and save the variables to file?

I have searched around a bit and found a library called pluto but I am not very confident that it will work with the latest lua build (5.2). Moreover it seems to have issues with 64bit systems.

Any thoughts on lua stack saving is greatly appreciated.

#1O-san

Posted 13 June 2012 - 04:28 AM

Hello!

I'm developing a game which uses lua for scripting. I am at a point in development where I want to have save files/states and I am wondering what's the best solution. My scripts usually have a local table where most of the variables reside, I use no coroutines in my scripts. Is it a good idea to somehow iterate through the lua stack and save the variables to file?

I have searched around a bit and found a library called pluto but I am not very confident that it will work with the latest lua build (5.2). Moreover it seems to have issues with 64bit systems.

Any thoughts on lua stack saving is greatly appreciated.

PARTNERS