Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apartments?



Jan Echternach wrote:
> If the server is killed, it won't save maps with players on it.  I've
> been killed more than once when the server crashed while I was almost
> through a map with tough monsters.  When logging in again, I woke up
> next to a Balrog, and the door was closed...   This probably needs to
> be fixed somehow.  Until then, I use the "save" command quite often to
> prevent auto-saving at the wrong place.

 This can be done better.  You have to be careful in some areas - ideally, the
server should see why it is dying and try to avoid that area of memory when
doing its cleanup.   I believe one reason th maps the players are on is not
saved is this reason - they are more likely to have the corrupting data, and
calling save on them it is more likely to result in a corrupt map file and/or
another signal.

 A simple improvement I have been meaning to implement is not to purge the temp
map when re-loading - so if the server does crash, at least the maps the players
are on revert back to the state they were last saved out.  This may not be a
major improvement, but may help some things.