aorecomp

Anarchy Online classic in the browser

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


commit a2a499a836aa1601419d8d0b9c082d9a63b599d2
parent ff2e870b1e2d7f32feaaf4f09bfbe9b148381501
Author: anon <anon@example.com>
Date:   Wed, 21 Oct 2026 04:28:24 +0000

Organize the README around playing, hosting and development

Diffstat:
MREADME.md | 99+++++++++++++++++++++++++++++++++++++++----------------------------------------
1 file changed, 49 insertions(+), 50 deletions(-)

diff --git a/README.md b/README.md @@ -1,74 +1,73 @@ # Anarchy Online 14.9.1 -A reconstructed C game client for browsers, Windows and Linux, with a Go game -server. Static resources and game definitions are embedded into a single server -binary. +A WebAssembly reconstruction of Anarchy Online 14.9.1, with added mobile touch +controls and a lightweight Go server. Play in your browser, run your own server, +or change the game. -## Build and run +## 1. Play now -Requires Go 1.24+. A matching browser client is checked in under -`server/assets/client/`; no WASM build or C toolchain is needed. +[Play ao](/share/demo/) in your browser. No installation is needed. +The first load can take a few minutes. -```sh -go build -o ao-server ./server -./ao-server -``` +The [control panel](/share/demo/control) lets you create and edit +characters, teleport, and change the time of day. + +## 2. Run your own server -Open [localhost:8080](http://localhost:8080/). For phones and other devices, use -`https://<server-address>:8443/` and trust the generated certificate. +Download the server for your machine. Each binary includes the browser client +and game resources; no build tools are needed. + +- [Windows x64](/share/demo/repo/releases/aoserver-latest-windows-amd64.exe) +- [Linux x64](/share/demo/repo/releases/aoserver-latest-linux-amd64) +- [Linux ARM64](/share/demo/repo/releases/aoserver-latest-linux-arm64) +- [macOS Intel](/share/demo/repo/releases/aoserver-latest-macos-amd64) +- [macOS Apple Silicon](/share/demo/repo/releases/aoserver-latest-macos-arm64) -Distribute the binary by itself. Runtime state lives in `data/`; logs and profiles -live in `logs/`. +Run the downloaded file from a writable directory. On Linux and macOS, first +make it executable with `chmod +x <filename>`, then run `./<filename>`. +On Windows, run the `.exe`. -## Shared demo and downloads +Keep the server running and open [localhost:8080](http://localhost:8080/) to play, +or [localhost:8080/control](http://localhost:8080/control) for the control panel. +See the [server setup guide](DEVELOPERS.md#server-build-and-operation) for access +from other devices. Saved characters live in `data/`; logs live in `logs/`. -[Play the demo](/share/demo/) or open its -[server controls](/share/demo/control). -Both are available without authentication. -[Browse the source and history](/share/demo/repo/), -or clone and run your own server: +## 3. Change the server and game logic + +Install Go 1.24 or newer, then clone and run: ```sh -git clone https://<demo-host>/share/demo/repo.git ao +git clone https://<game-host>/share/demo/repo.git ao cd ao go run ./server ``` -Prebuilt servers include the browser client and all static resources. Download -one, make it executable on Linux/macOS, and run it from a writable directory: +Edit Go code in `server/` and game definitions in `server/gamedata/`, then restart +the server to apply your changes. The compiled browser client is included, so +you do not need a WASM toolchain for server-side work. -- [Windows x64](/share/demo/repo/releases/aoserver-latest-windows-amd64.exe) -- [Linux x64](/share/demo/repo/releases/aoserver-latest-linux-amd64) -- [Linux ARM64](/share/demo/repo/releases/aoserver-latest-linux-arm64) -- [macOS Intel](/share/demo/repo/releases/aoserver-latest-macos-amd64) -- [macOS Apple Silicon](/share/demo/repo/releases/aoserver-latest-macos-arm64) +You can also [browse the source and history](/share/demo/repo/). -[Published commit](/share/demo/repo/releases/commit.txt). +## 4. Change the client -Behind a reverse proxy, pass the public URL path, including its trailing slash: +Clone the repository as above. Client sources and browser controls live in +`client/`. Follow the [browser toolchain setup](DEVELOPERS.md#build-the-browser-client-on-debian), +then build and publish the WASM client: ```sh -./ao-server -base-url /share/demo/ +python3 tools/client/build_wasm_dependencies.py +make -C client -f Makefile.wasm -j8 +python3 tools/client/publish_wasm.py +go run ./server ``` -Have the proxy preserve that prefix and the Host header, forward WebSocket -upgrades, and serve trusted HTTPS. The server supplies the browser isolation -headers needed for shared WASM memory. - -## Repository overview - -```text -server/ Go server and game logic - gamedata/ Embedded YAML definitions, provenance and Go schemas - assets/ Embedded resources and browser bundle -client/ Reconstructed C client and platform runtimes -tools/ Build, extraction and validation tools -data/ Runtime state -logs/ Logs and browser profiles -local/ Ignored research and test output -docs/ Design, research and validation -``` +Publishing updates the browser files embedded in the Go server. Restart the +server after rebuilding and reload the game. The first client build takes +substantial time and several gigabytes of build space. -[Developer guide](DEVELOPERS.md): detailed setup, client builds and testing. +You can optionally build a native Linux or Windows client with `make` using the +[platform setup instructions](DEVELOPERS.md#native-clients). These clients have +been tested less recently and may have bugs that the WASM client does not. -[Documentation index](docs/README.md): architecture and research. +See the [developer guide](DEVELOPERS.md) for detailed builds and testing, and the +[documentation index](docs/README.md) for architecture and research.