Page 1 of 1

BBS issues with saving and loading

Posted: Sat Sep 26, 2015 2:48 am
by joonicks
why not introduce api to allow lua scripts to handle their own saving and loading?

have like and onSave and onLoad function
onsave would submit to the engine a list of attributes to store in the savefile, engine also stores the particulars of which lua that submitted the attributes
then on game load, engine starts the script again and passes all the stored attributes to onload so that the script can resume where it was so rudely interrupted by the player

Re: BBS issues with saving and loading

Posted: Mon Sep 28, 2015 9:10 am
by FluffyFreak
Not sure I've understood but Lua stuff saves it's own data already, and there's interfaces for trigger a load/save, which calls down into Lua so it can save already.

So, Lua already saves and loads stuff.