Skip to content

Archipelago: songs no longer send their own spot, keys can go to other worlds - #135

Merged
REALAZK merged 1 commit into
nightlyfrom
fix/ap-songs-keys
Nov 25, 2026
Merged

REALAZK merged 1 commit into
nightlyfrom
fix/ap-songs-keys

Conversation

@REALAZK

@REALAZK REALAZK commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Two Archipelago fixes from the first rooms (reported in nightly-discussion and the key report).

1. Getting a song sent that song's own check. Song, Sheik, NPC gift and boss reward checks were detected through HavePlayedGetEvent.<item>, a flag the game sets whenever that item's get plays, wherever it came from. A Song of Time received from another world sent "Song from Ocarina of Time", and a gift spot holding another item never sent its check at all.

  • Item get flags no longer count as a location's detection (ap::export::location_flag). Those 85 spots now hold only the slot's own items, which the game gives as usual, until they get a flag of their own.
  • The client also drops those flags from the slot data of rooms generated before this.

2. Keys were always in the player's own world. Dungeon items were refused by the mailbox and marked local.

  • With Small Keys, Boss Keys, Ganon's Boss Key or Maps and Compasses set to Anywhere, they now go into the shared pool.
  • A received one is handed over with the get window, then the credit a credited chest makes (gift_keys::credit: the dungeon's key count and flags, then the line naming the dungeon). The build stages those dungeon lines for received items too.
  • Hideout keys and key rings stay local.

Tested

  • Core ap:: tests (47, with new ones for key records, key locality and detection), slice::edit and gift_keys.
  • A keysanity room with five of Link's keys in another world: generates, ap-build succeeds, the built Dm_SY_GetInEvent holds window, credit and dungeon line for each key, the dungeon lines are in the mod's text, and the server test hands over 6 of 6.
  • The 15-room preset sweep generates.
  • Not checked in game.

🤖 Generated with Claude Code

…r worlds

Song and NPC gift checks were seen through HavePlayedGetEvent.<item>,
which the game sets whenever that item's get plays, wherever it came from.
A Song of Time from another world sent "Song from Ocarina of Time", and a
gift spot holding another item never sent its check. Item get flags no
longer count as a location's detection, so those 85 spots hold own items
only, and the client drops them from older rooms' slot data too.

Dungeon items set to Anywhere now go into the shared pool. The mailbox
hands a received small key, boss key, map or compass over with the get
window and the credit a credited chest makes (crate::gift_keys::credit),
and the build stages the dungeon lines those items name. Hideout keys and
key rings stay local.

Tested: core ap:: (47), slice::edit and gift_keys tests, a keysanity room
with five keys in another world builds (give flow and dungeon lines
checked in the built mod) and passes the server test 6 of 6, and the
15-room preset sweep generates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@REALAZK
REALAZK merged commit 2746d25 into nightly Nov 25, 2026
1 check 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