STS2 mod policy: only SpireLens + required prereqs (e.g. BaseLib) #74

Closed
opened 2026-04-24 19:24:20 -07:00 by nelsong6 · 2 comments
nelsong6 commented 2026-04-24 19:24:20 -07:00 (Migrated from github.com)

Policy

The Slay the Spire 2 install used for SpireLens dev should contain only:

  1. My own mods — currently just SpireLens.
  2. Required prerequisites for (1) — currently just 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:

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, plus modded\profile1 for 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 version v0.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

  1. Open <steam-install>\steamapps\common\Slay the Spire 2\mods\ and remove anything that isn't BaseLib\ or SpireLens\.
  2. Open %APPDATA%\SlayTheSpire2\ and remove any folder/file that isn't:
    • SpireLens\ (or another first-party folder)
    • Engine/game state: logs\, shader_cache\, steam\, vulkan\, default\, localization_override\, mod_configs\, sentry*, mods\ (can be empty)
  3. Launch the game. Log should read Loaded 2 mods (2 total) with BaseLib and SpireLens initializing cleanly.

Reference

  • Closed cleanup tracking: #72 (rename + Azure cleanup)
  • BaseLib pin: #70
## Policy The Slay the Spire 2 install used for SpireLens dev should contain only: 1. **My own mods** — currently just `SpireLens`. 2. **Required prerequisites** for (1) — currently just `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](https://github.com/nelsong6/spirelens/blob/main/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`, plus `modded\profile1` for 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 version `v0.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 1. Open `<steam-install>\steamapps\common\Slay the Spire 2\mods\` and remove anything that isn't `BaseLib\` or `SpireLens\`. 2. Open `%APPDATA%\SlayTheSpire2\` and remove any folder/file that isn't: - `SpireLens\` (or another first-party folder) - Engine/game state: `logs\`, `shader_cache\`, `steam\`, `vulkan\`, `default\`, `localization_override\`, `mod_configs\`, `sentry*`, `mods\` (can be empty) 3. Launch the game. Log should read `Loaded 2 mods (2 total)` with `BaseLib` and `SpireLens` initializing cleanly. ## Reference - Closed cleanup tracking: #72 (rename + Azure cleanup) - BaseLib pin: #70
nelsong6 commented 2026-04-24 20:19:54 -07:00 (Migrated from github.com)

Update — tooling prereq added (SpireLensMcp)

The original policy excluded all third-party mods. After the first attempt to dispatch the issue-agent workflow 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 removed CombatManager.IsPlayPhase and changed Creature.CombatState to return ICombatState).

Updated expected state

<steam-install>\mods\ should now contain exactly:

  • BaseLib\ (Alchyr, gameplay framework)
  • SpireLens\ (our mod)
  • SpireLensMcp\ (our forked MCP bridge — built from D:\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

SpireLensMcp exposes http://localhost:15526/ (HTTP, not raw TCP — the old 21337/27020 numbers in earlier docs referred to a different bridge implementation that was never actually installed). The restart-sts2.ps1 readiness probe now hits this endpoint via #75.

## Update — tooling prereq added (SpireLensMcp) The original policy excluded all third-party mods. After the first attempt to dispatch the `issue-agent` workflow 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`](https://github.com/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 removed `CombatManager.IsPlayPhase` and changed `Creature.CombatState` to return `ICombatState`). ## Updated expected state **`<steam-install>\mods\`** should now contain exactly: - `BaseLib\` (Alchyr, gameplay framework) - `SpireLens\` (our mod) - `SpireLensMcp\` (our forked MCP bridge — built from `D:\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 `SpireLensMcp` exposes `http://localhost:15526/` (HTTP, not raw TCP — the old `21337/27020` numbers in earlier docs referred to a different bridge implementation that was never actually installed). The `restart-sts2.ps1` readiness probe now hits this endpoint via #75.
nelsong6 commented 2026-07-05 15:45:36 -07:00 (Migrated from github.com)

Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.

Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens#74
No description provided.