Summary: Booleanize all save functions for savegame v2
                 Project: Freeciv
            Submitted by: davide_at_debian
            Submitted on: Thu 21 Feb 2013 04:16:25 AM GMT
                Category: general
                Priority: 3 - Low
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 



Booleanize the structure of functions below save_command() for savegame
version 2.

Currently, failures to save the game are only textually reported to users but
are not treated by the server, which is bad for automated, self-managed
servers running 24/7, such as Longturn, Greatturn and similar.

This patch intercepts all save failures along the functions chain beneath
save_command(), and makes a boolean available to let the machine check the

Since when such save failures occur (various assert fails) they usually
compromise any other future saves too, Greatturn uses this to automatically
revert the game to the last functioning savefile, 10 minutes back.

Other case usage for this could be a Lua handle to send a warning email to the
server operator, etc.


File Attachments:

Date: Thu 21 Feb 2013 04:16:25 AM GMT  Name: save_booleanized.patch  Size: 6kB
  By: davide_at_debian



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to