Page 1 of 1

[0.12.30] The way headless server saves

Posted: Sat Apr 23, 2016 10:09 pm
by Joniator
TLDR
Currently I struggle with the way the headless server saves its games.

It seems to be impossible to save the game to the original save.zip automatically/remote.
The only way that works is to connect to the server, open the ingame console and type /c game.server_save()

Everything else will only save to the autosave files.
Which make no sense at all, especially since autosaves arent for one save each, but for all together.

So if you run 2 or the maps more or less simultaneously, you cant just stop the server and start with the new map, because the old map wont be saved bc all 3 autosaves are overwritten.

So why doesnt the server save to the original file, at least if it gets shut down?
Or is it possible to send commands via SSH? Because just typing the command while running the server wont do anything.

I know there are workarounds like renaming the last autosave and overwrite the original, but thats not the way it should work.

It may not be a bug causing crashes or ruining gameplay, but its definetly not working the way it should work and may lead to lost data because you trust the save system.

I nearly lost an entire savegame just because I didnt knew it.
I started the server with a new map and played on it for like 6 Days without restarting (Server itself works like a charm)
But then I wanted to start a new map with some friends.
In this time, factorio overwrote my entire savegame I used to play before.

After switching back to the old game, I was shocked because obviously my map was completely empty.
I rolled a backup and started the map again, just to see it empty again.
At the end I recovered the map via the backuped autosaves, but without my regular backups (which im pretty sure not everyone does), everything would have been lost forever without a meaningful reason.

Re: [0.12.30] The way headless server saves

Posted: Sat Apr 23, 2016 10:32 pm
by Oxyd
Sounds like a duplicate.

Re: [0.12.30] The way headless server saves

Posted: Sun Apr 24, 2016 9:52 am
by Joniator
Thank you, I couldn“t find this while searching for it.

But im happy to hear its going to be fixed :)