From 5b57fc7af3858b548ea91d22adb8b9af214131d9 Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Mon, 21 Sep 2026 17:09:43 +0700 Subject: [PATCH] Add STS2MCP HTTP client and state capture tool sts2.py: thin client for the mod's localhost HTTP API, maps state_type -> legal actions (the action space), strict observe -> act once -> observe-again loop. capture.py: manual state snapshot tool for building facts.py. --- capture.py | 27 +++++++ sts2.py | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 254 insertions(+) create mode 100644 capture.py create mode 100644 sts2.py diff --git a/capture.py b/capture.py new file mode 100644 index 0000000..f1a15a9 --- /dev/null +++ b/capture.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 +"""Save game state snapshots to ./capture/