The International Simutrans Forum

 

Author Topic: server_save_game_on_quit not working  (Read 1039 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3458
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
server_save_game_on_quit not working
« 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?

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: server_save_game_on_quit not working
« Reply #1 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?

Offline Vladki

  • Devotee
  • *
  • Posts: 3458
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: server_save_game_on_quit not working
« Reply #2 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.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: server_save_game_on_quit not working
« Reply #3 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.

Offline Vladki

  • Devotee
  • *
  • Posts: 3458
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: server_save_game_on_quit not working
« Reply #4 on: January 25, 2017, 09:53:16 PM »
No, saving on exit still does not work

Offline Vladki

  • Devotee
  • *
  • Posts: 3458
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: server_save_game_on_quit not working
« Reply #5 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

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20274
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: server_save_game_on_quit not working
« Reply #6 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.