Repository navigation
SGL 2026 preset update and altar Ganon BK hint with vanilla LACS crash - #2631
Merged
Merged
Conversation
…of beatable only.
build_ganon_boss_key_string read verb_singular/verb_plural on the
shuffle_ganon_bosskey == on_lacs path, but the lacs_condition == vanilla
branch only assigned item_req_string and count, raising UnboundLocalError.
Bind the verbs from the ganon_medallions hint text, matching the Shadow
and Spirit Medallions the vanilla condition requires.
The English ganon_lacs_bk string also referenced {item_req_string} while
the call site passes item_req, which would have raised KeyError once the
verb error was fixed. Japanese and the sibling ganon_grant_bk string
already use {item_req}.
Only the SGL 2026 preset combines on_lacs, vanilla LACS and altar misc
hints, so it was the only preset that hit this.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
cjohnson57
approved these changes
Sep 13, 2026
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.
SGL 2026 is going back to using all locations reachable instead of beatable only. When switching back, I discovered a localization crash that only affects the SGL preset.
Generation crashes during ROM patching for any settings combination that uses Ganon's Boss Key on LACS with the vanilla LACS condition (Shadow + Spirit Medallions) while the Temple of Time Altar misc hint is enabled:
Two separate problems on the same code path, both introduced by the localization refactor in 56b5047:
build_ganon_boss_key_string()unpacksverb_singular/verb_pluralin the non-vanillalacs_conditionbranch, but thevanillabranch assigns onlyitem_req_stringandcount. Both branches then fall through to the sharedhint_text.ganon_lacs_bklookup, which reads the verbs — so the vanilla path raisesUnboundLocalError. Fixed by binding the verbs from theganon_medallionshint text, which matches the Shadow and Spirit Medallions that the vanilla condition actually requires, and keeps the strings translatable rather than hardcoding "is"/"are".The English
ganon_lacs_bkstring references{item_req_string}, but the call site passesitem_req.Language._resolve_externalindexes the externals dict directly, so this would have raisedKeyErroras soon as the first bug was fixed. The Japanese string and the siblingganon_grant_bkstring both already use{item_req}, so this is just a typo in the one English entry. Fixed indata/lang/property_build.pyand the generateddata/lang/English/property.json.The rendered text is unchanged from the pre-refactor behavior:
provided by Zelda once the #Shadow and Spirit Medallions# are retrieved.No preset shipped in
presets_default.jsonon Dev hits this combination, which is why it went unnoticed — it was found via the SGL tournament preset that does.Testing
shuffle_ganon_bosskey: on_lacs+lacs_condition: vanilla+altarinmisc_hints; confirmed it is deterministic and seed-independent.{verb}.Unittest.TestLanguageFilepasses, covering key parity betweenproperty_build.pyand the per-languageproperty.jsonfiles.