Page 1 of 1
External Save Data
Posted: Fri May 24, 2013 12:27 am
by metzyn
How can I create external files for saving my own data?
Re: External Save Data
Posted: Fri May 24, 2013 12:36 am
by FreeER
Currently you can not. The devs removed the io library (or at least removed our access to it lol). What are you wanting to do that the glob table will not work for?
Re: External Save Data
Posted: Fri May 24, 2013 1:04 am
by metzyn
Maybe I don't understand the glob table. There is so little information on it... at least nothing that is clear-cut.
Re: External Save Data
Posted: Fri May 24, 2013 1:18 am
by FreeER
As far as I know it's a standard table except that it is saved and loaded with the game. Thus anything that you place in it is loaded when the save is.
Re: External Save Data
Posted: Fri May 24, 2013 1:25 am
by metzyn
Do I need to do anything for the onload and onsave events?
Re: External Save Data
Posted: Fri May 24, 2013 1:33 am
by kovarex
The glob (not global but glob) works automatically, you don't have to do anything more.
Edit: We are doing something there in the campaign scripts, because we need to avoid saving the whole story-state structure, as it contains pointer to functions, and there are problems with saving pointers to structure.
Re: External Save Data
Posted: Fri May 24, 2013 1:40 am
by metzyn
kovarex wrote:The glob (not global but glob)
Why... oh, why... call it "glob"? Because of this name, I was SO confused as to what the hell it was referring.
Re: External Save Data
Posted: Fri May 24, 2013 1:47 am
by kovarex
If I was making this part, I would certainly call it "global" ...
Re: External Save Data
Posted: Fri May 24, 2013 1:50 am
by metzyn
kovarex wrote:If I was making this part, I would certainly call it "global" ...
ha ha ha ha... that's awesome. At least I know what that is now. Might be a good idea to update the Wiki. I would, but I do not know the Wiki-speak-language-thingy-script.
Re: External Save Data
Posted: Fri May 24, 2013 1:52 am
by kovarex
metzyn wrote:kovarex wrote:If I was making this part, I would certainly call it "global" ...
ha ha ha ha... that's awesome. At least I know what that is now. Might be a good idea to update the Wiki. I would, but I do not know the Wiki-speak-language-thingy-script.
I would prefer to rename it to global

Re: External Save Data
Posted: Fri May 24, 2013 2:07 am
by metzyn
kovarex wrote:
I would prefer to rename it to global

Let's take a stand! Rename "glob" to "global"!