Repository contents and history
The repository includes the reconstructed client source, Go server, game resources and a compiled browser client. Downloads, reference installations, build products and private state stay outside Git.
Preserved source reference
The annotated tag ao-14.9.1-source-baseline preserves the first
standalone 14.9.1 C source commit. Its decompiled/data/extraction.json matches
all 34 module names and source SHA-256 identities in the maintained
client/data/extraction.json. The original source is under decompiled/src/ in
that commit; the maintained source is under client/game/ now.
For example, inspect an original function without changing the working tree:
git show ao-14.9.1-source-baseline:decompiled/src/bbr.dll/lifted-0057.c
Keep this tag when moving or hosting the repository.
History cleanup
Retired browser prototypes and the old work archive, including their earlier
filenames, are removed from branch, tag and local snapshot histories. Patch
installers and their inventory are kept only in ignored local/patches/.
The compiled snapshot under server/assets/client/ is intentional: it lets a
Go-only checkout run the game without building WASM.
History has been rewritten. Save local work before replacing an existing clone with a fresh clone; do not merge the old history back into the repository.
Clone and run
Clone the repository normally; the complete matching server/assets/client/
bundle is checked in. No WASM toolchain is needed for server work. Build with
go build -o ao-server ./server using Go 1.26 or newer, then launch it from
server/ with ../ao-server so it reads ./assets/. For a standalone release,
use go build -tags embedassets -o ao-server ./server and distribute that binary
by itself; the tagged binary can run from an empty directory. Open
http://127.0.0.1:8080/. The server listens on all interfaces; use its HTTPS
port from other machines.
Static resources are ordinary files read from ./assets/ by default and
embedded directly from server/assets with the embedassets build tag.
server/gamedata contains embedded YAML for NPCs, playfields, monsters,
items, map coordinates and their extraction provenance, plus Go schemas and loading code. The
resources include portable 14.9.1 playfields, audio, textures, fonts/configuration,
terrain, zone links and map images. Complete typed catalogs and evidence are
embedded from server/gamedata; ignored JSON files in local/data/ are optional
extraction candidates. Original executables,
support DLLs, saved users, logs and screenshots are excluded. No resource archive
or file splitting is used.
The binary serves static files directly, including HTTP byte ranges, without
unpacking them. Mutable world state goes to data/world.sqlite; certificates
stay in data/https/. Server logs go to logs/server.log; the
terminal shows startup, connections and errors. Browser profiles go to logs/profiles/.
Old unpacked assets and .runtime-bundle markers are no longer read by the
server. Restart after changing external resources or rebuild tagged binaries;
NPC code and embedded game-definition changes always need a rebuild.
go test ./server captures the external asset directory before fixtures change
to temporary state directories, away from saved characters. Manually compiled
test binaries must start in server/. Use go test -tags embedassets ./server
to check the standalone provider, including parity with disk resources.
Authored NPC population expectations are checked in
under server/testdata/; Python extraction tools are not required for Go tests.
Static resources occupy about 1.2 GB; default executables do not contain that
tree. Tagged executables and their build caches include it. Both providers keep
the small admin map script and server/gamedata catalogs compiled in.
Asset provider verification
The November 5 checks build both providers from the same checkout:
| Build | External default | embedassets |
|---|---|---|
| Server executable | 169,465,992 bytes | 1,341,335,264 bytes |
| Test executable | 193,785,048 bytes | 1,365,673,176 bytes |
go list reports only the small map.js application script as an embedded
input in the default assets package. The resource tree appears only with the
tag. Game-definition catalogs remain embedded in their own package; this
change makes no claim about full-suite runtime or catalog initialization cost.
The focused packaged-resource, browser-file/range/cache, resource-index and HTTP-mount tests pass under both builds. Tagged parity checks compare terrain, zone-link and database-index prefixes plus complete browser JS/WASM, page, manifest, version and database-range HTTP bodies against the external files. Only ETag and Last-Modified differ by design: disk uses modification metadata, while embedded files use content hashes. Their respective cache checks pass.
The actual tagged server starts in an empty temporary directory, serves the
browser page and exact database byte range, creates its private database and
certificates, and exits cleanly on SIGTERM without any external assets/.
The default provider also passes TestBrowserOptionsResize in 11.91 seconds:
native world loading and mouse interaction at all seven sizes, after test
fixtures have changed working directories. No browser errors were recorded.
go vet ./server and syntax checks for the adjusted sweep launchers pass.
Evidence is retained under local/external-assets/: default.log,
embedded.log, standalone.json, standalone.log, browser-external.log and
vet.log. All test processes are closed. The browser sweep explicitly opts
into embedding its build-overlay pages; the native sweep shares external
assets through a link in its isolated working directory.
Handoff verification
A separate normal clone with no toolchains/, client/build/, local game assets
or saved characters started with go run ./server. First-run verification and
extraction completed in about six seconds. The unpacked checkout, including Git,
occupied 3.7 GiB. The published page rendered Bronto Burger and opened inventory
and the world map. Its WASM response supplied gzip, application/wasm and the
required isolation headers.
An uncommitted scene-test page using the same published JS/WASM pair verified
a two-second forward hold: the server position changed from
[960, 16.375, 510] to [958.25, 16.375, 508.25], with the character connected.
The audio check recorded 5,509,120 PCM frames and peak amplitude 1. Browser
warning/error checks were empty. This is a Bronto Burger handoff check, not a
validation of all playfields.
The Go suite passed in that clone in 55.659 seconds using the checked-in NPC expectations. Running it concurrently with browser startup had exceeded an existing five-second socket deadline; the successful run used an idle browser. Test deadlines were not relaxed. Temporary test servers and browser tabs were stopped afterward.
Updating published files
make wasm -j8 builds dependencies and the client, then publishes the six
matching files to tracked server/assets/client/. Commit them together after
validation and restart the server (rebuild embedassets binaries).
build.json records the source revision, source digest,
compiler identity and output hashes. Edit client/runtime/ or client/browser/
and republish instead of editing generated JavaScript.
make assets invokes tools/client/package_runtime.py to copy the top-level
anarchy-assets-14.9.1/ resources and derived data/ inputs into server/assets/.
make wasm runs this preparation step before building the browser client.
Go-only builds use the prepared files and do not need the extraction tools.
The copy script excludes saved users and diagnostics, removes the
machine-specific GPU preference and generates per-file checksums for HTTP
cache validation. Go's embed mechanism rejects one original help filename
containing an apostrophe; the copy uses an underscore and records an alias so
HTTP listings and requests retain the original name. Commit the prepared static
resources and generated checksum metadata together.
NPC edits belong directly in server/gamedata/zones/zone_<playfield>.yaml. The extraction
generator writes candidates into local/reports/ for review, preserving maintained
YAML and Go behavior code. Use go run ./tools/data/export_gamedata to inspect all loaded game data
and provenance as JSON. Rebuild and restart to apply edits.