Skip to content

v0.1.0 — Initial Release

Choose a tag to compare

@nkhoit nkhoit released this 07 Mar 01:31
· 38 commits to main since this release
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.