Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back legacy wheel definitions #49568

Merged
merged 1 commit into from
Jul 4, 2021

Conversation

eltank
Copy link
Contributor

@eltank eltank commented Jul 4, 2021

Summary

Bugfixes "Add back legacy wheel definitions needed for loading 0.E saves"

Purpose of change

Fixes #49540
Needed for loading 0.E saves in 0.F

Describe the solution

Revert the part of #45765 that deleted legacy wheels.

Describe alternatives you've considered

Digging deeper to find out why vehicles are getting messed up and what's causing the segfaults. That may take a while; this simple fix is useful in the short term.

Testing

Start game, load one of the saves from #49540. Observe functional vehicles.

Additional context

Still don't know why those obsolete wheels are appearing in 0.E saves. The parts should have been upgraded by 0.E migration code.
I would also expect the vehicle code to not fail miserably (and lead to segfaults) when some vehicle parts are invalid. More work is needed there.

@eltank eltank force-pushed the fix_save_compat branch from 6d736ef to dd8262f Compare July 4, 2021 10:34
@eltank
Copy link
Contributor Author

eltank commented Jul 4, 2021

So it turns out the code is not needed, only the json.

@eltank eltank changed the title Add back savegame migration code for legacy wheels Add back legacy wheel definitions Jul 4, 2021
@ZhilkinSerg ZhilkinSerg merged commit 4025d02 into CleverRaven:master Jul 4, 2021
@eltank eltank deleted the fix_save_compat branch July 4, 2021 21:41
ZhilkinSerg added a commit to ZhilkinSerg/Cataclysm-DDA that referenced this pull request Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading a 0.E-3 save in a 0.F version leads to a save-data loss
3 participants