Portable runtime assets
anarchy-assets-14.9.1/ is the portable client's working directory. It contains
data and configuration, not the Windows installation. Its unpacked form is
ignored by Git. The required server files are checked in under server/assets/.
Default builds read that directory externally; standalone embedassets builds
include it without unpacking files at startup.
See repository packaging for the current handoff.
tools/client/prepare_portable_assets.py creates it from an explicit allowlist
in anarchy-runtime-14.9.1/ and refuses to overwrite an existing directory.
The initial copy contains 4,042 files totaling 866,400,755 bytes:
- Resource database, world objects, shadows and occlusion data.
- GUI textures, font metrics, planet maps, help and tips.
- Music, sound effects, voices and sound-bank data.
- Game setup, two preference files, version identification and four Verdana fonts.
All playfields' data is retained; the bundle is not pruned to one scene. The database alone accounts for about 590 MB; removing launchers cannot make that disappear. The client creates additional preferences and diagnostic files while running.
The allowlist excludes intro.exe, DLLs, launcher/patcher data, installation
files, old logs and screenshots. It also excludes Miles plug-ins under
cd_image/sound/redist/: these are Windows PE binaries despite their .flt,
.asi and .m3d extensions. Preparation and the Linux smoke check inspect file
signatures as well as extensions. Fonts are installed through Fontconfig as
shown in the developer guide; Linux system libraries and GPU drivers remain normal
host dependencies.
Startup messages such as attach bbr.dll name modules compiled into the Linux
executable; they do not mean DLL files are being loaded.
Original validation method
tools/client/verify_linux_game.py runs the maintained executable from this
asset directory. The GDB harness records successful open/openat calls using
the kernel's actual descriptor paths, records failed opens separately, injects
movement/inventory/map input and captures six completed game frames. The wrapper
rejects Windows binary files in the asset directory and repository reads outside
that directory or the built executable. Inspect the recorded system paths too;
the repository-path assertion is not a general filesystem sandbox.
Tracing pauses around debugger-injected SDL/memory/framebuffer helper calls.
Other threads are held stopped except during GPU readback, when Mesa workers
must be allowed to run. File accesses during those helper calls are outside the
recorded set; the trace is not exhaustive over those intervals.
Captures read the backbuffer that was just copied to the primary surface, before desktop clipping. The harness verifies that the copy's destination is the surface being presented. This preserves the complete game image even when WSLg places part of the window outside the desktop; it does not validate the window manager's placement or clipping behavior.
For stronger isolation, the validation also copies the executable, assets,
scripts and isolated server fixture to a native /var/tmp directory, then uses
a private mount namespace to hide /mnt/c from the test. This does not change
the host's mounts or files. The copied Windows runtime is hidden as well.
The namespace launch, from the prepared native test root, is:
unshare --user --map-root-user --mount sh run-isolated.sh
The locally saved run-isolated.sh mounts empty temporary filesystems over
the Windows drive and copied Windows runtime, checks they are inaccessible,
and invokes python3 tools/client/verify_linux_game.py. The ordinary harness
and its required isolated server fixtures are described in tools/README.md.
Native filesystem testing exposed an existing case-sensitivity bug. The Linux
adapters now share client/runtime/linux_path.c, which converts separators and
resolves existing mixed-case path components without renaming the assets.
Public API tests cover opening an uppercase spelling, appending through a
different spelling and creating a child under a differently cased parent.
These cases are compared with the Windows APIs/CRT on disposable files.
The Linux launch must also set ANARCHY_CD=cd_image, alongside the existing
setup/root variables. Without it some GUI lookups searched textures/ in the
working directory instead of cd_image/textures/. The README and harness now
supply it explicitly.
Validated checkpoint: 2026-10-16
The clean Windows build completed and passed the 120-second Bronto Burger
movement/inventory/map test. The Linux build completed from freshly compiled
objects; one empty object left by an interrupted compile was rebuilt before
the successful link. Both build systems reported no pending rebuild afterward.
Compilers were LLVM-MinGW clang 23.1.3 (LLVM commit
0d261d1ca552c95a8f007e061c787ac7132fbcbc) and native GCC 15.2.0.
| Executable | Bytes | SHA-256 |
|---|---|---|
client/build/windows/game.exe |
244718592 | a6280149aca9c6bcdf6b30c9905858c3808d4257b23b6810108642b42c25f80b |
client/build/linux/game |
448824232 | b7750b38af6c04cb4eb7eec1bfc26c5ae36d1d942971360df219df6facfd7286 |
The isolated Linux run used ext4 under /var/tmp, with /mnt/c and the copied
Windows runtime hidden. It completed 700 frames and 670 SetCursor calls.
The server recorded movement from [960, 16.375, 510] to
[954.75, 16.375, 504.75]. All six captures were visually inspected: the textured
world, inventory opening/closing, map opening/closing, and changed position were
visible. The first-use inventory help panel also rendered correctly.
The file audit recorded 301 distinct successful paths, with no Windows
executable/plug-in opens and no /mnt/c access. Other accesses were Linux
libraries, GPU/audio services, fonts/configuration and the adapter's temporary
synchronization files. Local evidence is in local/client/linux-assets-smoke/,
including the launch script, logs, file lists, report and six PNGs. Windows
evidence is in local/windows-layout-verification.json and
local/windows-layout-moved.png.
A second 700-frame run used the normal README working directory on /mnt/c,
starting with the fresh 4,042-file bundle. It also passed the file audit, menu
sequence and movement check ([960, 16.375, 510] to
[953.625, 16.375, 503.625]). Its baseline and moved frames were inspected.
Evidence is in local/client/linux-game-smoke/ and
local/linux-assets-normal-run.log. Test servers and clients were stopped, and
the wrapper restored the initial preferences and removed its diagnostic files.
All 61 native regression programs, the Go server suite and 18 Python data tests passed. Windows/Linux comparisons also passed for filename handling, directory creation, CRT file writing, locale and the portable runtime/linecrypt cases. The refreshed import audit remains 596 bound symbols: 284 adapters and 312 unimplemented symbols. This does not establish coverage of all possible game actions. Native Debian hardware, macOS and WASM have not been tested here.
The subsequent audio audit records the newer Linux build, another successful 700-frame test, and the updated import coverage. The Windows executable is unchanged from the checkpoint above.