Savegame check for version/data mismatch [IMPLEMENTED]

jooe

Warlord
Joined
Oct 25, 2014
Messages
120
The game now checks a savegame before loading.
If either of these values mismatch between the mod version and the savegame version, loading will be aborted:
  • savegame version (set internally, now 1)
  • number of unit types (NUM_UNIT_TYPES)
  • number of building types (NUM_BUILDING_TYPES)
Before this change, the game would simply crash in such cases without an error message.
Not that the current (internal) version "develop" is not savegame compatible with 4.0.x anymore. You would only play that version if you compiled the DLL yourself, so if you don't know what I am talking about, you should be fine until the next major mod update.
 
Since we broke savegames in development anyway yesterday, today has been a busy day for the savegame format. I did some maintenance I had planned for a while, but didn't do as it would break savegame backward compatibility.

It should be noted that we intentionally wants 4.0.x releases to be able to read 4.0 savegames so our recent changes to the savegames won't be in a release before 4.1, not even if/when we release more 4.0.x releases.
 
Top Bottom