aorecomp

Anarchy Online classic in the browser

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


client/README.md (3260B)


Maintained game source

This is the Anarchy Online 14.9.1 baseline: Clientr.exe and all 33 game DLLs, compiled into one executable. Generated C, platform adapters, metadata and build files belong in Git. Normal builds compile them directly and never regenerate them. Edit these sources in place.

The root Makefile delegates here. Makefile selects Makefile.windows on Windows and Makefile.linux on Linux. See the developer guide for exact dependency, build and launch commands. make clean removes only the current platform's output. Builds need no original game EXE/DLL, Python, decompiler, regeneration step, or PE image inputs.

Windows uses 32-bit clang from the locally downloaded LLVM-MinGW toolchain. Linux uses native GCC, SDL2, OpenGL, libsndfile, FreeType and Fontconfig. Keep -fno-strict-aliasing: the generated memory accesses rely on it. Do not reuse object files across systems or compiler settings; clean and rebuild.

Windows maps the retained guest layout at fixed addresses and uses native vendor DLLs. Linux translates guest addresses, executes translated vendor C, and uses Linux platform adapters. See CRT exception model, CRT stdio model, and VC6 string ABI.

The game still needs external assets. Linux uses anarchy-assets-14.9.1/, which contains only game data and configuration. Windows uses anarchy-runtime-14.9.1/, which also contains native vendor libraries. anarchy-vanilla-14.9.1/ is the local Windows reference for comparisons.

Validation and provenance

Run make test on Linux from a graphical desktop session. Windows/native comparison wrappers and in-game smoke checks are in tools/client; see tools/README.md. Keep test characters and preferences isolated from the user's server. The source-edit test temporarily modifies one generated function and restores it; run it only with other builds stopped.

The initial standalone validation established that assets and resources are sufficient without original game modules. The round-trip report records the initial compiler/runtime fixes and stock-client comparison.

Generation used pcrecomp commit 904ac3129d0c9d05efbeec19a1dce6abbe7f5d26 with local reconstruction fixes. translation.json records discovery and coverage counts. completion-audit.json identifies the original experiment, not later edited builds. Original generation evidence is kept locally under local/client/game-14.9.1/. export_game.py exports a separate local snapshot and refuses to overwrite it; it must never replace this maintained tree.

runtime/LICENSE.pcrecomp licenses the runtime, not the generated game code.