URL:
<http://gna.org/patch/?1541>
Summary: [Metaticket] new savegame format
Project: Freeciv
Submitted by: syntron
Submitted on: Samstag 20.03.2010 um 15:20
Category: general
Priority: 5 - Normal
Status: In Progress
Privacy: Public
Assigned to: syntron
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.3.0
_______________________________________________________
Details:
The current savegame.c file has some disadvantages. One the one hand there is
no structure, one the other hand loading a damaged savegame will kill the
server. This patch series adds a savegame2.c file to freeciv. This file is a
rewrite of the old savegame file. Comments to additional movements of code or
renaming of variables within the save file are wellcome.
The file attached to this ticket contants all data. Important is the bash
script 'sg-test.bin'. It can be used to test the compability between the old
and new savegames. If you rename a savegame as 'sg-testme.sav.bz2', this file
will
* load 'sg-testme.sav.bz2' and save it in the old format
(sg-test01-old.sav.bz2)
* load 'sg-test01-old.sav.bz2' and save it in the new format
(sg-test02-new.sav.bz2)
* load 'sg-test02-new.sav.bz2' and save it in the old format
(sg-test03-old.sav.bz2)
* load 'sg-test01-old.sav.bz2' and save it in the old format
(sg-test04-old.sav.bz2)
* create diffs between 1-3, 1-4 and 3-4
The main differences are:
* no map for dead players are saved in the new format
* differences within the event log
* (sometimes) differences in the update time for tiles, this can also be
found in the diff 1-4 (only old format)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Samstag 20.03.2010 um 15:20 Name: savegame2.diff Size: 216kB By:
syntron
<http://gna.org/patch/download.php?file_id=8576>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1541>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev