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

Megastore Save Compatibility #34952

Merged

Conversation

LetterShapedGlyphs
Copy link
Contributor

@LetterShapedGlyphs LetterShapedGlyphs commented Oct 22, 2019

Summary

SUMMARY: Bugfixes "Fixes loading worlds with old megastores"

Purpose of change

Fixes #34860 - Added save migration code for old megastore specials which was missing from #34625.
Updated alt map keys to reflect the new ids.

Describe the solution

Because megastores are 3x3 with some strange OM symmetry but not tile specific symmetry, each cardinal orientation needed to be tested for before the appropriate replacement code could be executed.

Describe alternatives you've considered

Leave old saves broken.
Adjust the "nearby" conversion code to allow for more complex adjacency checks

Testing

Loaded one of my old worlds and teleported to three different megastores. Each loaded with the correct orientation without any problems.

@LetterShapedGlyphs
Copy link
Contributor Author

The failed test is about body part hit probability, which this PR in no way touches.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Character / World Generation Issues and enhancements concerning stages of creating a character or a world Map / Mapgen Overmap, Mapgen, Map extras, Map display labels Oct 23, 2019
@ZhilkinSerg ZhilkinSerg merged commit 3c1831f into CleverRaven:master Oct 23, 2019
@LetterShapedGlyphs LetterShapedGlyphs deleted the Megastore-Save-Migration branch October 30, 2019 10:34
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) [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world [JSON] Changes (can be) made in JSON Map / Mapgen Overmap, Mapgen, Map extras, Map display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New World Gen Megastore problem
2 participants