Savegame Versioning

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
OmerMor
Got a warning
Posts: 176
Joined: Thu Nov 17, 2005 9:29 pm
Location: Israel
Contact:

Savegame Versioning

Post by OmerMor »

Hi,
I was wondering: How do you manage to keep savegame compatibility between different versions of the VM ?
Last edited by OmerMor on Sat Mar 12, 2011 8:50 pm, edited 1 time in total.
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3561
Joined: Mon Oct 31, 2005 7:39 am

Re: Savegame Versioning

Post by eriktorbjorn »

OmerMor wrote: I was wondering: I do you manage to keep savegame compatibility between different versions of the VM ?
ScummVM should almost always be able to read savegames that were made with an older version. I think there have been a few times when savegame compatibility was broken for some game engine, but those are few and far between.
OmerMor
Got a warning
Posts: 176
Joined: Thu Nov 17, 2005 9:29 pm
Location: Israel
Contact:

Post by OmerMor »

I'm sorry - I made a typo: I meant to ask "How do you manage" to keep this backward compatibility. I just edited the post.
I am asking as programmer who deals with versioning problems on my job, and is interested in your versioning strategy.
I guess I could go read your code, but I figured asking here would be simpler. :)
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

In most (all?) cases there's a byte signifying the savegame version, and there's code that handles previous saved games. An example would be the SCI savegame code inside sci/engine/savegame.cpp
Post Reply