[P0] STS2 update removed Hook.AfterTurnEnd — full compatibility verification pass #249
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens#249
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Priority: P0. Discovered during a codebase audit on 2026-07-02.
Problem
Steam shipped a Slay the Spire 2 update (game DLL
data_sts2_windows_x86_64/sts2.dlldated 2026-07-02 20:32) that removedHook.AfterTurnEnd. This broke the mod's build against the live game (CS0117: 'Hook' does not contain a definition for 'AfterTurnEnd').PR #248 unblocked the build (runtime
TargetMethods()lookup for the two block-window cleanup patches + per-class Harmony install isolation so one broken patch can't take down all tracking). But it did NOT verify runtime behaviour against the new game version — that needs an in-game launch, which the audit could not perform headless.What this issue covers
A full compatibility pass against the current STS2 version:
sts2.dll(seedocs/surviving-sts2-updates.md) and diff the hook/relic/command surface against the prior decompile.Patch install: N classes patched, M failed/skippedlog line added in PR #248 (CoreMain.Initialize) after a launch, and investigate everyfailed/skipped.Hook.AfterTurnEnd(renamed? folded intoAfterSideTurnEnd*?) and re-home the Orichalcum / Cloak Clasp block-window disarm so the cleanup fires again — or, better, fold it into the consuming-one-shot rework (see the attribution-window registry issue) so the disarm hook is no longer needed at all.lib/sts2.dllreference stub to the new version so CI/pod builds match the live game.Guardrail to add
A CI step (or the harness prepare phase) that fails loudly when the mod does not compile against the live game DLL, so a game update surfaces immediately instead of at deploy time.
Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.