aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


tools/README.md (5279B)


Tools

Run Python tools from the repository root. Normal client builds need only Make and the C toolchain; normal server builds need Go.

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/.