Repository navigation
Releases
Releases · nkhoit/SpireBridge
v0.1.3: Act 2/3 Support
What's New
Full Act 2 and Act 3 support — runs validated through all three acts with zero crashes.
Fixes
- Act 2+ map nodes: Map starts at row 1 (not row 0); scan first non-empty row for available nodes
- Map navigation: Use
TravelToMapCoord()via reflection instead ofForceClick()— map nodes haveIsEnabled=false(read-only) during transitions - Timer resilience:
ProcessFramewatchdog re-adds WebSocket timer if lost during act transition scene changes - Card select overlays: Auto-confirm retry for
NDeckCardSelectScreen(5 attempts at 0.5s) - Card descriptions: Improved template stripping for nested tags like
{IfUpgraded:show:{Damage}|{Alt}} - Shop resilience:
BuildShopState()wrapped in try/catch
Install
Drop SpireBridge.dll into your STS2 mods folder:
- macOS:
SlayTheSpire2.app/Contents/MacOS/mods/ - Windows:
Slay the Spire 2/mods/
Requires game restart (Cmd+Q / Alt+F4) to load new DLL.
v0.1.1 — Event Detection Fix
Fixed
- Event screen detection — events (including Neow) were incorrectly reported as
map. Event room check now runs before map check. - Event → card_select transitions — transform/remove/colorless card selections triggered by events (e.g. Neow) now correctly report
card_selectinstead ofevent.
Verified (14-test comprehensive suite)
All major flows passing: Neow events, combat, rewards, rest site (heal + smith), shop (buy), treasure (open chest), potion use/discard, death → game_over, start/abandon run.
v0.1.0 — Initial Release
SpireBridge v0.1.0
WebSocket bridge mod for Slay the Spire 2 — programmatic game control for AI agents.
Install
- Download
SpireBridge.dllbelow - Copy it to your game mods folder:
- macOS:
~/Library/Application Support/Steam/steamapps/common/Slay the Spire 2/SlayTheSpire2.app/Contents/MacOS/mods/ - Windows:
<Steam>/steamapps/common/Slay the Spire 2/mods/
- macOS:
- Create the
mods/folder if it doesn't exist - Launch the game — you should see
RUNNING MODDED! — Loaded 1 modsin the log - Connect via WebSocket:
ws://127.0.0.1:38642
Features
- Full game state via
get_state— cards, enemies, intents, powers, relics, potions, deck, map, everything available_actionson every response — agents always know what's valid- All screens: combat, map, events, rewards, card selection, shop, rest site, treasure, game over
- Card details: name, description, damage, block, cost, keywords (Exhaust/Ethereal/Retain/etc), X-cost flag
- Enemy intents: attack damage, hit count, buff/debuff types
- Shop: buy cards/relics/potions, card removal
- Reward descriptions: "Take 44 Gold", "Take Fire Potion potion", "Take Burning Blood relic"
- Push events: combat start, turn start, room changes — no polling needed
- Console cheats: godmode, kill, teleport, spawn items for testing
- Potion management: use (targeted + untargeted) and discard
- Run management: start/abandon with full menu navigation
- 6 characters: Ironclad, Silent, Defect, Regent, Necrobinder, Deprived
Quick Test
# Requires websocat (brew install websocat / cargo install websocat)
echo '{"action":"get_state"}' | websocat ws://127.0.0.1:38642See README for full API docs.