Tools
Run Python tools from the repository root. Normal client builds need only Make and the C toolchain; normal server builds need Go.
data/: current data extraction, shared database/YAML readers and Python tests. Installtools/requirements.txtinto a local virtual environment for these. Offline JSON catalogs belong in ignoredlocal/data/; reports go inlocal/reports/. Runtime terrain, zone links and map exports remain indata/as inputs tomake assets.client/test_portable_*.py: differential checks against Windows exports or the native 32-bit runtime. These require Windows, the local LLVM-MinGW toolchain, and the existing Ubuntu-26.04 WSL distro. They are not required to build on Debian.client/verify_game.py,game_smoke.js: bounded Windows launch plus in-game movement/menu/F12 capture checks. The JS is for the Computer Use Node session.client/verify_linux_game.py,linux_game_smoke.gdb.py: WSL game check with injected SDL input and framebuffer capture; 700 frames, inventory, map and movement. Run the Python wrapper from Windows; it preserves preferences and fixture users and checks the report. It runs fromanarchy-assets-14.9.1/, rejects Windows executable content and records successful and failed file opens. The wrapper requires GDB inside WSL. GPU readback permits worker threads to run; file tracing is paused during debugger-injected calls, so the file report has that bounded coverage gap.client/prepare_portable_assets.py: createsanarchy-assets-14.9.1/from an explicit list of data/configuration paths in the local Windows runtime. It refuses an existing destination and rejects executable content before copying. It is a one-time asset preparation step, not a build dependency.client/publish_wasm.py: publishes a completed browser build intoserver/assets/client/, with Brotli compression and build/file identities.make wasmruns this after the client build.client/package_runtime.py: copies the required portable assets fromanarchy-assets-14.9.1/and derived server data intoserver/assets/, and prepares HTTP checksums.make assetsruns it;make wasmincludes this step. Default builds read those files externally;-tags embedassetsembeds them.client/audit_linux_imports.gdb.py: queries the compiled resolver to refreshdocs/linux-import-coverage.json. An adapter being present does not imply every possible argument is implemented.client/audit_audio_assets.py: fully decodes the shipped WAVs using Linux libsndfile.client/audit_audio_imports.pyinventories the original modules' audio imports. See audio audit for findings and checks.client/build_game.py,export_*.py,generate_*.py,link_game.pyand their support files: reconstruction/provenance tools, not the normal build pipeline. They depend on local upstream checkouts and saved analysis inlocal/client/. Those inputs were discarded during workspace cleanup; reconstructing them is required before using these historical tools again. Never regenerate over editedclient/files.
Current checks
SDL_VIDEODRIVER=x11 make test
go test ./server
python -m unittest discover -s tools/data
The data tests require the local vanilla 14.9.1 client, which is not downloaded by the tests. The obsolete 11.0 comparison was removed with that installation. Graphics tests need a working desktop display.
Examples on Windows, after building both clients:
.\venv\Scripts\python.exe tools/client/test_portable_locale.py
.\venv\Scripts\python.exe tools/client/test_portable_crt_time.py
.\venv\Scripts\python.exe tools/client/verify_linux_game.py
Local smoke fixtures
The historical isolated Windows server path was
local/client/fonts/server-14.9.1/server.exe, run from its containing directory.
The WSL wrapper starts local/client/linux-server-probe/server itself. Both
use separate fixture data and ports 7510/7511/8081. They are preserved diagnostic
server builds that were discarded with local/; rebuild the isolated fixtures
before using these wrappers. The normal server is (cd server && go run .) on
the default ports.
Do not point these tests at the user's normal data/players/ directory.
With the isolated Windows server running:
.\venv\Scripts\python.exe tools/client/verify_game.py client/build/windows/game.exe anarchy-runtime-14.9.1
Wait at least 30 seconds, use the game's F12 capture and inspect the screenshot.
verify_game.py checks lifetime and records identity; surviving 120 seconds is
not by itself a visual pass. game_smoke.js provides input/capture helpers.
Reports are under local/client/game-14.9.1/ or local/client/linux-game-smoke/.
These ignored fixtures are deliberately omitted from the Debian rsync example;
use the normal server and manual smoke check there unless you copy them separately.
Reference data
tools/data/extract_playfields.py and extract_terrain.py use the original
11.0 reference in ignored local/references/original-11.0/Gamefiles.
That installation was discarded. These are provenance tools, not part of a
fresh setup. Required server data is already included in server/assets/.