Donate Share

D2X-XL

Tracker: Patches

5 savegame incompatibility between 1.9.242 and 1.9.274 - ID: 1780138
Last Update: Settings changed ( d2x-xl )

it's because MAX_OBJECTS_D2X was changed from 700 to MAX_SEGMENTS_D2X
(6000).
It's a problem for me because I play d2xl only from time to time, and my
savegames get regularly broken when I upgrade my version of d2xl...
I had to change STATE_VERSION to 35 in state.c to be able to say if we take
MAX_OBJECTS_D2X or 700.
If you don't care about this savegame compatibility, then too bad, just
ignore the patch, I'll continue with what I have.

If you want to avoid to break the savegames everytime you change something
in your structs, just use independant blocks in your savegames like this :

DESCRIPTION 4 BYTES (or more but a fixed length) : tells the type of block
which is starting here (for example ROBO for robots, etc...)
Then length on 4 bytes too
Then length bytes for the block, and you start again with another block. It
helps a lot to keep compatibility between savegames, even if you'll still
have to add some code when you change a struct, but at least it makes
finding problems much easier and avoid silly crashes when loading a
savegame...

Now the patch contains numerous other changes which are mostly usefull to
me, you can just ignore them, like subdirectories for the savegames, fixes
to save screenshots in linux64, fixes to be able to use the numeric keys
with a french keyboard, fix not to write anything in
/usr/local/share/d2x-xl, and I probably forget a few things, anyway it's
not that big.


Emmanuel Anne ( emanne ) - 2007-08-23 12:00

5

Closed

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2007-08-24 22:09
Sender: d2x-xlProject Admin


Oh dang, I didn't think of the savegames when making this (necessary)
change. Thx.


Log in to comment.

Attached File ( 1 )

Filename Description Download
patch-d2xl-1.9.274 patch for versions >= 1.9.274 Download

Changes ( 3 )

Field Old Value Date By
status_id Open 2007-12-06 20:02 d2x-xl
close_date - 2007-12-06 20:02 d2x-xl
File Added 242477: patch-d2xl-1.9.274 2007-08-23 12:00 emanne