Standalone 14.9.1 source build
The editable client/ tree builds the game without any original game EXE
or DLL as a build or runtime input. The original client remains a reference for
the one-time extraction tools, not a dependency of normal compilation.
Source inputs
client/: the existing 556 mechanically translated game C files and dispatch table.data/: 35 C files containing initial globals, resources, import/export metadata, switch tables and C++ exception metadata.runtime/: the Windows host, generated-code runtime and native ABI bridge.Makefile: compiles those sources directly and linksbuild/game.exe.
There is no images/ input directory or PE loader. prepare_images.py and the
unused original-image/native-code execution facilities were removed from the
editable tree. Old image inputs and build outputs are archived outside it in
local/client/standalone-retired-*.
The compiled initializers contain 3,083,990 bytes of data before normal object and executable overhead. Their 35 C source files occupy 16,775,952 bytes. They are maintained in Git with the game source; normal Make builds neither extract nor regenerate them.
Code versus data
The extraction omits every executable section except positively identified data ranges. It does not preserve unknown gaps or merely rename a DLL as a resource file. DOS stub instructions are also omitted. Minimal PE-format metadata remains in memory for compatibility with imports, exports and Win32 resource APIs; that metadata is initialized from C and is not a loadable game DLL file.
Across all 34 game modules, the extraction audit records:
- 30,050 bytes of retained executable-section data.
- 379 switch-target references and 164 range-checked index references.
- 3,748 handler-to-FuncInfo mappings replacing runtime inspection of x86 stubs.
- No unresolved examined memory references.
- No discovered generated instruction addresses outside executable sections.
One nine-entry table at kkr.dll VA 0x360F6BF0 also had an incidental decode
in the generated code. The indexed jump, range check and nine known targets
identify its 36 bytes as data. The extractor records this overlap explicitly.
The static audit covers the examined references; application tests remain
necessary for behavior outside the exercised paths.
The runtime allocates zero-filled, non-executable address ranges, then copies only the compiled initial values. Old function addresses remain identifiers for dispatch and callbacks. No original game instructions are executed or needed at those addresses. Native Windows/DirectX, ACE, Miles Sound and other vendor libraries remain dependencies, as does the source-built x86 ABI bridge. This milestone does not establish Linux or WebAssembly portability.
Building and validation
From the repository root:
& .\toolchains\llvm-mingw-20261006-ucrt-x86_64\bin\mingw32-make.exe -j4
The compiler is clang 23.1.3, with -O2 -fno-strict-aliasing -fms-extensions.
The source build has 595 compilation units. It needs the compiler and Windows
SDK/runtime support supplied by LLVM-MinGW, but no Python or original game PE.
prepare_standalone_client.py creates anarchy-runtime-14.9.1 containing
copies of the ordinary game assets, configuration and vendor libraries. It
excludes all 34 original game modules and launcher/patcher game executables.
It refuses to overwrite an existing validation directory. Start the isolated
14.9.1 server, then launch:
python tools/client/verify_game.py client/build/windows/game.exe anarchy-runtime-14.9.1
Use game_smoke.js for movement and menu checks. While the rebuilt client is
running, audit_game_memory.py checks DEP, page permissions, loaded native
modules, and every byte of the original code-section address ranges: only
zeros and the specifically extracted data tables are allowed there.
The one-time provenance tools are export_standalone_data.py and
standalone_text_data.py. They inspect the reference binaries and existing
generated C, producing the checked-in initializers and data/extraction.json.
They are not part of the Make dependency graph and should not be run over
edited initializers during ordinary development.
Observed results
The clean build compiled all 595 units from source and linked successfully.
It began with four jobs and resumed with 16 after the in-flight jobs exited;
no old objects were copied into the new build directory. The final executable
SHA-256 is 84d107d675dc683680a5f661f06e3d653d0ce43775ec323330c01052bc55a2a2.
PID 26304, character 71, ran for 120.30 seconds from
anarchy-runtime-14.9.1, then the verifier intentionally terminated it.
The BB world rendered. Inventory and map opened and closed. The server
recorded movement from [960, 16.375, 510] to [955.625, 16.375, 505.625]
and received the stop event. The live memory audit passed all 34 modules:
DEP enabled, non-executable ranges, cleared original code sections except the
identified data tables, and no original game module in Windows' loader list.
The cleared-code audit examined 5,260,636 bytes across the original code sections.
The source-edit check then inserted a trace into the generated hr.dll entry,
rebuilt only that game compilation unit and relinked, and observed the trace
execute in PID 2176. This edited build rendered BB from the same standalone
folder and survived 120.27 seconds. The source, object and production executable
were restored byte-for-byte, including file timestamps. The modified EXE hash
was 528292c5e6f445898f3eace9227ad3cb846dfaa5ed1a4f940f3f9579c323b259.
All 50 original reference PE hashes remained unchanged.


The standalone executable is 244,739,584 bytes (233.40 MiB), with zero required game PE image files. The original 34 game modules totaled 9,154,560 bytes (8.73 MiB), making the standalone EXE 26.73 times that size. Shared external assets and vendor libraries are excluded from both figures.
Evidence: work/standalone-cold-build.log, work/standalone-export.log, and
work/game-14.9.1/{verification-26304.json,memory-audit-26304.json,smoke-26304.json}
under tools/client/. The server events are retained in
work/fonts/server-14.9.1/standalone-server.log.
The source-edit proof is work/game-14.9.1/source-edit-verification.json;
its native screenshot is smoke-2176-source-edit-world.png in that directory.