Skip to content

Releases

v0.1.3: Act 2/3 Support

Choose a tag to compare

@nkhoit nkhoit released this 08 Mar 04:37
8565092

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 of ForceClick() — map nodes have IsEnabled=false (read-only) during transitions
  • Timer resilience: ProcessFrame watchdog 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

Choose a tag to compare

@nkhoit nkhoit released this 07 Mar 06:06
3ad9ce5

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_select instead of event.

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

Choose a tag to compare

@nkhoit nkhoit released this 07 Mar 01:31
8112290

SpireBridge v0.1.0

WebSocket bridge mod for Slay the Spire 2 — programmatic game control for AI agents.

Install

  1. Download SpireBridge.dll below
  2. 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/
  3. Create the mods/ folder if it doesn't exist
  4. Launch the game — you should see RUNNING MODDED! — Loaded 1 mods in the log
  5. 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_actions on 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:38642

See README for full API docs.