Skip to content

Kakariko Village no longer freezes Link when Sheik gives the Nocturne - #144

Merged
OruizGl merged 1 commit into
ootrando:nightlyfrom
deanrather:pr/sheik-kak
Nov 26, 2026
Merged

OruizGl merged 1 commit into
ootrando:nightlyfrom
deanrather:pr/sheik-kak

Conversation

@deanrather

Copy link
Copy Markdown
Contributor

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.

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>
@OruizGl
OruizGl merged commit 2347719 into ootrando:nightly Nov 26, 2026
2 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