Skip to content
eriknihlenPublic

About

Open-source Asheron's Call client in Rust. The original game's behavior, a maintained codebase, a plugin API.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

25 stars

Watchers

1 watching

Forks

Repository files navigation

OpenAC

OpenAC

An open-source Asheron's Call client in Rust.
The original game's behavior, in a codebase built to be worked on.

CI Latest release License: MIT Rust 1.95 Discussions Join Discord

Downloads Stars Contributors Last commit Platforms

The C# client is retired. Its last release is v0.1.33 and its code is on the deprecated branch. This repository now holds the Rust client below.

What is OpenAC

OpenAC is an open-source Asheron's Call client in Rust: the same behavior as the original game, in modern Rust.

  • One program, many sessions. openac runs any number of game sessions in one process, with zero or more windows. A window can open onto any running session and close again without the session noticing; a session without a window keeps playing headless.
  • Renders with wgpu (Direct3D 12, Vulkan or Metal) in a winit window, with the original game's own interface rebuilt from its data files.
  • Talks to ACEmulator servers over the game's wire protocol.
  • Plugins are WebAssembly. A plugin is an ordinary Rust crate built for wasm32-unknown-unknown; the same plugin runs with or without a window, sandboxed, with the permissions it declares.
  • A launcher (openac-launcher) keeps your accounts, characters and servers (and imports them from the Thwarg launcher), starts sessions graphical or headless, keeps checked clients running (it starts them when it opens and after a crash), runs each character's logon commands, and installs and updates plugins.

OpenAC does not ship any game data. You supply your own data files.

Status

OpenAC is under active development and covers nearly all of the game: login and character selection, the streamed world with its terrain, buildings and dungeons, movement and collision, combat and magic, inventory, vendors and trade, chat, the original interface, audio, the WebAssembly plugin host, and the launcher. Expect bugs; reports are welcome.

Platforms. Windows 10 and 11 (64-bit) is where it is played most. Linux (64-bit, X11 or Wayland) builds and runs, with less time in front of players. macOS (macOS 14 or later) runs on Metal on Apple silicon; it is the newest platform. Intel Macs get a build from 0.2.0 on. It is built on Apple silicon, and its release checks run it through Rosetta when the build machine has it; nobody has tested it on an Intel Mac yet.

Found a bug? Open a GitHub issue with the version, what you did, what happened, and a screenshot if you can.

Download

The documentation site has the player guide, the plugin guide and the release notes.

Download the launcher; it fetches the client. Take the launcher for your platform from the latest release, unzip it anywhere and run it:

Platform Download Run
Windows launcher-win-x64.zip openac-launcher.exe
Linux launcher-linux-x64.zip ./openac-launcher
macOS (Apple silicon) OpenAC-<version>-osx-arm64.zip OpenAC.app
macOS (Intel) OpenAC-<version>-osx-x64.zip OpenAC.app

On first start the launcher asks for your game data folder, then offers the game client ("A new version of the game is available": Review update) and installs it; from then on it keeps itself and the client up to date. On macOS the launcher and the client come together in OpenAC.app; move it to Applications and open it. The app is signed ad hoc, not with an Apple Developer ID, so macOS blocks the first start of a downloaded copy: allow it under System Settings, Privacy & Security ("Open Anyway").

Coming from another launcher? The launcher imports your accounts, servers, characters, profiles and logon commands from the Thwarg launcher (Import from Thwarg launcher…, beside Logon commands), and, once MossTank is installed, your VirindiTank and UtilityBelt settings and profiles (Import VTank & UB…).

You will need:

  • A GPU and driver with Direct3D 12 (Windows) or Vulkan (Windows or Linux); on macOS, Metal (every Mac that runs macOS 14).
  • Your own Asheron's Call data files (client_portal.dat, client_cell_1.dat, client_local_English.dat; client_highres.dat is optional and used when present). The launcher asks for their folder on first run; openac looks in Documents\Asheron's Call under your user profile unless --dat-dir or OPENAC_DAT_DIR names another.
  • A server to connect to. OpenAC speaks ACEmulator's protocol; a local ACE server works well for trying it out.

Build from source

Install Rust with rustup. The repository's rust-toolchain.toml pins Rust 1.95.0 with rustfmt, clippy and the wasm32-unknown-unknown target, and rustup installs them on the first build.

A C compiler is needed too (the plugin engine compiles two small C files): on Windows the Visual Studio Build Tools ("Desktop development with C++"), on Linux your distribution's compiler, on macOS the Xcode command-line tools (xcode-select --install). Linux also needs the OpenSSL and ALSA development headers and pkg-config; on Debian or Ubuntu:

sudo apt install build-essential pkg-config libssl-dev libasound2-dev

Then:

git clone https://github.com/eriknihlen/OpenAC.git
cd OpenAC
cargo build --release

The programs land in target/release/: openac (the client), openac-launcher (the launcher), actool (a data-file inspector) and plugincheck (the plugin validator); on macOS, scripts/bundle-macos.sh builds the launcher and the client into OpenAC.app. Run the launcher, or the client on its own:

# The password comes only from the environment.
export OPENAC_PASSWORD='...'
./target/release/openac --server 127.0.0.1:9000 --account myaccount --character "My Character"

Type /window in its console to open a game window on the session and /close to close it again; --headless runs without any window support. openac run --config <file> runs several sessions from one configuration document. content/docs/building-and-running.md walks through it, and content/docs/launch-options.md lists every option and environment variable.

Before sending a change, run the same check CI runs:

scripts/check.sh                               # Linux, macOS
pwsh -NoProfile -File scripts/check.ps1        # Windows

It runs cargo fmt --check, cargo clippy -D warnings, a WebAssembly build of the plugin crates, and the tests. Tests that read the real game data files run too when the files are found.

Plugins

Plugins are WebAssembly modules. You write one as a Rust crate against the openac-plugin SDK (crates/openac-plugin, MIT), build it for wasm32-unknown-unknown, and test its logic natively with the SDK's fake host. A plugin declares what it needs beyond the basics (chat, network, listening sockets, the shared profiles folder, the clipboard) in its plugin.json, and the client enforces it: a plugin can call only what its permissions allow, within a memory cap and a time limit per call.

plugincheck tells you whether the launcher would install your plugin, using the launcher's own rules, and plugincheck pack writes its release assets. Plugins are published as GitHub releases tagged wasm-v<version> and can be listed in the launcher's Discover panel. content/docs/plugin-development.md walks the whole path.

AI-assisted development

This is a heavily AI-assisted project, and it says so openly. Most of the code was written by AI tools working under the maintainer's direction and supervision. What every change has to pass is the same gate: it is formatted, it passes clippy with warnings as errors, it passes the test suite, and it behaves like the original game when the maintainer plays it. The person who merges a change answers for it.

AI-assisted contributions are welcome on exactly those terms: submit changes you understand, that pass the check, and that you can explain in the pull request.

Contributing

  • Read CONTRIBUTING.md for the ground rules.
  • File bugs and feature requests in Issues.
  • Fork it. The MIT license means you never need permission.

Acknowledgements

OpenAC stands on the work of the Asheron's Call preservation community: ACEmulator for the server and protocol, DatReaderWriter, WorldBuilder and Chorizite for the data-file and rendering foundation, ACViewer for the viewer that answered many rendering questions, holtburger for a working reference of client behavior, and Virindi, whose VirindiTank defined what an Asheron's Call automation plugin should be. Rendering goes through wgpu, windowing through winit, and plugins run on Wasmtime.

License

OpenAC is released under the MIT License. Third-party notices are in NOTICE.md.

Asheron's Call and all associated names, art, and data files are the property of their respective owners. This project distributes no game assets and is not affiliated with Microsoft, Turbine, or Warner Bros. Entertainment.

From Sweden with love 🇸🇪

About

Open-source Asheron's Call client in Rust. The original game's behavior, a maintained codebase, a plugin API.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

25 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages