CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.65k stars 4.18k forks source link

[9183] Critical issue: player displaced and skills erased on game save (possibly other effects) #31627

Closed zacklucky7 closed 5 years ago

zacklucky7 commented 5 years ago

Describe the bug

Starting in 9183, a critical bug has been introduced where the player is displaced (always northwest), has all of their skills erased, and gender set to male when saving and reloading the game.

Stats, traits, and inventory seem to be unaffected, but I did not do a thorough examination for what was affected.

This does lead to situations where survivors will find themselves reloading in midair or in the ocean and then falling or drowning.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a character on version 9183.
  2. Move at least one tile. The bug does not trigger if you save and reload in your starting tile. It might also trigger if any time passes, but I was able to reliably trigger it by moving at least one tile.
  3. Save and return to the main menu.
  4. Reload your save.
  5. You will find that your skills have been erased, you have been displaced somewhere to the northwest on your Z-level (including into solid rock), and your gender has been set to male (if female).

Versions and configuration

curstwist commented 5 years ago

Can confirm the displacement issue on vanilla 9184. Didnt notice the rest but I was in a test world. I can provide a save file if needed.

image

TechyBen commented 5 years ago

Same here. I thought it was due to the skills char - player changes and refactoring [edit] latest change was here: https://github.com/CleverRaven/Cataclysm-DDA/commit/a9de97cd00fd10219b3f9cd20d011295f28e6c69 I am also getting a map crash, but not sure if it's the same or different.

I was able to start a new game. Save, and roll back to an older version 9177, and the stats show. So seems something to do with upgrading older saves to 9181? @KorGgenT Is this the save game version check code missing something? (I see I may have failed in fixing my save, if the skills are moving to a different file, I kept trying to change the existing skills location by hand for my saves. Oops!)

KorGgenT commented 5 years ago

'm fairly confident that my refactoring pr is not the cause of this, but i'll help investigate if i can.

molkero commented 5 years ago

I also lost the starting scenario profession name & all bionic power.

ZhilkinSerg commented 5 years ago

I also lost the starting scenario profession name & all bionic power.

There is an error during savegame loading, so you characters stats were reset to default values.