External Save Data

Place to get help with not working mods / modding interface.
User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

External Save Data

Post by metzyn »

How can I create external files for saving my own data?
Factorio Modder
Solar Expansion

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: External Save Data

Post 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?
<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

User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: External Save Data

Post by metzyn »

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

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: External Save Data

Post 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.
<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

User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: External Save Data

Post by metzyn »

Do I need to do anything for the onload and onsave events?
Factorio Modder
Solar Expansion

kovarex
Factorio Staff
Factorio Staff
Posts: 8194
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: External Save Data

Post 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.

User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: External Save Data

Post 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.
Factorio Modder
Solar Expansion

kovarex
Factorio Staff
Factorio Staff
Posts: 8194
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: External Save Data

Post by kovarex »

If I was making this part, I would certainly call it "global" ...

User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: External Save Data

Post 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.
Factorio Modder
Solar Expansion

kovarex
Factorio Staff
Factorio Staff
Posts: 8194
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: External Save Data

Post 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 :)

User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: External Save Data

Post by metzyn »

kovarex wrote:
I would prefer to rename it to global :)
Let's take a stand! Rename "glob" to "global"!
Factorio Modder
Solar Expansion

Post Reply

Return to “Modding help”