All I do is
Code: Select all
game.onsave(function()
glob.crdata = mydata.units -- A table containing 'entities' as values
end)
Code: Select all
game.onsave(function()
glob.crdata = mydata.units -- A table containing 'entities' as values
end)
Code: Select all
/Applications/factorio.app/Contents/MacOS/factorio -load "mygame"