FS#6478 - Save empty scripts when sending map to clients

Attached to Project: OpenTTD
Opened by Ricardo (Samu) - Monday, 13 June 2016, 11:53 GMT
Last edited by andythenorth (andythenorth) - Thursday, 31 August 2017, 17:45 GMT
Type Feature Request
Category Network
Status Closed
Assigned To No-one
Operating System All
Severity Very Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Taken apart from my project here:

"f) While hosting a server, AIs or GS are not going to be requested to save their data when a client attempts to join. But should you manually save the game or perform autosaves, AIs or GS are still going to be requested to save their data. This permits scripts that usually take too long to save to be useable while running a server for as long as no autosaves or manual saves are done during the session."

This task depends upon

Closed by  andythenorth (andythenorth)
Thursday, 31 August 2017, 17:45 GMT
Reason for closing:  Won't implement
Additional comments about closing:  As per Alberth's comment, this isn't necessary and probably not wise. Flyspray clean up, so closing thanks. If this offends, discuss in irc, thanks.
Comment by Alberth (Alberth) - Saturday, 18 June 2016, 07:52 GMT
If a script takes too long to save its data, I would say it's broken. It's producing a save that can't be used for loading.

The script should save less data, don't attempt to save it at all (and have some other means to recover that information), or reduce the time required to save the data eg by doing pre-computations or so.