[Savegame] Restored state invalid if same addons not present
I play the level a while.. then save. I play some more, but then I die or do something stupid and load the save. I get into the game for some 10 seconds, and then it gives me this error message:"Z_Free: Attempt to free pointer without ZONEID." If I just play the level without using save/load, then I don't get the error.
I included a save that has the error happening in about 10 seconds after loading it.
#1 Updated by danij over 13 years ago
Can you tell us any more about the problem? Which version of Doomsday are you running? Has the problem happened since? Are you loading any other addons?
I can replicate the problem when loading the save attached to this report. It would appear the player weapon state pointer serialised incorrectly, which when read results in an offset outside the states table (not good).
However I've tried numerous times to reproduce the problem to no avail.
#3 Updated by danij over 13 years ago
I decided to put that theory to the test and lo and behold I got it bang on the mark, haha.
1) Load both pl2.zip and pk_weapons_dd.wad
2) Start any map and save whilst any of the player weapons is in a state not present in the original game,
3) Restart, this time loading only pl2.zip
4) Load the broken saved game.
Although clearly this is a case of "don't do that" we really need to do something to prevent users from making such an easy mistake in future.
NB: I'm not setting a group for this report as the same thing occurs in any version of Doomsday.