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

[Fix] Crash from Tracker on Transferred Saves #3368

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Nov 8, 2023

When transferring vanilla saves, the "trackerData" section didn't exist, and thus wouldn't run RandomizerCheckTracker::LoadFile(), which had some critical initialization routines. This would cause a crash any time you tried to collect an item (or if you saved once first, would crash once, then be fine afterward). That function shouldn't have done anything but load the "trackerData" section in the first place. This moves everything but the "trackerData" block to a new OnLoadGame hook function where it can still guarantee all relevant information for initialization is present, but will be done regardless of if the section originally exists.

Build Artifacts

…ock to load the "trackerData" section to a new `OnLoadGame` hook function to fix crashes on transferred saves.
@briaguya-ai briaguya-ai merged commit 60687af into HarbourMasters:develop-macready Nov 14, 2023
@Malkierian Malkierian deleted the fix-save-transfer-tracker-crash branch November 14, 2023 04:48
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