External Save Data
External Save Data
How can I create external files for saving my own data?
Factorio Modder
Solar Expansion
Solar Expansion
Re: External Save Data
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?
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
Re: External Save Data
Maybe I don't understand the glob table. There is so little information on it... at least nothing that is clear-cut.
Factorio Modder
Solar Expansion
Solar Expansion
Re: External Save Data
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.
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
Re: External Save Data
Do I need to do anything for the onload and onsave events?
Factorio Modder
Solar Expansion
Solar Expansion
Re: External Save Data
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.
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
Why... oh, why... call it "glob"? Because of this name, I was SO confused as to what the hell it was referring.kovarex wrote:The glob (not global but glob)
Factorio Modder
Solar Expansion
Solar Expansion
Re: External Save Data
If I was making this part, I would certainly call it "global" ...
Re: External Save Data
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.kovarex wrote:If I was making this part, I would certainly call it "global" ...
Factorio Modder
Solar Expansion
Solar Expansion
Re: External Save Data
I would prefer to rename it to globalmetzyn wrote: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.kovarex wrote:If I was making this part, I would certainly call it "global" ...
Re: External Save Data
Let's take a stand! Rename "glob" to "global"!kovarex wrote:
I would prefer to rename it to global
Factorio Modder
Solar Expansion
Solar Expansion