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
Type Feature Request
Category Network
Status New
Assigned To No-one
Operating System All
Severity Very Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
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

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.