Skip to content

Archipelago: give a received Ocarina through the get window - #146

Merged
REALAZK merged 1 commit into
nightlyfrom
fix/ap-ocarina-give
Nov 26, 2026
Merged

REALAZK merged 1 commit into
nightlyfrom
fix/ap-ocarina-give

Conversation

@REALAZK

@REALAZK REALAZK commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Fixes the crash reported on 0.9.0-nightly.20261125.18: receiving the Ocarina from Archipelago (Longshot) crashed the game, and so did giving it to yourself.

Cause: the mailbox gave a progressive Ocarina with GetInEvent_NotTurn_NotNpc, the item get where Link holds the item up. The Ocarina actors have no animation, so the hold up crashed. This is the same crash ocarina_hold already avoids in seed builds. Songs and a single Ocarina already used the get window. Only the progressive path went through the hold up.

Fix: a progressive Ocarina from another world now:

  • asks which Ocarina Link has (the usual progressive chain),
  • shows that tier in the get window (GetPouchContent / DisplayGetByActorName),
  • adds and equips it like Saria's gift (ocarina_hold::after), so the D-pad works at once.

No hold up, so no pickup packs are needed. Record::windowed() also makes the analyzed table list GetPouchContent for it.

Existing seeds: the Got flag is only set after the give finishes, so a player who crashed rebuilds the mod from the same .apootrr and the client gives the Ocarina again. The room does not change.

Tested: new test a_progressive_ocarina_is_shown_in_the_window_and_never_held_up, all ap:: tests (52 pass), progressive::tests, ocarina_hold, clippy clean on the changed files. Not tried in game.

🤖 Generated with Claude Code

The mailbox gave a progressive Ocarina from another world with the item
get that holds the item up. The Ocarina actors have no animation, so the
game crashed. Each Ocarina tier now shows the get window and is added
and equipped like Saria's gift, the same way a single Ocarina or a song
already was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@REALAZK
REALAZK merged commit e835d9d into 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.

1 participant