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

Save ore veins with their string id #62

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Dec 22, 2024

Using an incremental id for the ore veins is not a great idea when the order that they are loaded in can change. This changes it to save them with their string id which is very unlikely to change between versions.

If the veintypesLUT file is missing while the veins still need conversion it will purposefully prevent saving & loading since that file is still required for this to convert correctly. Without that file there's a chance that they'll be saved with a wrong string id.

Will prevent issues like GTNewHorizons/GT-New-Horizons-Modpack#18066 & GTNewHorizons/GT-New-Horizons-Modpack#18058 from occurring in the future.

@Lyfts Lyfts requested a review from a team December 22, 2024 11:46
@serenibyss
Copy link
Member

Code changes look good to me. Has this been tested in new and old worlds?

@Lyfts
Copy link
Member Author

Lyfts commented Dec 23, 2024

Yep tested in an old world with around 45k veins in the server cache and it looked like everything converted correctly. Nothing's really changed for new worlds it'll just save a string instead of a short, but I did also test that for good measure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants