URL:
  <http://gna.org/patch/?3726>

                 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: 

    _______________________________________________________

Details:

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
result.

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

<http://gna.org/patch/download.php?file_id=17296>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3726>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to