Skip to content

Fix Entrance Rando weather override behavior #5403

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

Merged

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Apr 14, 2025

Fixes an issue with how entrance rando hooks where overriding the weather/skybox behavior. The problem was that Play_InitEnvironment was being executed twice (the second time with the updated weather/environment content applied), which resulted in Environment_Init inserting additional lights. This meant there was always double the lights added, potentially overriding/de-linking previous lights, which lead to strange behavior like characters having the wrong lighting.

This bug was introduced by moving the entrance rando methods out of the game src into hooks with 9.0.0. A new hook has been added for AfterSceneCommands which executes right after all the commands are processed, allowing any overrides to happen as soon as possible. In this case, it allows executing Entrance_OverrideWeatherState before Play_InitEnvironment, which is how 8.0.6 effectively was.

Build Artifacts

Copy link
Contributor

@leggettc18 leggettc18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does appear to fix the Phantom Ganon bug, and it also appears to have fixed a random crash I experienced when leaving Temple of Time in a Madness seed!

@leggettc18 leggettc18 merged commit 5ae8ce4 into HarbourMasters:develop-blair Apr 14, 2025
6 checks passed
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.

2 participants