[12.10] MP Headless Windows 10 Not Saving to MAIN file

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
ibsteveog
Burner Inserter
Burner Inserter
Posts: 14
Joined: Wed Dec 04, 2013 4:53 am
Contact:

[12.10] MP Headless Windows 10 Not Saving to MAIN file

Post by ibsteveog »

The setup:
  • Windows 10
    Factorio 12.10, set up to run as headless MP server. ZIP file installation, 64 bit version. Installed to D: drive.
Server is started via batch file and uses --start-server MyMPGame.zip parameter.

Server loads the game just fine, and it autosaves just fine, but it never writes back to the main save game file (MyMPGame.zip). So every time the server is shutdown (via Ctrl+C in the server console window), you have to go dig up the last _autosave-*.zip. This results in a rollback of the game state and is generally inconvenient.

The thread at https://forums.factorio.com/forum/vie ... 33&t=14666 seems to have the same problem.


Edit #1: Connecting to the server and running /c game.server_save() works great to write to the main file. So it's just not triggering the save on Ctrl+C or shutdown.
Edit #2: Added installation details and location of game.
Edit #3: Log file from most recent shutdown:

Code: Select all

91749.375 Info Synchronizer.cpp:438: NetworkTick(5503645) peer(7) drop detection state(200/900).
91751.019 Received SIGINT, shutting down
91751.968 Warning NetworkInputHandler.cpp:723: mapTick(6511695) networkTick(5503645) disconnecting from player but already disconnected.
91752.243 Info MultiplayerManager.cpp:129: NetworkTick(5503645) disconnecting multiplayer connection.
91752.243 Info NetworkInputHandler.cpp:59: expectedMapTick(6511695) sending PlayerLeaveGame
91752.256 Info MultiplayerManager.cpp:156: NetworkTick(5503645) quitting multiplayer connection.
91752.257 Info MultiplayerManager.cpp:865: networkTick(5503645) mapTick(-1) changing state from(InGameSendingMap) to(Disconnected)
91752.282 Info Router.cpp:557: Router peerID(0) shutting down.
91752.283 Info WindowsUDPSocket.cpp:160: Socket closed
91752.283 Info Router.cpp:583: Router state -> Disconnected
91752.284 Goodbye
Last edited by ibsteveog on Mon Oct 12, 2015 6:09 pm, edited 3 times in total.
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [12.10] MP Headless Windows 10 Not Saving to MAIN file

Post by Oxyd »

Can't reproduce. Started a server on Windows 10, connected to it, made a few changes, disconnected and killed the server by pressing Control-C. Then started the server again, connected and my changes were there, as they should.
ibsteveog
Burner Inserter
Burner Inserter
Posts: 14
Joined: Wed Dec 04, 2013 4:53 am
Contact:

Re: [12.10] MP Headless Windows 10 Not Saving to MAIN file

Post by ibsteveog »

Oxyd wrote:Can't reproduce. Started a server on Windows 10, connected to it, made a few changes, disconnected and killed the server by pressing Control-C. Then started the server again, connected and my changes were there, as they should.
It is apparently intermittent. I just did another round of restarts and it wrote the save properly. Not sure what caused it to not write the save before...
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [12.10] MP Headless Windows 10 Not Saving to MAIN file

Post by Oxyd »

ibsteveog wrote:
Oxyd wrote:Can't reproduce. Started a server on Windows 10, connected to it, made a few changes, disconnected and killed the server by pressing Control-C. Then started the server again, connected and my changes were there, as they should.
It is apparently intermittent. I just did another round of restarts and it wrote the save properly. Not sure what caused it to not write the save before...
Be aware that pressing Control-C twice will make it terminate immediately, without saving anything. Is that perhaps what you're doing?
Post Reply

Return to “Pending”