The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Vladki on January 14, 2017, 07:38:40 PM

Title: server_save_game_on_quit not working
Post by: Vladki on January 14, 2017, 07:38:40 PM
Hello,

I think that the option server_save_game_on_quit = 1 does not work. I have it set to 1 but if I kill the server (Ctrl-C) nothing is saved at all. Is there a way how to make the server to save the game, apart from connecting with a client?
Title: Re: server_save_game_on_quit not working
Post by: jamespetts on January 14, 2017, 07:41:44 PM
I have not looked into this in detail, but I do not think that a setting like this will work if you kill the server process externally: can you check whether it works by ending it from within using nettool?
Title: Re: server_save_game_on_quit not working
Post by: Vladki on January 14, 2017, 08:09:50 PM
The comment in simuconf.tab says:

# Server saves savegame when being killed (default=0 off)

so I thought it should work.

I have tried nettol shutdown, and it does not save either.
Title: Re: server_save_game_on_quit not working
Post by: jamespetts on January 17, 2017, 12:04:38 AM
I have pushed a possible fix for this, but have not yet had chance to test it. Would you be able to test this to check whether it makes any difference? Thank you for the report.
Title: Re: server_save_game_on_quit not working
Post by: Vladki on January 25, 2017, 09:53:16 PM
No, saving on exit still does not work
Title: Re: server_save_game_on_quit not working
Post by: Vladki on January 30, 2017, 09:23:12 PM
Oh, I have noteced that upon nettool shutdown, the server game is saved to autosave-pak128.something.sve.
I was looking for the server133535-network.sve
Title: Re: server_save_game_on_quit not working
Post by: jamespetts on January 30, 2017, 10:21:19 PM
Ah - is this the same behaviour as Standard? I have not had a chance to look into this one yet.