Re: [warzone2100-dev] Savegame format changes

2011-03-18 Thread Per Inge Mathisen
On Fri, Mar 18, 2011 at 1:30 AM, buginator buginato...@gmail.com wrote:
 While discussing the current savegame format, it was brought to my
 attention that we currently have this ticket about a proposed new
 format.
 http://developer.wz2100.net/ticket/652

 Unsure of the status, and if we want to go that route or not.

Status - needs more work, but work-in-progress patch and partial
conversion tools already exist. Support for droids, buildings,
effects, etc. is still lacking. I think the way it saves map data is
near optimal in regards to size, and is very flexible for the future.
Saving everything else as .ini is certainly something I'm willing to
discuss in light of better alternatives.

 Another possible idea, is stuffing everything into a sql database, and
 handle savegames that way (one database file per savegame)

Even map data? Ugh. For everything else - why not.

 sidenote: the tagfile stuff should be nuked as well.

The sooner the better. However, it is currently used to same some stuff.

 The changes by abomination were a bit overzealous, since in
 a72c41aeec0136c86007739a97ccc9ed508c0283,
 BOOL was a sizeof(int), and now it is a sizeof(byte), and that is
 fubaring the savegame structures that in the past were of sizeof(int)
 (4 bytes), and now are sizeof(bool) (1 byte)...
 Do we care about breaking SP savegames ?

I've been breaking them in the past for master, so... I guess not.

  - Per

___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


[warzone2100-dev] Savegame format changes

2011-03-17 Thread buginator
While discussing the current savegame format, it was brought to my
attention that we currently have this ticket about a proposed new
format.
http://developer.wz2100.net/ticket/652

Unsure of the status, and if we want to go that route or not.

Another possible idea, is stuffing everything into a sql database, and
handle savegames that way (one database file per savegame)
Yet another idea was to use BSON.

sidenote: the tagfile stuff should be nuked as well.

The changes by abomination were a bit overzealous, since in
a72c41aeec0136c86007739a97ccc9ed508c0283,
BOOL was a sizeof(int), and now it is a sizeof(byte), and that is
fubaring the savegame structures that in the past were of sizeof(int)
(4 bytes), and now are sizeof(bool) (1 byte)...
Do we care about breaking SP savegames ?

Comments ?

___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev