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



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

* load 'sg-testme.sav.bz2' and save it in the old format
* load 'sg-test01-old.sav.bz2' and save it in the new format
* load 'sg-test02-new.sav.bz2' and save it in the old format
* load 'sg-test01-old.sav.bz2' and save it in the old format
* 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:



Reply to this item at:


  Nachricht geschickt von/durch Gna!

Freeciv-dev mailing list

Reply via email to