Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2001:
[Freeciv-Dev] Re: save game when civserver killed?
Home

[Freeciv-Dev] Re: save game when civserver killed?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Lubos Polerecky <lup@xxxxxxxxxxxxxx>
Cc: Gaute B Strokkenes <gs234@xxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: save game when civserver killed?
From: Jason Dorje Short <jshort@xxxxxxxxxxxxx>
Date: Sun, 22 Jul 2001 13:49:02 -0400

Lubos Polerecky wrote:
> 
> Hello,
> 
> is there any way for the civserver to save the game when it is killed or
> something? I was playing, then I pressed by accident Fn+CRT/LCD on my
> laptop (STUPID ME!!!) and I couldn't get to a normal X-session any more
> because my LCD display wouldn't "come back". So I had to kill the
> X-server and then everything was ok. But I lost my game :-( Well, only an
> hour ;-/
> 
> So I was wondering whether there would be some trick to save the current
> state of the game if something goes wrong. For example some
> sort of a save-at-kill feature of the server or something external
> to tell it to do it, or to change the terminal or something of that kind.
> Well, I don't have much of ideas.

A patch to do just this (emergency-save the game upon receiving of a
HUP, TERM, or PWR signal) was proposed several months ago, but I don't
think it was ever incorporated (or else we wouldn't be having this
discussion, I think).

http://arch.freeciv.org/freeciv-dev-200105/msg00017.html

Several changes to it were proposed in the ensuing discussion, but as-is
it should save almost all games (losing just a few in the case of
weirdly timed interrupts).

jason


[Prev in Thread] Current Thread [Next in Thread]