STS2 mod policy: only SpireLens + required prereqs (e.g. BaseLib) #74
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#74
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?
Policy
The Slay the Spire 2 install used for SpireLens dev should contain only:
SpireLens.BaseLib(Harmony patching + node factories that SpireLens depends on).No third-party mods (debug tools, save managers, stats trackers, etc.) — even if useful — go in this install going forward. If a future SpireLens feature needs a new prereq, evaluate the dependency explicitly.
Why
Keeps the dev environment clean: any behavior I observe in the running game is attributable to my own code or a known framework dependency, not an unrelated third-party mod. Avoids confusion when reading logs or diffing save data.
Expected state
D:\SteamLibrary\steamapps\common\Slay the Spire 2\mods\should contain exactly:BaseLib\(currently 3.0.9, pinned in SpireLens.csproj)SpireLens\Game log on launch should report:
Loaded 2 mods (2 total).%APPDATA%\SlayTheSpire2\should contain only first-party SpireLens data (SpireLens\runs\) and Godot/game-engine state (logs\,shader_cache\,steam\,vulkan\,default\,localization_override\,mod_configs\,sentry*). No third-party mod data folders or stats JSONs.Cleanup performed on the NELSONPC laptop (2026-04-24)
Removed from Steam install:
mods\godotexplorer\— third-party debug/inspect mod, not a SpireLens prereq.Removed from
%APPDATA%\SlayTheSpire2\:mods\BetterSaves\— config + ~10MB of STS2 save-game backups under two Steam IDs (profile.save,profile1\saves,profile1\replays,settings.save, plusmodded\profile1for the second account). The mod itself was already uninstalled; only orphaned backups remained.CardStats\runs\— orphaned single-run JSON from a "CardStats" mod (distinct from the old "CardUtilityStats" which was renamed → SpireLens; that one was cleaned up in #72).slay-the-stats.json— orphaned aggregate stats from "SlayTheStats" mod, schema 5, last touched on game versionv0.98.0(older than current).The empty
%APPDATA%\SlayTheSpire2\mods\folder is left in place — harmless and the game writes there.To apply on another machine
<steam-install>\steamapps\common\Slay the Spire 2\mods\and remove anything that isn'tBaseLib\orSpireLens\.%APPDATA%\SlayTheSpire2\and remove any folder/file that isn't:SpireLens\(or another first-party folder)logs\,shader_cache\,steam\,vulkan\,default\,localization_override\,mod_configs\,sentry*,mods\(can be empty)Loaded 2 mods (2 total)withBaseLibandSpireLensinitializing cleanly.Reference
Update — tooling prereq added (SpireLensMcp)
The original policy excluded all third-party mods. After the first attempt to dispatch the
issue-agentworkflow on #56 failed because nothing was listening on the bridge port, we extended the policy: MCP bridge mods needed to validate SpireLens via the agentic flow are also allowed prereqs.Rather than depend on upstream
Gennadiyev/STS2MCP(which would have made us a downstream consumer for RL-specific extensions and any future game-API drift fixes), we vendored it under MIT into our own repo:nelsong6/spire-lens-mcp. The first commit is a near-pure rename + attribution pass; the second already has a real fork-cost fix (game v0.104.0 removedCombatManager.IsPlayPhaseand changedCreature.CombatStateto returnICombatState).Updated expected state
<steam-install>\mods\should now contain exactly:BaseLib\(Alchyr, gameplay framework)SpireLens\(our mod)SpireLensMcp\(our forked MCP bridge — built fromD:\repos\spire-lens-mcp\)Game log on launch should report:
Loaded 3 mods (3 total).%APPDATA%\SlayTheSpire2\unchanged from the original policy — only first-party SpireLens save data + engine state.Endpoint
SpireLensMcpexposeshttp://localhost:15526/(HTTP, not raw TCP — the old21337/27020numbers in earlier docs referred to a different bridge implementation that was never actually installed). Therestart-sts2.ps1readiness probe now hits this endpoint via #75.Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.