Repository navigation
Kakariko Village no longer freezes Link when Sheik gives the Nocturne - #144
Merged
Merged
Conversation
An adult Link who holds the Forest, Fire and Water Medallions and has not yet received the Sheik in Kakariko item froze on walking into Kakariko Village, from Death Mountain Trail or from Hyrule Field. The Nocturne of Shadow item scene ended, then an event kept playing and Link could not move. The story skip has no setting (it is always on), so every seed was affected. ## Cause `patch_burning` in `story_skip.rs` keeps both map changes of `Dm_SY_BancChangeArrive` and turns the flashback's `EventTransition` (`Event50`, timeline `Dm_Kakariko_0040`) into a write of the `HavePlayedEvent.Dm_Kakariko_0040` flag. In the vanilla `KakarikoVillage_FlashbackScenes` boot that transition is the only step that waits for the loading fade and fades the screen in. With it gone, the second map change (`Event379`, to `KakarikoVillage_Adult_Alternative`, booting `KakarikoVillage_MelodyGet_Shadow`) was never taken: the map stayed `KakarikoVillage_Adult` with an event playing. The introducing commit is 1888f4e. Why the engine ignores the change without the wait is not established. The evidence is that it takes the change once the wait and fade-in are back. ## Change After the flashback transition becomes the flag write, `patch_burning` now chains `UISystemActor.EventWaitCloseLoadingFade` and `UISystemActor.EventEventFadeIn` (length 1) in front of `Event379`, using the existing `loading_wait` and `fade_in` helpers. Neither scene plays, as before. The fade-in is the same pair the song skip's boot event on this flow already uses. The test `the_real_burning_village_skips_both_scenes_and_keeps_both_loads` now also asserts the order flag write, loading wait, fade-in, map change on the path from the `FlashbackScenes` entry. All changes are in `story_skip.rs`, no hunk outside the story skip. Because the story skip is always on, every build carries this change: of the files a build writes, `Event/EventFlow/Dm_SY_BancChangeArrive.bfevfl.zs` and the resource size table (the flow grew) differ from nightly, nothing else. ## Checked - The regression test fails without the fix: with the line that links the new wait and fade-in removed it fails with "the change is reserved under the loading fade" (the path goes from the flag write straight to the map change), and it passes with it. It walks the game's own flow file, so the result does not vary between runs. - Through the build gate on this commit with the game files set: `cargo test -p ootrr-core story_skip` 24 passed, `settings` 114 passed, `cargo test --workspace` 15, 1784, 52, 248, 77, 4, 1 and 247 passed, 0 failed. - `ootrr flow-loads` on a built mod: every event of the edited flows lists the flows it calls, no missing loads. - Default output against nightly 240af8b: 4 seeds (3 with default settings, 1 with the test settings below) generated and built with both executables. The seed files are identical and exactly the 2 files above differ, out of 443, 281, 280 and 281 files. - In the game, on the same change built on nightly 2746d25 (the code is the same, only comments differ), from the reporter's save with Forest, Fire and Water Medallions, the reporter's settings plus Skip the opening cutscenes, Skippable cutscenes set to all, Faster chests and 20 hearts: entering Kakariko from Death Mountain Trail and from Hyrule Field, Link moved and the scene ended 2 of 2 times. Nightly 2be61b8 froze in both entrances, 2 of 2 times. - In the game on this commit, in a scripted run with the same save and settings: entering Kakariko from Death Mountain Trail and from Hyrule Field, the map reached the burned village, the event ended and Link moved, 2 of 2 times. Not played by a person. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An adult Link who holds the Forest, Fire and Water Medallions and has not yet received the Sheik in Kakariko item froze on walking into Kakariko Village, from Death Mountain Trail or from Hyrule Field. The Nocturne of Shadow item scene ended, then an event kept playing and Link could not move. The story skip has no setting (it is always on), so every seed was affected.
Cause
patch_burninginstory_skip.rskeeps both map changes ofDm_SY_BancChangeArriveand turns the flashback'sEventTransition(Event50, timelineDm_Kakariko_0040) into a write of theHavePlayedEvent.Dm_Kakariko_0040flag. In the vanillaKakarikoVillage_FlashbackScenesboot that transition is the only step that waits for the loading fade and fades the screen in. With it gone, the second map change (Event379, toKakarikoVillage_Adult_Alternative, bootingKakarikoVillage_MelodyGet_Shadow) was never taken: the map stayedKakarikoVillage_Adultwith an event playing. The introducing commit is 1888f4e. Why the engine ignores the change without the wait is not established. The evidence is that it takes the change once the wait and fade-in are back.Change
After the flashback transition becomes the flag write,
patch_burningnow chainsUISystemActor.EventWaitCloseLoadingFadeandUISystemActor.EventEventFadeIn(length 1) in front ofEvent379, using the existingloading_waitandfade_inhelpers. Neither scene plays, as before. The fade-in is the same pair the song skip's boot event on this flow already uses. The testthe_real_burning_village_skips_both_scenes_and_keeps_both_loadsnow also asserts the order flag write, loading wait, fade-in, map change on the path from theFlashbackScenesentry.All changes are in
story_skip.rs, no hunk outside the story skip. Because the story skip is always on, every build carries this change: of the files a build writes,Event/EventFlow/Dm_SY_BancChangeArrive.bfevfl.zsand the resource size table (the flow grew) differ from nightly, nothing else.Checked
cargo test -p ootrr-core story_skip24 passed,settings114 passed,cargo test --workspace15, 1784, 52, 248, 77, 4, 1 and 247 passed, 0 failed.ootrr flow-loadson a built mod: every event of the edited flows lists the flows it calls, no missing loads.