Skip to content

[Fix] Crash from Tracker on Transferred Saves#3368

Merged
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
Malkierian:fix-save-transfer-tracker-crash
Nov 14, 2023
Merged

[Fix] Crash from Tracker on Transferred Saves#3368
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
Malkierian:fix-save-transfer-tracker-crash

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.
@briaguya0 briaguya0 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