OpenAC

Launch options

Every command-line flag and environment variable the programs read, with its default: openac (the client), openac-launcher (the launcher window), actool (dat and image tools) and plugincheck (the plugin checker). It also lists the files the client reads and writes, the console commands and the keys, because those are how a running client is driven.

Diagnostic options are off by default and change no behaviour beyond what they print or write. Options marked test-only are set by the test suite and never by players. A new option is documented here in the same change that adds it; crates/openac/tests/launch_options_census.rs fails when an OPENAC_* variable named in the sources is missing from this page.

Contents:

The client, one session

openac with these flags (or none) plays one session. For several sessions, or the launcher's way of starting a client, see the next section.

OptionBinaryDefaultMeaning
--dat-dir <path>actool, openacsee OPENAC_DAT_DIRThe folder holding client_portal.dat, client_cell_1.dat and client_local_English.dat, and client_highres.dat when the install has it (optional; when present, an object it holds is read from it rather than the portal dat). Wins over the environment variable. In openac it is the folder the game window reads (each window opens its own reader when it opens) and where the game tables every session shares are read once at start (spells, spell components and their item classes, each magic school's focus, skills); without them spells have no names, enchantments do not count and skills have no attribute part (a -- no game tables notice says why). openac run --config takes the document's process.content.datDirectory first, then the variable.
OPENAC_DAT_DIRactool, openac, the real-dat tests of ac-dat, ac-render and ac-audio, the ac-render and ac-audio examples, scripts/check.*%USERPROFILE%\Documents\Asheron's Call\ ($HOME/Documents/Asheron's Call/ when USERPROFILE is unset)The dat folder when no --dat-dir is given. The check scripts also run the real-dat tests (--include-ignored) when client_portal.dat is there.
--headlessopenacoffRun without any window support (no display needed). Without it the main thread runs the window host, and the console commands /window and /close open and close a game window on the running session.
--server <host:port> / OPENAC_SERVERopenac127.0.0.1:9000The login server; the connect port is this port + 1. The flag wins.
--account <name> / OPENAC_ACCOUNTopenacnone (required)The account name. The flag wins.
OPENAC_PASSWORDopenacnone (required in this form)The account password, from the environment only. A session-config document names a credential provider per session instead: an environment variable, standard input, or a file only its owner can read.
--character <name>openacnone: wait at character selectionThe character to enter the world with; the name match ignores case. Without it the session connects and waits at character selection: a window shows the connecting and selection screens, and the console's /enter [character] enters (headless too).
--duration <seconds>openacuntil Ctrl+CSeconds in the world before a graceful log off. Ctrl+C (and on Unix SIGTERM and SIGHUP) always logs off gracefully.
--log <level> / OPENAC_LOGopenacinfoerror, warn, info, debug or trace.
--landblock-radius <n> / OPENAC_LANDBLOCK_RADIUSopenacfrom the display settings (High: 4)See Graphics, streaming and sound. The flag wins; openac run --config reads only the variable.
OPENAC_DATA_DIR (one-session form)openacthe install rootThe data folder for /log files and journals in this form; it follows the same rules as in openac run (see the next section).
-h, --helpactool, openac—Print usage.
openac peer-hub <folder>openac—The peer hub the sessions on this computer share for plugin peers. A session starts it when a plugin first subscribes and no hub answers, at <folder> (the sessions' peer folder; a named pipe for the current user on Windows, a Unix socket in the folder elsewhere). One hub per user and folder (a second exits at once); it exits 15 s after its last client leaves. Not meant to be typed.
openac plugin-apiopenac—Print the plugin API versions this client loads, one line of JSON: {"schemaVersion":1,"minimum":"1.0","current":"1.14"}. Every release carries this output as plugin-api.json beside openac (in OpenAC.app, under Contents/Resources), and the launcher installs, updates and lists plugins by the installed client's file (a client released before the file, 0.2.3 and older, by its version; one without the file whose version is not such a release has an unknown range, and the launcher installs nothing for it). A client run beside a developer-built launcher has no file unless it is written there (openac plugin-api > plugin-api.json in that folder).

The client, session-config documents

openac --help
openac validate --config <path> [path overrides]
openac run --config <path> [path overrides] [console options] [credentials]
openac --session-config <path> [--console]

Every option except --console takes a non-blank value and appears at most once; an unknown option is refused (exit 2). validate loads and checks the document and resolves the folders without connecting, then prints Configuration valid: version 1, N session(s).

OptionBinaryDefaultMeaning
validate / runopenac—Check the document only, or run its sessions.
--config <path>openacnone (required)The session-config document (versioned strict JSON, below).
openac run --config <file> [--console] [--config-dir/--data-dir/--cache-dir <dir>] [--user <a> --password <p>]openac—Run every session in the document, each on its own thread. With window support (the default when a display exists) the console's /window [id] opens the game window on that session or moves it there (no id: the chosen session, as for /objects [id]; an id no session has prints no session is called <id>), and /close closes it; without window support (OPENAC_HEADLESS=1, or no display) /window prints no window support in this process .... /sessions, /session <id> (where unaddressed lines go; the first session at start), @<id> <line> (one line to one session, only when that id runs; otherwise @ lines are server commands), /objects [id], /time [id], /contracts [id], /journal [id] and /quit [id] also work, and every other line is chat for the chosen session (see console chat lines). With --console, chat prints on the console stream, each line behind [id] when several sessions run. Ctrl+C, Ctrl+Break, and on Unix SIGINT, SIGTERM and SIGHUP (a closed terminal, even under nohup) log every session off, then the process exits, with or without the console, and also when the reader of its output has gone (lines to a closed pipe are dropped). On Windows a process whose parent ignores Ctrl+C (one started in a new process group) never receives it; Ctrl+Break always arrives. Exit codes below (6 also when a session monitor failed).
openac validate --config <file>openac—Check a session-config document without connecting.
openac --session-config <file> [--console]openac—The launcher's windowed start: exactly the flag and the path, and optionally --console. It reads the document as a window does (exactly one session; the character may be absent, and then the session waits at character selection with the window showing the connecting and selection screens; policy is ignored; "mode": "probe" is refused), resolves the password from the provider it names (the launcher writes one line to standard input), opens the game window on the session at once, writes the session's statusFile as openac run does, and takes the dats from process.content.datDirectory, else OPENAC_DAT_DIR. Ctrl+C, Ctrl+Break, and on Unix SIGINT, SIGTERM and SIGHUP log the character off, then the process exits; so does closing the window (or the window failing). With --console (how the launcher starts it) the console reads typed lines as openac run --console does (/close closes the window and the session plays on, /window [id] opens it again, /quit logs off) and chat prints on standard error; then only a window that fails or that /close closes leaves the session playing headless, while the player closing the window still logs off and exits. Exit codes: 0 graceful, 2 usage, 3 configuration, 4 credential, 5 connection, 6 runtime or no window support.
--root-dir <path>openacsee OPENAC_ROOT_DIRThe whole install folder: settings in settings/, and data, plugins, logs and cache beneath it. Wins over process.paths.rootDirectory and replaces the document's whole folder set; the environment and the pointer file are not consulted. A member flag below still wins for its own member.
--config-dir <path>openacsee OPENAC_CONFIG_DIRThe settings folder (<root>/settings); wins over the document's process.paths.configDirectory. Credential files resolve against it.
--data-dir <path>openacsee OPENAC_DATA_DIRThe data folder, which is the install root itself (the prepared game content in game/, plugins in plugins/, each plugin's saved files in plugins/<id>/data, the shared VTank profiles in plugins/acdream.mosstank/vtank/, session folders, chat logs and crash reports in logs/). Wins over process.paths.dataDirectory.
--cache-dir <path>openacsee OPENAC_CACHE_DIRThe cache folder (<root>/cache: diagnostics, plugin peer notes, and plugin-modules, each plugin compiled to machine code, one file per plugin build and client build, named by their hashes; a damaged or stale file is ignored and rebuilt, and the folder is safe to delete: the next start compiles again). Wins over process.paths.cacheDirectory.
--consoleopenac runsee OPENAC_HEADLESS_CONSOLERead typed lines and print chat.
--console-stream <stdout|stderr>openac runsee OPENAC_HEADLESS_CONSOLE_STREAMWhere the console prints.
--user <account> / -user with --password <password> / -passwordopenac run—Direct credentials for a one-session document: both or neither; they replace the session's account and credential. The password is visible to other local users in the process list; prefer a credential provider.
OPENAC_ROOT_DIRopenac, openac-launcherthe pointer file, else %LOCALAPPDATA%\openac-rust on Windows, ~/Library/Application Support/openac-rust on macOS, $XDG_DATA_HOME/openac-rust (~/.local/share/openac-rust) elsewhereThe install root when no flag or document names one. The launcher sets it (and the three member variables) for every client it starts. The folder name differs from the retired C# client's (OpenAC) so the two programs never share an install.
root.json (pointer file)openac, openac-launcherabsent{ "version": 1, "root": "<absolute folder>" } in the default root names the install root when neither the command line, the document nor OPENAC_ROOT_DIR does. A pointer that cannot be understood is a configuration error (exit 3), never a silent fallback.
OPENAC_CONFIG_DIRopenac, openac-launcher<root>/settingsThe settings folder alone, when neither a flag nor the document names one; wins over OPENAC_ROOT_DIR for its member. Ignored under an explicit root. Blank counts as unset.
OPENAC_DATA_DIRopenac, openac-launcher<root>The data folder (the root itself) alone, with the same precedence.
OPENAC_CACHE_DIRopenac, openac-launcher<root>/cacheThe cache folder alone, with the same precedence.
OPENAC_HEADLESS_CONSOLEopenac runon when standard input is a terminal0 turns the console off, anything else on; --console always turns it on.
OPENAC_HEADLESS_CONSOLE_STREAMopenac runstderrstdout or stderr (any case); anything else is a configuration error (exit 3). --console-stream wins.
OPENAC_HEADLESSopenac rununset1 runs the document's sessions without window support. The launcher sets it only for a character refresh; its headless play sessions keep window support so their row can open a window. Without it, while no window is open the process holds only the window host's event loop (memory as with 1); the GPU device, window and world renderer are made by the first /window, and about 290 MB of them stays after that window closes.
OPENAC_STATUS_HEARTBEATopenac (both forms)unset1 makes each session write a heartbeat line to its status file every 10 s in which its loop made progress and, while the game window shows it, the window's event loop answered too (a minimized window still answers; a hung one does not). The launcher sets it for every client it starts and shows a client in the world that stays silent for 30 s as "Not responding". Unset, nothing is written, so a launcher that does not know the event never sees it.
OPENAC_CONSOLE_KINDSopenac (both forms, with the console)unset1 begins every console line a player would see with a mark of its kind: the record-separator character (U+001E) and one letter, c a line the main chat window shows (every line of a message the server broke into several), s the status box's text ([client] ...), t a line typed into the console (echoed, once, as typed), r the console's own answers (/sessions, usages), a confirmation for the player to answer, and the answers a session gives within 5 s of a line typed on its console (lists and views such as /objects, /time, /inv, /appraise of the player's own question, /corpses, /spells, /sheet, /where, the selection, the fellowship, the character list, a move's end, and refusals). The same events at any other time (a plugin's quiet identify, a command a plugin or bot policy ran) stay unmarked, as does everything else (the session's life, portal space, plugins, the window, diagnostics). The launcher sets it for every client it starts and strips the marks; a person reading the console in a terminal never sees one, but the lines of a launcher-started client's client.log (its session folder) may begin with U+001E and a kind letter.

Exit codes: 0 success, 2 usage, 3 configuration, 4 credential, 5 connection, 6 runtime.

The document

Version 1. Member names are case-sensitive; unknown or repeated members, comments and trailing commas are refused:

{
  "version": 1,
  "process": {
    "paths": { "rootDirectory": "...", "configDirectory": "...", "dataDirectory": "...", "cacheDirectory": "..." },
    "content": { "datDirectory": "C:\\AC", "preparedAssetPath": "C:\\AC\\openac.pak" }
  },
  "sessions": [
    {
      "id": "bot-1",
      "endpoint": { "host": "127.0.0.1", "port": 9000 },
      "account": "myaccount",
      "character": { "index": 0 },
      "policy": { "id": "idle" },
      "credential": { "provider": "environment", "reference": "OPENAC_BOT_PASSWORD" },
      "statusFile": "bot-1-status.jsonl"
    }
  ]
}
  • sessions[].character: exactly one of index (from 0), id (non-zero) or name. "mode": "probe" instead of character and policy connects, reads the character list and never enters the world.
  • sessions[].policy.id: idle (enter and stay), portal-route-smoke (an admin character: @teleloc to Aerlinthe, Caul and Rynthid, then a lifestone recall, each arrival in exactly its cell and followed by 4 s running, a 2 s right turn and 4 s running, then log off and exit 0; an arrival elsewhere ends the session as a failure, exit 6), lifecycle-smoke (enter, say a line, recall to the lifestone, wait for the arrival, reconnect, enter again, then log off and exit 0), observer-movement (an admin character: @teleloc to cell 0xF6820033, say a line, then turn right for 1.25 s and run for 4 s, over and over; never ends; a teleport that lands elsewhere logs it off with exit 6) or jump-probe (charge a jump for 0.6 s, release it, press jump again for 1 s once airborne, printing each airborne transition; logs off when done, or 3 s after a release that never left the ground); any other id is a configuration error (exit 3). The policy sees every session event, is stepped on the host's clock at least every 50 ms, and its commands carry the generation they were made in.
  • sessions[].credential.provider: environment (the variable named by reference), standardInput (one line per session, in document order) or file (relative to the config folder; on Unix readable only by its owner; never a symbolic link). The reference must be unique per provider.
  • sessions[].statusFile: one JSON line per session event (started, connected, characterList, enteredWorld, characterCreated, creationFailed, pluginLoaded, pluginFailed, loginCommandFailed, disconnected, exited), and, in addition to OpenAC's events, the game window on the session: windowOpened, windowClosed (reason: requested, closedByUser, renderFailed, shutdown) and windowFailed (error; a /window the client could not carry out, such as one without window support). Also added: heartbeat (the envelope only), written every 10 s while the session and its window make progress, only when OPENAC_STATUS_HEARTBEAT is 1 (the launcher sets it); and on exited, when a refusal from the server ended the session, serverMessage (the game's words for it) and accountInUse: true when it refused the login, before the session got in, saying the account or one of its characters is still logged on (an earlier session the server has not let go of yet; the same code in the world is a boot and does not count).
  • A server silent for more than 140 s is gone (not configurable). A session with no window attached at that moment writes disconnected with reason connection-lost and logs in again every 30 s, entering its configured character as at start, until an attempt gets back in (each failure prints a notice; an account without that character ends the session); its plugins hear the log off, then the next login. A session a window shows ends instead (disconnected with the reason, exit 5). While it waits, /quit ends it and /window is kept for the next connection; other requests are refused.
  • sessions[].characterOptions: declarable option names (the 26 that can be declared: what the character accepts, fight options, chat rooms) to true or false. Once the server has sent the character's options and login complete is out, each option that differs is changed as the options panel would change it (an option the game saves at once, at once; the rest with one block save after); undeclared options are left alone. A reconnect checks again.
  • sessions[].loginCommands: lines typed into the chat box after entering the world (chat, client commands, @ server commands, the client's own verbs such as /nav). The first goes once the server is listening (login complete sent) and the session's plugins have heard the arrival and ticked once since; each next one loginCommandDelayMs (default 500) after the last; every new generation runs the list again. A line the chat box cannot route writes a loginCommandFailed status line and the list goes on.
  • plugins, pluginTags, pluginSettings: see Plugins.
  • sessions[].remote (optional): a relay the session offers itself to, so it can be shown and played somewhere else: { "url": "wss://…", "enabled": true, "credential": { "provider": …, "reference": … } }. The client dials out to url (a wss:// address; ws:// only for this computer) and keeps the link open; the credential names where the session's token for the relay comes from, read as the login credential is, so the token is never in the document. enabled (optional, default true) set to false keeps the block without connecting. Without the member, and without a setting made with /remoteac (below), nothing connects anywhere. A relay can never stop a session: an address or token that cannot be used, a relay that is down, a lost link or a closed remote window leave the session playing, with a line on the console when the endpoint could not start. A remote window that takes control loses it after a second without input, and the movement keys are let go. Not started for mode: "probe".
  • /remoteac, typed in the chat box, on the console or as a login command, sets the remote window while the session runs; it never reaches the server, the plugins or the chat. /remoteac url "<wss url>" sets the address (the same rules as url), /remoteac secret "<token>" the token (answered secret set only, never recalled with the up arrow, and starred out in the draft an attached browser sees while it is typed), /remoteac enable and /remoteac disable connect and leave (a browser attached is let go; the address and token are kept), and /remoteac status says whether it is on, the address, the link (connected, refused or trying again) and whether a browser is attached, never the token. A session whose document has a remote block keeps the settings in that block. Every other session keeps them in the settings folder, since the launcher writes a new document for every start: the address and the token are the install's, shared by all its sessions (<config>/remote/relay.json, which holds where the token is, never the token, and the token in <config>/remote/relay.token, readable only by its owner on Unix), so they are set once on any client and every other client of the install uses them from its next command; whether a session connects is its own (<config>/remote/<server>/<account>/<character>.json), so /remoteac enable is typed on each one that should connect. Turned on in the middle of a session, a browser sees the world from that point on.
  • process.content.preparedAssetPath and the overlay members are parsed and checked but not used: this client reads the dats directly and has no prepared asset package.
  • A window started on a document (openac --session-config) requires exactly one session, allows the character to be absent, ignores policy and refuses "mode": "probe".

Folders and files

OptionBinaryDefaultMeaning
the install's foldersopenac, openac-launcher—Beneath the root: app/ (client versions, launcher update), settings/, game/ (the prepared game content and its records), plugins/<plugin id>/ (the plugin's code, and the player's data/ for it; MossTank's folder also holds the shared VTank profiles, vtank/), logs/, screenshots/, journal/ and cache/. layout.json ({ "version": 2 }) says the root is in this layout.
moving an older installopenac, openac-launcherat startThe launcher and every client (windowed or not) move an install from the layout before layout.json once, before reading any of it: data/ becomes game/ (and the content records name the moved files), each plugin's files/ becomes its data/, vtank/ moves to plugins/acdream.mosstank/vtank/, MossTank's old debug/macro-*.log files move to logs/old plugin logs/, and the old session folders in logs/launcher/ are deleted when older than 7 days, else moved to logs/<server>/<character or account>/<local start time>/ (keeping their client.err.log; one that cannot be read goes to logs/unsorted/). A file that would land on another keeps the newer in place and the other beside it as <name>.old<ext>. The mover holds layout.lock in the root and takes the install's session lock alone, so it never runs while a client of the install runs, nor twice at once: the launcher shows "Waiting for N clients to close before moving files" and goes on when they have. A client waits up to 10 s for another program that is moving the files; a client that finds the install held by others (an older launcher's session, an older client) does not wait and exits 3 with "This client needs the new launcher. Restart the launcher to finish the update." Folders reached through a link (a symbolic link or a junction) are moved through it; between two volumes each file is copied under a temporary name (<name>.copying, removed at the next start if a copy was cut short), checked byte for byte, renamed into place, and only then is the original deleted. A file identical to the one already there is not kept twice; a link that leads back into a folder being moved is removed rather than followed. A step that cannot finish stops it: "Could not move your files to the new layout: is in use. Close all OpenAC clients and start the launcher again." when a file is held open, otherwise the path and the error itself. The launcher moves the files with its window open ("Moving your files to the new layout…"); closing it during a move waits for the move to finish ("Finishing the move…"). After a failed step it starts no client and offers Try again and Check for a launcher update (installing a newer launcher that can finish the move; it takes over only once no move runs); a client exits 3; the next start goes on from there. Nothing reads the old places afterwards. The launcher never starts, and never rolls back to, a client released before this layout (older than 0.1.10): when the client beside the launcher (its own build) is there it starts that one instead, otherwise it says "Update the client".
session folderopenac-launcher, openacone per launcher-started sessionlogs/<server>/<character>/<yyyy-MM-dd HH-mm-ss>/ (the local start time; (2), (3) after it for a second session of the same character in the same second): the session document session.json, the status file status.jsonl, client.log (the client's standard output and error, 2 MiB per file, rotating to client.log.1 through .3), and plugins/<plugin id>.log. <server> is the launcher's name for the server and <character> the character's, or the account's for a session started at character selection or a character refresh. Names are made file-name safe (<>:"/|?* and control characters, and trailing dots and spaces, become _; a device name such as CON gets a _ after it; a server named crash, launcher, old plugin logs or unsorted too). The session id stays the launcher's <utc time>-<32 hex> and is recorded in the files. A client learns its folder from the session document's place; a client started by hand has none.
launcher log logs/launcher/launcher.logopenac-launcheralwaysThe launcher's own lines (its start, the folder move and cleanup, its window's GPU reports, the control endpoint) and each session's state changes and errors, with the local time, appended across starts; past 4 MiB it becomes launcher.old.log (replacing the one before).
log cleanupopenac-launcherat start, after the moveSession folders whose start is more than 7 days ago (never one a running client holds), crash reports and files in logs/old plugin logs/ last written more than 7 days ago are deleted; server and character folders left empty go too. A deletion that fails is written to the launcher log and skipped. Nothing is deleted through a link: a linked server or character folder is left alone, and an old session folder that is a link goes as a link.
settings file settings.jsonopenac<config folder>/settings.json (see OPENAC_CONFIG_DIR)The player's client settings, in OpenAC's format (schema version 4; older files are migrated): display, audio, audioMixer, chat, cameraTurning, misc, and per character character and the window positions, layouts and placements. A window opens at resolution ("WxH", default 1280x720), fullscreen (a mode switch to resolution when the monitor offers it; on Wayland the compositor's fullscreen at the monitor's own mode, whatever resolution says; leaving it gives a window of resolution once the compositor shows the window windowed again (un-maximized first when the compositor gives it back maximized); while fullscreen the screen is kept awake: on Wayland by an idle inhibitor when the compositor offers one, on X11 by turning the X screen saver off until the window leaves fullscreen or closes, on Windows by refusing the screen saver), with vsync (default on), fieldOfView (degrees, default 90), the sound and mixer settings and the chat font and filters. The options window (F11) changes them live; the window host saves each changed section, and /vsync on|off goes through it too. Fields nothing reads yet are kept as they are. A file that cannot be read gives the defaults and a warning.
settings display.renderPackopenac, ac-renderpackId retail, presetId offThe atmospheric rendering (the built-in "Atmospheric Rendering" option): packId acdream.atmospheric with presetId low, medium, high or auto turns on the filmic HDR post-processing (bloom, sun rays, colour grade, vignette), moving sun and moon shadows, light shafts, foliage wind and the enhanced night sky; settingOverrides holds the user's values by id (bloom-strength 0..2, filmic-strength 0..1, exposure 0.25..4, grade-saturation 0..2, grade-contrast 0.5..2, vignette-strength 0..1, sun-ray-strength 0..2, sun-shadow-strength 0..1, sun-shadow-reach-metres 16..240, sun-shadow-pcf-taps 1/9/25, volumetric-strength 0..1, volumetric-ray-steps 8..64, automatic-quality, wind-enabled, wind-strength 0..2, wind-direction-degrees 0..360, wind-lean-metres, wind-branch-metres, wind-flutter-metres, wind-canopy-height-metres; OpenAC's steps and defaults). The options window's Configuration page sets it ("Graphics Enhancements", at the end); Potato Mode turns it off. A value a setting refuses turns it off with a notice.
settings display.landscapeDetailTexturesopenac, ac-renderfalseThe "Landscape Detail Textures" option (Configuration page, after "Environment Detail Textures"): the region's landscape detail texture repeated over the outdoor terrain on the player's landblock and its eight neighbours, as clients before Throne of Destiny drew it, for players who install the older terrain textures. Applies at once; Potato Mode turns it off.
journal fileopenac (both forms)—Each character's journal is <data folder>/journal/Journal-<world>-<character>.txt, loaded on entering the world and saved after every change and on leaving.
chat timestampsopenac (both forms)the system time zoneWith the character option DisplayTimeStamps on, chat lines and the /log file carry the local time: on Windows from the operating system's current zone, on Unix from TZ (a zone name, a path, or a rule string), else /etc/localtime; an unreadable zone is UTC.
crash report crash-<utc>-<pid>-....jsonopenacalwaysA panic on any thread writes one bounded JSON report (at most 256 KiB) to the crash folder (<root>/logs/crash; openac run and --session-config use the document's paths): schema version, UTC time, process id, version, the thread, the source location and the function names of the stack, and what the open window knew (GPU, driver, size, the player's cell and position, the camera). The panic's message is never written. Standard error names the file. A lost GPU device is not a crash: it ends only the window (which reports it, as a window that fails) and writes no report.
capability report graphical-capabilities-wgpu.jsonopenacwritten each time a window opensThe chosen GPU adapter, its driver, why it was chosen and what (if anything) is missing, in the diagnostics folder (<cache folder>/diagnostics, see OPENAC_CACHE_DIR). An unsupported adapter is refused with a message naming the platform, the device, each missing capability and this file.
window titleopenac—<name> | <fps> fps | <ms> ms | lb <drawn>/<loaded> | ent <known>/<drawn> drawn, refreshed every 0.5 s.

Graphics, streaming and sound

OptionBinaryDefaultMeaning
--landblock-radius <n> / OPENAC_LANDBLOCK_RADIUSopenacfrom the display settings (High: 4)The near tier: the landblocks (192 m squares) around the player's loaded in full (terrain, static objects, scenery, buildings and their interiors, server objects), 0 to 10; radius 4 is a 9 x 9 square, 1.7 km across. Unset, the quality preset's near radius (Potato 1, Low 2, Medium 3, High 4, Ultra 5), never more than the landscape draw distance. openac run --config reads only the variable. The flag wins.
OPENAC_FAR_RADIUSopenacthe landscape draw distance (8)The far tier: the landblocks around the player's whose terrain alone is loaded, 0 to 25 (radius 8 is a 17 x 17 square, 3.3 km across). Unset, the display settings decide: the landscape draw distance when it is 3 to 25, else the quality preset's (Potato 3, Low 5, Medium 8, High 12, Ultra 15). Raised to the near radius when smaller. A landblock leaves a tier only two landblocks past its edge. Inside a sealed dungeon only the dungeon's landblock is loaded.
OPENAC_MSAA_SAMPLESopenacthe quality preset's (Potato and Low 0, Medium 2, High and Ultra 4)Multisample anti-aliasing of the world: 0 or 1 off, 2, 4, 8; a count the GPU cannot do falls back to the largest it can below it. An unreadable value keeps the preset's, as for the next three.
OPENAC_ANISOTROPICopenacthe quality preset's (1, 4, 8, 16, 16)Anisotropic filtering of the terrain textures, 1 (off) to 16.
OPENAC_A2Copenacthe quality preset's (on for High and Ultra)Alpha-to-coverage on alpha-tested objects while multisampling: 0 or false off, anything else on.
OPENAC_MAX_COMPLETIONS_PER_FRAMEopenacthe quality preset's (2, 2, 3, 4, 6)Scales the window's streaming work budget per frame (at 4: 2 ms, 64 completions, 8 MiB adopted, 4096 entity operations, 8 MiB uploaded) by this over 4; while the login reveal holds it widens to 4 ms.
OPENAC_RESIDENCY_MESH_GPU_MIB, OPENAC_RESIDENCY_MESH_UNOWNED_ENTRIESopenac1024 MiB, 50Object meshes nothing draws stay on the GPU within these limits; the oldest beyond them are released at the 5 s sweep. A value that is not a positive whole number keeps the default.
OPENAC_RESIDENCY_STANDALONE_UNOWNED_MIB, OPENAC_RESIDENCY_STANDALONE_UNOWNED_ENTRIESopenac32 MiB, 256The same for textures nothing draws.
login revealopenac, ac-render examplesonWhen a window first learns the player's position it shows only its clear colour until the terrain within the far radius, everything within the near radius (static objects, scenery, interiors and their models) and every server object's model have loaded (inside a building or dungeon: its own landblock and the player's cell), then shows the world at once; the window event line WorldRevealed { after } says how long that took.
OPENAC_GPU_ADAPTERopenac, ac-render examplesautomaticWhich GPU adapter a window uses: an enumeration index (all digits) or a case-insensitive name substring. Automatic picks discrete, then integrated, virtual, software, then the first enumerated, among adapters that can present to the window. An override that matches nothing falls back to automatic and the attach line says so. Every adapter that can present is listed when a window opens.
OPENAC_DISPLAY_PROTOCOLopenac (Linux)automaticx11, wayland or auto (any case). Without it, a Wayland session with WAYLAND_DISPLAY uses Wayland, else DISPLAY uses X11, else WAYLAND_DISPLAY alone uses Wayland. Any other value is an error at startup. Ignored on Windows.
OPENAC_ORBIT_DISTANCE_METERS, OPENAC_ORBIT_YAW_DEGREES, OPENAC_ORBIT_PITCH_DEGREESopenac300 m, 45°, 30°Where the orbit camera (used before the player is known, and after Tab) starts: a positive distance in metres, a yaw in degrees, a pitch from -89 to 89 degrees. Values out of range are ignored.
OPENAC_WORLD_TIMEopenac, ac-render examplesthe server's clockPin the time of day for the sky and its light: a day fraction 0 <= f < 1 (0 midnight, 0.25 dawn, 0.5 noon, 0.75 dusk). Anything else is ignored.
OPENAC_DAY_GROUPopenac, ac-render examplesthe day's groupForce the sky's day group (the kind of day: sunny, rainy, cloudy...) by its index in the region's list; an index past the list is ignored.
OPENAC_AC_DIRopenac (a window)noneThe game's own install folder (an empty value is unset). The window reads the player's style sheet controls\controls.ini there when it opens (a missing file is an empty sheet; an unreadable one is reported as a ui: notice), and its [title] color (#AARRGGBB) colours the titles of plugin markup windows where no theme colours them. Without it, titles are white. Not derived from the dat folder.
OPENAC_NO_AUDIOopenac, ac-render examplesoff1 creates no audio engine. Otherwise a game window opens the default output device when it opens and closes it when it closes. A headless session never creates one.

Plugins

OptionBinaryDefaultMeaning
plugin foldersopenac (every form)—Every session loads its WebAssembly plugins from the plugins folder next to the program, then from <data folder>/plugins; one folder per plugin with plugin.json at its root (entry names the .wasm). A session document's plugins picks and orders them (absent: all, in folder order; []: none); the one-session form loads all. Loads and failures print as plugin <id> loaded / plugin <id> failed: <why> and go to the status file (pluginLoaded, pluginFailed); plugin log lines print as plugin <id>: <text> (plugin <id> <level>: <text> for any level but info). In a session the launcher started, every line a plugin writes through the host's log call is also appended to plugins/<plugin id>.log in the session folder (<local time> <level> <text>; past 16 MiB it becomes <plugin id>.old.log, replacing the one before), and its debug lines go only there, not to the console or client.log; a client started by hand prints them all.
plugin storageopenac (every form)—A plugin's data lives in <data folder>/plugins/<plugin id>/data (the same on every host), the shared VTank profiles in <data folder>/plugins/acdream.mosstank/vtank (kept there even while MossTank is not installed); without a resolvable folder set plugins have no storage. Installs, updates and removals never touch a plugin's data or vtank folder (a removal deletes data only when asked, vtank never), and a plugin package may not ship either.
OPENAC_PLUGIN_SETTINGS_FILEopenac (every form)noneA JSON file holding the per-plugin settings map ({ "<plugin id>": { "<key>": "<value>" } }) for sessions whose document declares no pluginSettings (the document wins, and the file is then not read). A missing or malformed file, or a null in it, stops startup (exit code 3 with a document, 2 in the one-session form).
OPENAC_PLUGIN_TAGSopenac (every form)noneComma-separated labels this client answers to among the clients on this computer (plugin peers: broadcast lines aimed at labels), for sessions whose document declares no pluginTags (the document wins). Labels are trimmed and repeats (ignoring case) folded, at most 128; a label over 128 characters is dropped (over 64 it does not travel). The peer hub's folder is <cache folder>/plugin-peers (its lock file there; on Linux and macOS its socket).
OPENAC_VTANK_PROFILE_DIRopenac (every form)<data folder>/plugins/acdream.mosstank/vtankThe folder of the shared VTank profiles (the plugins' profiles storage root), instead of vtank in MossTank's plugin folder (an empty value is unset). It applies even when the install folders could not be resolved.
OPENAC_PLUGIN_SLOW_LOGopenac (every form)offDiagnostic: a threshold in milliseconds of wall time (a whole number, _ allowed: 20 or 1_000; blank or anything else is off). Every plugin call that takes longer writes plugin <id> slow: <entry call> took <n.n> ms (client <n.n> ms, most in <name> ×<count> (<n.n> ms)); imports: <name> ×<count>, ... to the client log (standard error; the launcher keeps it, with standard output, in the session folder's client.log). The entry call is start, stop, tick, event <kind> (chat line, object created, entity spawned, command, ...) or callback <kind>; the time includes the client's own work on the imports the call made; client is that work alone (the rest is the plugin's own code) with the import it spent longest on; the imports are the last five client functions it called, the most recent last. For scale: ticks come every 15 ms; a call over 100 ms is always logged as a warning (at most once a minute per plugin and call) and goes on; only a call still running after 10 s (start and stop: 30 s) is taken as stuck and stops the plugin, its fault naming the call and its last imports; the client's time on the disk for the storage functions moves that deadline on, up to 50 s per call. This option changes no limit. It replaces OPENAC_PLUGIN_FUEL_LOG, which the client no longer reads. From the launcher: the launcher passes its own environment to every client it starts, so set the variable where the launcher is started, either for one run (PowerShell: $env:OPENAC_PLUGIN_SLOW_LOG = '20'; & '<launcher folder>\openac-launcher.exe') or as a user variable (setx OPENAC_PLUGIN_SLOW_LOG 20, or Settings → System → About → Advanced system settings → Environment Variables), then quit the launcher and start it again; remove it (reg delete HKCU\Environment /v OPENAC_PLUGIN_SLOW_LOG /f) and restart the launcher to turn it off.
chat /plugin [list], /plugin reload <id>, /plugin reload all, /plugin allow <id> <host>openac (every form; the console or a window's chat box)—The plugin manager. list (or nothing) lists the session's plugins (loaded, or failed with the reason). reload replaces a plugin with the copy on disk at the session's next pass (all: every plugin the session was asked to run), which also brings back a plugin that failed to start or stopped with a fault; the new copy's plugin.json and code are read and checked first, and one this client cannot run (another id, an API or client version it does not meet, code that does not load) leaves the running copy alone while chat says why. A plugin also reloads by itself when its .wasm, markup or plugin.json changes and the folder then stays quiet for a second (the folders are looked at every quarter second; the plugin's data and vtank folders and its other files never count). allow lets a plugin reach a host its manifest does not list, for the session; a plugin asking for one posts the command to type. Plugin verbs (/hello, ...) are typed the same way; the client's own commands always win over them.
HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY (lower case read first off Windows)openac-launcher, and openac for plugins' requestsunset: the Windows user's proxy settings, else directThe system proxy, read as .NET's HttpClient.DefaultProxy reads it: a proxy [http|https|socks4|socks4a|socks5://][user:password@]host[:port] per scheme (ALL_PROXY for a missing one; port 443 for https, else 80), and hosts to reach directly (.example.com for that domain and the names under it, example.com for itself). The address's credentials answer the proxy's 407 (Negotiate, NTLM, Digest or Basic; DOMAIN\user for a domain; http://:@host:port for the Windows logon; NTLM and Negotiate on Windows only); HTTP_PROXY is ignored while GATEWAY_INTERFACE is set. Read once when the launcher starts, and once per session for plugins; this machine's addresses are never proxied.

Diagnostics

All off by default. Lines go to standard error unless noted; a client the launcher started keeps its standard output and error together in its session folder's client.log (see "Folders and files"). To set a variable for clients the launcher starts, set it where the launcher is started: quit the launcher, then start it with the variable set (PowerShell: $env:OPENAC_MOTION_LOG = '1'; & '<launcher folder>\openac-launcher.exe'; macOS: OPENAC_POSITION_LOG=1 /Applications/OpenAC.app/Contents/MacOS/openac-launcher). To turn it off, quit the launcher and start it again without the variable.

OptionBinaryDefaultMeaning
OPENAC_NET_DROP_PCTopenacoffDrop this percent (1–100) of datagrams, starting after the first encrypted outbound packet.
OPENAC_NET_DROP_SEEDopenac0The seed of the drop pattern.
OPENAC_NET_DROP_DIRopenacbothin, out or both.
OPENAC_PROBE_NETopenac (every form)off1 prints a [net-tick] line once a second (inbound messages handled per second, messages left waiting, passes that stopped at the 4 ms in-world budget, the longest gap between passes, datagrams sent, acks, resends, NAKs out and in, rejects, dropped duplicates, parked and reclaimed keystream words per second, the resend cache and missing-sequence depths, and the session phase), and a [net-final] line of the connection's totals when it ends.
OPENAC_DUMP_OPCODESopenac (every form)off1 prints opcodes: unhandled 0xNNNN (body.len=N) the first time each server message nothing handles arrives.
OPENAC_DUMP_APPEARANCEopenac (every form)off1 prints every appearance change (0xF625): a header with the object, base palette and counts, then one line per palette swap (SP), texture change (TC) and part change (APC); a body that does not parse prints PARSE FAILED.
OPENAC_MOTION_LOGopenac (every form)off1 traces the motions of the player and the selected object, three kinds of line, in order. [motion] recv <guid> seq= ctl= auto= type= and the state, for every motion message from the server (auto=1 is the echo of the character's own movement, type other than 0 a move-to or turn-to). [motion] applied <guid> serial= session-body|server-only and the state, for every server state taken up (the session's body, or the server's state for an object nothing here moves; an echo is not taken up), preceded by [motion] interrupted <guid> serial= and the state the body's movement under way was left in when the server state interrupted it (a move-to's turn stopped; the window follows it first, as followed between). [motion] window <guid> took up|followed serial= and the state, then playing=[...] (the motions waiting on their animations, oldest first: a swing shows as its command, 0x1000005B for SlashHigh) and cycle= (the looping motion under them), for every state the window takes up in order or follows from the latest view (only with a window open); playing is the motions' completion queue, not what is drawn. What is drawn is [motion] window <guid> draws <animation> from frame F to L; left <animation> at frame F of L, one line each time the drawn animation (its dat id) changes, so an action left before its last frame was cut short, and one without the left part when the object is first watched; [motion] window <guid> hit the ground|left the ground|went hidden|came back: link animations dropped (an action under way is dropped with them, as the game does), and built from its view / dropped when the window's copy of the object is made again. Every line carries t=<seconds>.<ms> (the wall clock, the same on the session's and the window's lines). A state reads style= fwd=<command>@<speed> side= turn= and actions=[<command>#<stamp>@<speed>] (* marks an autonomous action). A swing lost between server and screen shows as a recv without its applied, or an applied without its window took up.
[combat-mode] lines in the client logopenac (every form)alwaysNot an option: written only when a combat-mode change has waited on the character's body for 5 s or more (a change is held back until the body is ready for the mode it is leaving). [combat-mode] t=<seconds>.<ms> change to <mode> parked <n.n> s: mode=<current> style=<stance> fwd=<forward motion> waiting=[<motions still waiting, oldest first>] blocked by: <reasons> at 5 s and every 30 s after while it still waits, the reasons being the ready check's conditions that fail (not in a missile stance, not standing at the ready, no combat table, motions still waiting; no body when there is none); then one change to <mode> went out after <n.n> s, or given up after <n.n> s when another request replaced it. With the first such line of a wait come [combat-mode-history] lines: a header with the same t= and the session clock s=, then the last 32 combat-mode events, oldest first, each s=<session seconds> <what>: a request sent, already in that mode, held back until the body is ready, or refused; a held-back request sent; a weapon swap made in combat asking for its mode again; the server's combat-mode update with its sequence, taken or refused as older; the client's mode now; the body's stance now (a full motion command). It lands in the session folder's client.log. A change that goes out within 5 s writes nothing.
-- vital:, -- quality:, -- login complete and -- still dead lines in the client logopenac (every form)alwaysNot an option: what the session did with the character's own vitals and portal space, so a character left at 0 health after a death explains itself. A session that does not die writes none of the vital lines. vital: <health|stamina|mana> <value> (id <update id>) seq <n>: refused, <why>; <vital> now <value> for every vital update of the character's own the client refused, why being sequence <n> vs held <n> (older than the one last taken; ACE restores the vitals after a death with two updates each and the older arrives second, so one such refusal per vital there is normal), not in items (the character has no item record) or no player guid (no character yet); now is the value the client holds afterwards (unknown before the full record). The same line ending : taken; ... for every taken vital update while a death is watched: from the update that brings the health to 0 to the one that brings it back (both included), or until a still dead line was written for that death. quality: own <kind> property <id> seq <n>: refused, <why> for any other update of the character's own the client refused, at most once per property every 10 s ((<n> more refused since the last line) when some were held back). login complete sent: teleport <n> arrived at 0x<cell> when a teleport's arrival sends login complete, or login complete: teleport <n> arrived at 0x<cell> before the login's own went; ... when it releases the one held for the login, then login complete sent: the login's own, released by teleport <n> at 0x<cell> when that one goes. On the session clock, once per death and only while the health is still 0: still dead 30 s after the death teleport <n> to 0x<cell> (last health update: s=<session seconds>, <value>, taken|refused, <why>) 30 s after the first arrival since the death (a later arrival does not move that time; the line names the latest teleport), or still dead 60 s after dying with no teleport arrival (last health update: ...) 60 s after the death when no arrival came; none when no health update came. They go to the console and to the session folder's client.log with or without --console.
OPENAC_PROBE_EXTERNAL_CONTAINERopenac (every form)off1 prints one [external-container] t=<seconds>.<ms> <what> (requested 0x..., open 0x...) line when the outside container (a corpse, a chest) is asked for, opens, has its open refused by a use-done error, is closed by the server (, not the open one when it names another), stops being viewed, leaves the world while open, or is found open with no object in the world (open 0x... left the world, closed), and for each plugin close of a container with its answer and why (plugin close 0x...: InvalidTarget, object not in the world). Nothing is built while it is off.
OPENAC_POSITION_LOGopenac (every form)off1 traces where the objects near the character are (any object but the character itself and a projectile in flight, not only creatures), three kinds of line, each [position] t=<seconds>.<ms> s=<session seconds>. update <guid> "<name>" seq=<instance>/<position>/<teleport>/<forced> ground=yes|no <handling> server=<cell> (x, y, z) body=<cell> (x, y, z) -> <cell> (x, y, z) gap=<before> -> <after> m player=<metres> m for every server position of such an object within 30 m of the character: how it was handled (glide, the body catching up; jump (more than 4 m|first update|body off the ground), put there at once; placed (teleport|far|beyond 96 m); ignored, no ground flag, cell written <server cell> over <body cell>|cell unchanged; rejected (sequence|bad position|not authoritative|no position yet), not applied; no body (...)), the server's place, the simulated body's place before and after (cell and landblock-local metres), and the body's distance from the server's place before and after. apart <guid> "<name>" gap=<metres> m server= body= since update=<s> s since moved=<s> s player=<metres> m every 2 s for each such object within 30 m whose body stands more than 4 m from the server's last place for it. order <type> target=<guid> "<name>" via=body|stand-in|order place (<why>)|order heading (<why>) steer=<cell> (x, y, z) and the order's fields (distance, min, fail, speed, walk_run, run_rate; speed, heading for a turn) for every movement the server orders for the character; via=body adds target gap=, the target's body's distance from the server's place for it.
OPENAC_PROBE_OBJECTSopenac (every form)off1 prints one [objects] t=<seconds>.<ms> <what> <guid> "<name>" inst=<instance> at <cell>, player at <cell> <metres> m apart line for each object standing in the world (not in a container, not held, not a projectile in flight, not the character) that is created, created again (a newer incarnation), resent (the incarnation held), given a stale create ignored, described again, deleted by the server, given a delete for another incarnation ignored, or forgotten by the client (25 s out of range); a delete for an object the client does not hold says delete held for a create ... at nowhere, whatever the object is (it may be an item in a pack), and world emptied with <n> objects marks the session's world cleared. An object that leaves or enters the world without a create or delete (picked up, put down) has no line. The distance is along the ground across landblocks; player at unknown before the character is placed. To find which side lost an object: the client never told of it (no created after the player came back), or the client dropped it. Nothing is built while it is off.
OPENAC_PROBE_AUDIO_VOICESac-audiooff1 prints one line (at most twice a second) when a sound is dropped or takes a playing voice, listing every voice.
OPENAC_PROBE_SOUND_WIREac-audiooff1 prints one line per server sound event, saying what it resolved to.
OPENAC_PROBE_AUDIO_PLAYSac-audiooff1 prints one line per sound handed to a voice: the kind (world, ambient, ambient-center, ui), wave, owner, voice, level in dB and linear, pan, voices sounding, the master/effects/ambient volumes, the mute, the mixer mode and the frames the device has pulled; plus a line when the focus mute ("play sound only when active") or the world-sound suspension turns on or off. For checking sound in runs where nobody listens.
OPENAC_PROBE_REVEAL_RADIUSopenacthe landblock radiusThe login reveal waits for this many landblocks around the player instead (a whole number of at least 1; anything else is ignored).
OPENAC_GPU_FORCE_UNSUPPORTEDopenacoffPretend the named required limit (a wgpu limit name, e.g. max_texture_dimension_2d) is missing, to see the refusal message; an unknown name is itself reported as a failure.
OPENAC_NO_BLOCK_COMPRESSIONopenac, ac-render examplesoff1 decodes block-compressed (DXT) object textures to RGBA even when the GPU samples them compressed, as on a GPU without that feature (the attach notices say so), to compare memory, upload time and looks.
OPENAC_UNCAPPED_RENDERopenac, ac-render examplesoff1 turns off both vsync and the software frame limiter, to measure the renderer's throughput. Without it frames follow the display (vsync on) or are limited to the monitor's refresh rate (vsync off; 60 Hz when the monitor does not say).
OPENAC_FRAME_PROFopenac, ac-render examplesoff1 measures every frame and prints a [frame-prof] line every 5 s: CPU frame time percentiles, the GPU time of the world pass (when the adapter has timestamp queries), and the CPU time per stage (update, upload, pacing, render, present, diagnostics).
OPENAC_FRAME_HISTORYopenac, ac-render examplesoffA file path: every frame's timings are kept and written there as CSV when the window closes (OpenAC's columns: frame,timestamp_ms,timestamp_utc,cpu_us,gpu_us,alloc_bytes,update_us,upload_us,imgui_us,pacing_us,render_us,present_us,diagnostics_us; alloc_bytes and imgui_us are 0). Turns on the measurements of OPENAC_FRAME_PROF and with them its five-second [frame-prof] lines. actool frames summarize reads the file.
OPENAC_UI_PROBE_SCRIPTopenacoffA file of UI probe commands played against the window, a few per frame, stopping at the first failure (its line goes to the console as ui-probe: line N: ...). One command per line; # and // start comments; ids are hex (0x...) or decimal; coordinates are canvas pixels; source is inventory, toolbar, paperdoll or ground. Commands: dump (the shown element tree), click element <datId> / click item <guid> [source] / click at <x> <y>, hover element <datId>, mousemove <x> <y>, doubleclick item <guid> [source], drag item <guid> element <datId> / item <guid> / outside <x> <y>, drag at <x1> <y1> <x2> <y2>, wait item <guid> [source] [ms] / element <datId> [ms] / ms <ms> / world-ready [ms] / world-visible [ms] / materialized <n> [ms] / framebuffer <w> <h> [ms] / signal <name> [ms], sleep <ms>, assert item <guid> equip|container|slot <value>, command <chat line>, input press|down|up <InputAction>, mouselook <dx> <dy>, checkpoint <name>, screenshot <name> [ms], potato on|off, uionly on|off, uionly background on|off, focus on|off, resize <w> <h>, close-client. The renderpack commands answer that render packs are not part of this client.
OPENAC_UI_PROBE_DUMPopenacoff1 dumps the interface's shown element tree to the console when the window opens (with or without a script).
OPENAC_AUTOMATION_ARTIFACT_DIRopenacoffThe folder for the UI probe script's world lifecycle files: screenshot <name> writes <name>.png, checkpoint <name> writes checkpoint-<name>.json and a line of world-lifecycle.checkpoints.jsonl after the next frame (sequence, name, UTC time, process id, the reveal facts, the frame's world counts, the renderer's counters), and wait signal <name> waits for the harness to create signals/<name>.signal. Names are 1-80 letters, digits, - and _. Without it those commands stop the script.
console /uitext <text>openac (both forms)— (does nothing until typed)Window support only: types the characters of <text> (no Enter) into whatever has the open window's keyboard focus (a panel's name field clicked first with /uiclick), through the UI's own key routing.
console /uitype <line>openac (both forms)— (does nothing until typed)Window support only: types <line> into the open window's chat entry through the UI's own key routing (Enter, the characters, Enter), as if typed on the keyboard; the world gets none of those keys. For unattended checks where no keyboard reaches the window.
console /worldmove <x> <y>, /worldclick <x> <y> [right|double]openac (both forms)— (does nothing until typed)Window support only, through the window's own input path (the UI first, then the world, as a real pointer): move the pointer to a window pixel (the world hover tooltip and the cursor follow it); click, right-click or double-click there (over no UI element the world pick selects, examines or uses what is under it). For unattended checks.
console /uikey <key>, /uiclick <x> <y> [right|double], /uipress <x> <y>, /uimove <x> <y>, /uirelease <x> <y>, /uiprobeopenac (both forms)— (does nothing until typed)Window support only, through the UI's own routing (the world gets none of it): press and release a key (f1..f12, 0..9, grave, enter, escape, tab, with alt+, ctrl+, shift+ in front), so the panel hotkeys run; click (or right-click, or double-click) at a window pixel; press, move and release the left button (a drag, one step per line so the panels answer it frame by frame). /uiprobe reports, one ui-probe: line each, where the shown windows, their item cells (object id), spell cells (spell id), character stat rows and buttons (dat element id) are, as x y width height; for a shown pre-game screen (screen connecting|characters|creation|dialog) its buttons, entries and the selection screen's character rows (character <n> <id> ... "<name>"), in window pixels (the 800x600 canvas scaled to the window); an open in-world dialog (a question such as /die's, the keyboard configuration's) the same way, as screen dialog with its button dialog lines. For unattended checks.

The console, chat commands and keys

The console reads typed lines on standard input (openac in the one-session form, openac run --console, openac --session-config --console). In openac run, @<id> in front of a line addresses one session.

OptionBinaryDefaultMeaning
console /objects, /time, /contracts, /journal, /window, /close, /quitopenac (both forms)—The console's own verbs (whole word, any case): list known objects nearest first; print the game date; print the quest tracker; print the journal's pages; open a window on the session (window support only; openac run takes /window [id], the one-session form has one session and opens on it); close it; log off and exit. Without window support /window says so (no window support ...).
console /inv, /use <obj>, /useon <item> <target>, /appraise <obj>, /pickup <obj> [main], /move <item> <container|me> [amount] [slot], /merge <from> <to> [amount], /drop <item> [amount], /give <item> <target> [amount], /wield <item> [slot bits], /unwield <item>, /buy <item> [amount], /sell <item> [amount], /xtrade open <player>|add <item>|accept|decline|reset|closeopenac (both forms; @<id> addresses one session)—Item requests, carried out exactly as a window's would be (one request in flight; uses are busy until the server's use-done). An object is 0xhex or a decimal id, me, or a name (double quotes around a name with spaces): the player's items first, then the open vendor's listing, then the nearest object in the world, an exact name before a prefix. amount 0 or absent means the whole stack (/buy and /sell: 1); a smaller amount splits. /inv prints the main pack, each side pack with its contents and what is worn; appraisals print every property by name; /pickup puts the item in the main pack with main (and when the MainPackPreferred option is on), else in the pack a window shows open, else wherever there is room; vendor and trade changes print as they happen. A refusal the game words itself prints as client text; a command that names nothing known, or that the client's checks refuse silently, prints a -- notice.
console /vendor [close], /buylist [add <listed item> [amount]|remove <listed item> [amount]|clear|buy], /selllist [add <item>|remove <item>|clear|sell], /vitae, /corpses [metres], /confirm yes|noopenac (both forms; @<id> addresses one session)—The vendor window's lists and death, as a window's vendor and vitae panels use them. /vendor prints the open shop (each listing's price per unit at the vendor's selling rate, the buy and sell lists, the purse); /vendor close closes it (it also closes by itself when the player walks out of the vendor's use range or teleports). /buylist add stages a listing (amount 0 or absent: its stack size), remove takes units off (absent: the row), buy sends the whole list as one purchase after the money and main-pack room checks; /selllist add stages one of the player's items if the vendor buys it (a pack: its contents), sell sends the list. The game's /fillcomps [type] [price] (typed as chat) fills the buy list from the component book. /vitae prints the vitae penalty and the experience to the next percent. The game's /die (typed as chat) asks first; /confirm yes answers (no answer, no suicide). The game's /corpse names the last corpse outside; /corpses lists the corpses within the distance (100 m by default), the player's own marked.
console /salvage <tool> <item> [item ...], /mana <item>, /place <item> [onto <object>] [amount], /ping, /link, /dismiss <0xguid>openac (both forms; @<id> addresses one session)—The salvage panel's button, the selected-item mana query, dragging an item out of a window, and the link-status panel. /salvage sends the items to the server with the tinkering tool when an item request may be made, the tool is the player's and every item is distinct, the player's and suitable (a salvage material, structure under 100, not retained or rare); the server's answer prints in the salvaging class ("You obtain ..."). /mana asks how much mana an item holds and prints the answer. /place puts an item into the world as a drag does: onto the ground (an amount short of the stack splits it), onto the player (into the pack), a creature (a gift), a vendor (its sell list), a player (a secure trade, or a gift with the DragItemOnPlayerOpensSecureTrade option off) or an open ground container (into it); refusals print as the client words them. /ping pings the server (in the world); /link prints whether the session is connected, the seconds since the last packet, the loss percentage and the last ping's round trip. /dismiss lets go of an object the server stopped talking about: it leaves as a server delete of its current incarnation would remove it; the character and unknown ids are refused.
console /select <obj>, /deselect, /target [monster|player|item|compass|corpse [use]] [next|previous], /target self|attacker|back|fellow [previous], /spells [filter], /enchantments (/buffs), /sheet, /cast <spell> [target], /combat [peace|melee|missile|magic|status], /attack [high|medium|low] [target], /power <0..1>, /stopattack, /book [page <n>|write <text>|close], /fship [create <name> [share]|recruit <p>|dismiss <p>|quit|disband|leader <p>|open on|off|vitals on|off], /alleg [swear <p>|break <p>|kick <p>|info <name>|update on|off], /myhouse [query], /titles [set <title id>]openac (both forms; @<id> addresses one session)—Gameplay requests, carried out as a window's panels would. Objects are named as for the item verbs (the nearest object of that name); a spell by id or by name among the known spells. /select makes the selection (the health of a creature streams); /deselect clears it on purpose; /target selects the nearest monster; /target <kind> selects the closest thing of a kind, and /target <kind> next|previous steps through them in the radar's order (nearest first, height counting a little more than ground distance, wrapping round; next/previous alone step through people): monster (attackable, not fellows or vendors), player, item (what the radar does not show, and lifestones, portals, bindstones; the closest leaves out what the player carries), compass (what the radar shows; in melee or missile mode only what can be attacked), corpse (not opened this session; corpse use selects it and uses it). self selects the character (offered to a waiting /use or /appraise instead), attacker the creature attacking it, fellow steps through the fellowship, back goes back to the previous selection. Finding nothing leaves the selection alone and prints a notice. A selected object that leaves the world (deleted, picked up, held) or is hidden is let go of. /use, /appraise and /pickup without an object act on the selection (with nothing selected, /use and /appraise wait for the next object offered and /pickup says "Nothing selected"; a creature is never picked up). /spells lists the known spells (marking those whose components are missing), /enchantments the active ones with time left, /sheet vitals, attributes and trained skills with their enchanted values and the vitae. /cast casts at the player (self spells), at nothing, or at the selection (a named target is selected first); the server only takes casts in magic mode (/combat magic). /combat alone is the combat toggle; /combat status prints mode, target, health and power bar. /attack presses and releases an attack key in melee or missile mode (the swing goes when the bar reaches /power, 0.5 at start; with the AutoTarget option an empty selection takes the nearest monster). /book reads the open book (opened by /use on it). /fship and /alleg alone print the fellowship and allegiance; /myhouse the house panel's lines; /titles the earned titles and the displayed one, /titles set asks the server to display another (the change shows when the server confirms it). The game's own verbs (/house, /allegiance, /f, /fellowship) stay chat. A command that names nothing known prints a -- notice.
console /chars, /enter [character], /logoff, /reconnect, /delete <character> then /delete yes, /restore [character], /cancel, /nextlogin <character>|off, /create [heritage <id>|gender <key|male|female>|template <n>|attr <str|end|coord|quick|focus|self> <n>|lock <attr> on|off|train|spec|untrain <skill id>|look <slot> <n>|look hat none|shade <slot> <0..1>|town <n>|name <name>|slot <n>|finish [confirm]|ack|random [look|clothes]]openac (both forms; @<id> addresses one session)—Character selection, creation and the session's life. A character is a 0xhex id, #n (the server's list index) or a name, any case. /chars, /logoff, /reconnect and /cancel take no word: another session is addressed as @<id> /logoff (a trailing word such as /logoff h is refused with the usage, never read as a session). /chars prints the selection screen (the highlighted character marked >, characters pending deletion last); /logoff logs the character off back to character selection on the same connection (a new generation; the log-out hold is 3 s, 23 s for a player killer); /enter enters with the named or highlighted character; /delete opens the confirmation and /delete yes sends it (the server keeps the character pending deletion for its delete time, 1 h on ACEmulator, and /restore brings it back meanwhile); /nextlogin enters that character by itself after the next /logoff; /reconnect logs off, disconnects, waits 2.5 s for the server to release the account and connects again, entering the configured character (or waiting at character selection when none was given). The first /create of a creation (/create alone included) rolls a whole character first, heritage, gender, look, clothing, template and town, as the creation window does when it opens, so nothing is left unchosen; random rolls again. /create alone prints the creation state; finish sends it (refused locally without a name, heritage and gender, with attribute points left unless confirm, or with every slot taken) and a created character enters the world at once. Look slots: eyes, nose, mouth, hair, haircolor, eyecolor, hat, hatcolor, shirt, shirtcolor, pants, pantscolor, shoes, shoescolor; shade slots: skin, hair, hat, shirt, pants, shoes. Creation choices come from the dats' character-generation table (none without the dats).
console /walk [back] [secs|<n>m], /run [back] [secs|<n>m], /strafe left|right [secs|<n>m], /turn [left|right] <degrees>, /turn to <heading>, /jump [power], /stop, /autorun, /posture ready|sit|crouch|sleep, /whereopenac (both forms; @<id> addresses one session)—Move the character as held keys would (the same commands a window's keys send). A bare amount is seconds for walk, run and strafe (5m metres, 5s seconds) and degrees for a turn (negative turns left); no amount keeps going until /stop (at most 30 s). A move ends when covered, blocked (no progress for 1.5 s) or interrupted, and prints move|strafe|turn <how>: <metres or degrees> in <seconds>. /jump charges for power seconds (default a full 1.0) and jumps. /stop ends autorun, held keys and every move. /where prints the character's cell, position, heading, ground contact, speed and resident landblocks (the server's @myloc prints the server's view). Refusals print -- movement: .... Without the dats the character cannot move (the console says so at start).
chat /nav go to [target | 0xID | name | CELL [X Y Z] | [X Y Z] | 24.3N 101.1W] [within M], /nav stand on ..., /nav follow [target | 0xID | name] [M], /nav stop, /nav status, /nav grid, /nav route ..., /nav debug [on|off], /nav debug file PATH|off; /motor walk|run [forward|backward] [AMOUNT], /motor strafe left|right [AMOUNT], /motor turn left|right [DEG], /motor turn to HEADING, /motor jump [POWER], /motor stop [travel|strafe|turn], /motor status (moves joined with +)openac (both forms; typed at the console or in a window's chat box)debug offWalks the client plans and walks itself: to an object (the selection, an id, or the nearest of that name within 1000 m), a place (as /loc prints it, a bracketed point in the character's own cell, or map coordinates on the ground), onto an object's top, or after a player; grids are built and routes searched on worker threads; doors on the way are appraised and used. A walk ends when it arrives, finds no route, is blocked, stopped, or the player moves the character. Moves the client carries out are /motor's: an AMOUNT is metres (degrees for a turn), or seconds written 20s. Answers go to chat; /nav debug also writes how each walk starts and ends and its full narration to chat (lines start [nav] ) and, with file, to a file (UTC timestamps; ~ is the home folder). The console also prints walk <n>: <state> as a walk changes and nav: <line> for what the walk says about its grids and routes. /nav grid and /nav route say there is nothing to draw on.
console /options, /option <name|id> on|off, /saveoptionsopenac (both forms)—List the 53 character options on and off; change one as the options panel does (options the game saves at once go out at once, the rest with the next block save: before log off, 480 s after the first unsaved change, or /saveoptions; never before the character description has set them). Names as in the game (ListenToGeneralChat, DisplayTimeStamps, ...), any case.
console chat linesopenac (both forms)—Every other line is typed into the session's chat box and routed as a window's chat box routes it: plain text says it; /say, /tell <name>, <text> (also /t, /w, /send, /whisper), /r (/reply, /rp), /rt (/retell), /emote (/e, /em, /me, or a leading : / ;), channels /f /a /ab /m /p /v /c and rooms /general /trade /lfg /roleplay /society /olthoi (with their aliases), /friends [add|remove|online|old], /squelch, /unsquelch, /filter, /unfilter, /messagetypes, /chat on|off, /notell on|off, /afk, /consent who|clear|remove|on|off, /join, /leave, /day, /lockui, /permit, /age, /birth, /ls, /mp, /pka, /pla, /pklite, /hr, /hom, /alh, /hslist, /index, /clist, /on, /off, /version, /endurance, /emotes, /clear, /log [file], /help [verb] (also /?; the game's own help text), the /allegiance and /house management subcommands (officers, titles, bans, chat, lock, MOTD, guests, storage, boot, hooks, open and close); any other /verb or @verb goes to the server as @verb (the server's admin commands). Incoming chat prints worded as the chat box shows it, behind a class tag ([say], [tell], [msg], ...; channel lines carry their own [Name]); status-overlay text prints behind [client]; the console's own notices behind -- . The console stands in for the main chat window: a text class that window's default filter hides is not printed, and when standard output is a terminal each chat line is written in the window's colour for its class and notices are dimmed. A line goes through the session's one chat entry (its talk focus and tell target decide where plain text goes; the last 100 lines are kept for recall), and an empty line sends whatever draft the entry holds. /status (or @status) prints the session's generation, where it is in its life and where the character stands, on every host. /title is accepted and does nothing.
/log [file] (chat)openac (both forms)offCopies every chat line, worded, to file (.txt added when it has no extension), appending; a bare name lands in <data folder>/logs/; /log alone stops.
console /screenshot [file.png]openac (both forms)logs/screenshot-<unix seconds>.pngWindow support only: after the next frame is presented, draw it again into an image the size of the window and write it as a PNG (a minimized window answers once it is restored); the window event line reports the path and the renderer's counts (landblocks loaded and drawn, object instances drawn, meshes, surfaces).
console /fly, /vsync on|off, /daytime, /weather, /mute, /dumpnearby, /mixeropenac (both forms)vsync from the settings fileWindow support only: toggle the fly camera; turn vsync on or off for the open window and later ones, and save it in the settings file (off: frames are limited to the monitor's refresh rate unless OPENAC_UNCAPPED_RENDER=1); the time-of-day, weather, mute and nearby-dump steps of Ctrl+F7, Ctrl+F10, Ctrl+M and Ctrl+F3 (the window event line says what changed); /mixer [retail on|off | voices 16-64 | priority on|off | perwave 0-8] reports or changes the sound mixer and saves it in the settings file, as the same line typed in the chat box does.
the game's UI in the windowopenacon whenever the window has datsThe chat, vitals and radar windows over the world, as in the original game. Every key, press and wheel goes to the UI first; the world (the movement and camera keys below) gets only what the UI does not take: nothing while an element has the keyboard focus (typing into the chat entry moves nobody), presses and the wheel only off the UI windows, releases always. Enter or Tab with nothing focused opens the chat entry; F3 and F4 open the allegiance and fellowship pages; Enter sends the line, Escape leaves the entry keeping the text, Up/Down recall sent lines, Ctrl+C/X/V copy, cut and paste through the system clipboard. While the fly camera holds the cursor the UI gets no pointer input. At character selection (a window opened there, or after /logoff) the pre-game screens show instead, on the 800x600 canvas scaled to the window: character selection (enter, delete, create, credits, exit), the credits and the creation wizard; while one shows, the window draws no world and the panel hotkeys and the chat entry's Enter/Tab stand aside. A session started with a character enters it by itself, so selection shows only after a log off.
keys in the UIopenac, ac-render examplesthe game's defaultsWhen no UI element has the keyboard focus and the UI lets a key fall through, the panel hotkeys come before the world's keys: F5 the spellbook (spells page), F6 its components page, F8 the character window (attributes), F9 (skills), F12 the inventory (each closes its panel when it shows that page already); 1-9 use the toolbar's quick slots 1-9 (in magic mode they cast the open spell bar's favourites 1-9), Alt+1..9 quick slots 10-18, 0 makes a shortcut to the selection, the grave accent toggles combat. The toolbar's panel buttons open and close the inventory, character and spellbook windows; one of them shows at a time, in one shared place.
keys in the game windowopenac, ac-render examplesthe game's key mapThe keys the UI leaves go through the game's key map (keybinds.json beside the settings file overrides it action by action; a .keymap profile from the game named in active-keymap.txt beside it, kept in the dat folder, overrides that). Movement (sent to the session, not in fly mode): W or Up forward, X or Down back up, A/Left and D/Right turn, Z and C (or Alt with A/D/arrows) sidestep, left Shift held walks (running is the default), Space jumps (hold to charge, release to jump), Q toggles autorun, S stops, Y stands, G sits, H crouches, B sleeps. Camera (chase): the middle button held (or F2 / keypad divide held, which also turns the arrows into camera keys) is mouse look: the mouse turns the character and raises or lowers the camera; the right button held swings the camera around the player; the wheel zooms; keypad 0 default view, keypad . first person, keypad 5 look down, keypad Enter map view (again: back), keypad 4/6/8/2 swing and raise, keypad -/+ closer and farther. The options window's camera settings apply: stiffness, adjustment speed (held camera keys, 40 steps a second by default), mouse-look sensitivity and inverted vertical axis (mouse look and the right-button swing), align to slope. Console /fly (no key by default; a player may bind AcdreamToggleFlyMode): fly camera on or off; in it the movement keys fly it (W forward, A/D sideways, X back, Space up, Q held faster) and the mouse turns it (the cursor is held; Escape releases it). Ctrl+F7 (or console /daytime) steps the time of day, Ctrl+F10 (or /weather) the weather, Ctrl+M (or /mute) mutes the window's sound (with the "play sound only when active" setting, on by default, an unfocused window is silent); Ctrl+F8/F9 lower and raise the mouse sensitivity; Ctrl+F3 (or /dumpnearby) logs where the player stands and the objects and collision objects within 15 m; keypad * saves a screenshot ScreenShotNNNNN.png in screenshots beside the settings file. Losing the window focus releases every held key, mouse look and the cursor. Left-drag turns the orbit camera.
mouse wheel in the game windowopenac—Zoom the chase camera (each notch scales the camera distance by 20 %, within the game's limits). Over a UI window the wheel scrolls it instead.

The launcher

openac-launcher starts openac sessions (see openac --session-config and openac run above). A startup error exits 74 and writes <root>/logs/crash/launcher-crash-<time>.log. Every client and windowless host holds the install's session lock (<root>/app/.update-session.lock) shared for its whole run and refuses to start (exit 3) while an update or a move of the install folder holds it exclusively.

OptionBinaryDefaultMeaning
--root-dir <path>openac-launcherthe resolved root (see OPENAC_ROOT_DIR; the launcher and the client share it)The whole install folder, absolute; the environment and the pointer file are not consulted. The profiles (launcher-profiles.v3.json, passwords in plain text; an older launcher's launcher-profiles.v2.json, or else launcher-profiles.json, is read once to migrate and never written) the remembered ticks (launcher-checked-accounts.json) and whether checked clients are kept running, with the relaunch delay (launcher-relaunch.json), and the consoles' Verbose (launcher-console.json) live in settings/; the content record (retail-content.json) and prepared content in game/; the client store, installed-plugin records and launcher update in app/; plugins in plugins/; each session's files in its session folder under logs/ and the launcher's own log in logs/launcher/launcher.log (see "Folders and files"); the plugin list cache and icons, and the saved known server list (known-servers.json, known-servers-players.json), in cache/.
--config-dir <path> --data-dir <path> --cache-dir <path>openac-launcher—An isolated set of folders: all three together, each absolute; they win over --root-dir.
--update-manifest-uri <https-uri>openac-launcherthe project's release feed (openac-manifest.json of the latest release at eriknihlen/OpenAC; while that has none, manifest.json of the latest release at eriknihlen/openac-rust)The release feed to check for a client or launcher update instead (HTTPS, or HTTP to this machine for tests; no user information, query or fragment). Check for updates (top right) checks the client, the launcher and the installed plugins at once; the launcher also checks at startup and every 20 minutes while open, and only the startup check verifies the installed client. While open it also reads the release feed of every repository an installed plugin came from every 30 seconds (10 minutes after GitHub answers 429) and checks the installed plugins when one changed. A newer launcher is staged in <root>/app/launcher-update and applied by a restart: the staged launcher runs as a helper, replaces the files of the launcher folder with a rollback journal, and starts the new launcher, which confirms it runs.
--acdream-self-update-helper-v1 <pid> <folder> <id> ..., --acdream-self-update-confirm-v1 <id> ...openac-launcher—Internal: the launcher starts itself with these during a self-update (the same arguments as the retired C# client's launcher); the launcher's own options follow them. Any other --acdream-self-update- first argument exits 64. Exit codes of the helper: 0 updated, 73 a session holds the update lock (the update waits for the next start), 74 rolled back and the old launcher started, 75 the state could not be verified and nothing was started.
--plugin-list-uri <https-uri>openac-launcherthis client's curated list (plugins-rust.json in the latest release of eriknihlen/openac-plugins; the retired C# client's plugins.json there is never read)The curated plugin list to read instead, with the same rules.
--control-pipe <name>openac-launchernone: no control endpointOpens the optional control endpoint that test runs drive the launcher through. The name is 1-64 ASCII letters, digits, hyphens or underscores; a name another launcher holds stops this one starting. Windows: the named pipe \\.\pipe\<name>, open to the launcher's user only, remote clients refused; Unix: the socket $TMPDIR/CoreFxPipe_<name> (where .NET's pipe client finds it), mode 0600. One request per connection: a four-byte little-endian length (at most 16 KiB), then UTF-8 JSON {"command", "server", "account", "session"} with the command status, start, stop or reload-client; the reply is framed the same way, {"ok", "data", "error"}. status lists the saved selections (server, account, character, mode, active) and the sessions (id, server, account, character, mode, state, active, exitCode, graceful), never passwords or logon commands; start launches the character selected on a saved Headless row through the launcher's own orchestration (refused while the account is active, and while the server may still hold it after an unclean exit: the reply says how many seconds are left); stop asks a headless session to log off through its console (/quit), never kills it: poll status until it is inactive and graceful; reload-client revalidates the installed client for future launches while no session runs (it neither installs nor moves the version pointer). A connection gets 30 seconds; when one times out, read status before repeating a command.
--verify-publishopenac-launcher—Exit 0 at once without opening a window or reading any folder (a packaging check); must be the only argument.
OPENAC_LAUNCHER_FINGERPRINT (at build time)openac-launcherunset: updates by versionRead when the launcher is compiled, not when it runs: a release build carries the SHA-256 of what its launcher is built from, and updates itself only when the release's fingerprint file beside the manifest (openac-launcher-fingerprint.json beside openac-manifest.json, launcher-fingerprint.json beside manifest.json) names another fingerprint for that release; a matching launcher stays and installs the new client. A developer build has none and, like a release without the file or with one that cannot be read within 5 s, compares versions.
the client it startsopenac-launcherthe active versioned client, else openac beside the launcherUntil a verified client is installed in the data folder's version store, the launcher starts the openac in its own folder (build both: cargo build -p openac -p openac-launcher). The child inherits the launcher's environment (OPENAC_NO_AUDIO and the rest).
a running row's Launch mode boxopenac-launcher—While the row's play session runs, Graphical opens a game window on it (the client's console gets /window <session id>) and Headless closes the window (/close); the session keeps playing, nothing restarts or reconnects, and the next launch's saved mode follows the pick. The box shows the window as the client reports it in its status file (windowOpened, windowClosed, windowFailed) and takes no other pick until the client answers; a switch that cannot be sent, that the client refuses, or that it does not answer within 30 s puts the box back and says why on the status line. A row's console opens while its session has no window. Every play session starts with its console for this (openac --session-config <file> --console or openac run --config <file> --console, without OPENAC_HEADLESS).
a session console's Verbose boxopenac-launcheroffA row's console shows what a player would see in the game: the chat the main chat window shows, the status box's text, what was typed into the console (behind > ) and the console's answers (the lines the client marks, see OPENAC_CONSOLE_KINDS). Verbose shows every line the client writes, as before; a client that marks nothing (one from before the marks) has every line shown either way. One setting for every console, remembered in launcher-console.json in settings/ ({ "verbose": true }); a file that cannot be read is left as it is and said on the status line.
closing the launcher windowopenac-launcher—While a client the launcher started still runs, the close button asks "Closing the launcher will log off and close N running client(s)." with Close and Cancel (or Escape: nothing changes). Close keeps the window open on a "Closing" view: every client is logged out at once (a graceful logout, then a kill after 30 s), one line each ("Logging out…", "Closed", "Did not respond, closed by force") under "Closing N of M clients…", and "Close now" kills the rest; meanwhile nothing starts (Play, automatic relaunch and the control endpoint's start are refused), and the window closes once every client has ended. A staged launcher update that restarts the launcher closes its clients the same way first. With none running (a session whose process has ended does not count) the window closes at once, so a script that stops every session first is never asked.
OPENAC_LAUNCHER_SCRIPTopenac-launcheroffDiagnostic: a file of commands the window runs one line at a time, for hands-free checks: wait <s>, screenshot <file.png> (the launcher window, after dialogs have faded in), window-size <width> <height> (the window's inner size in logical pixels, never below its minimum of 760 x 460), tab accounts|plugins, open settings|log|first-run|update|edit-accounts|edit-servers|logon-commands|add-server, open row-options <account> <server>, open install <plugin id>, open remove <plugin id>, close, first-run-dir <path>, first-run-save, editor-row <n> <name> <value>, editor-add-row, editor-line <text> (a line appended to the accounts or logon-commands text), editor-show-passwords on|off (the accounts editor's Show passwords), editor-save, check <account> <server> on|off, character <account> <server> <name>, mode <account> <server> graphical|headless, play <account> <server>, play-selected, stop <account> <server>, console <account> <server>, console-send <account> <server> <text> (opens the row's console and sends the line), close-consoles, refresh-plugins, wait-plugins <s> (until no plugin list check, Discover release check or install runs; prints script: plugins idle and the tab's error, if any), install-choice none|all (the install dialog's Enable for), install-confirm (its Install), remove-confirm (the remove dialog's Remove), check-servers, wait-in-world <account> <server> <s>, wait-ended <account> <server> <s>, wait-window <account> <server> graphical|headless <s> (until the running row's client reports its window open or closed; prints the outcome and the status line), close-launcher (the window's close button: prints the confirmation it asks while clients run, or that it may close at once), close-cancel (the confirmation's Cancel), rebuild-gpu (the window builds its GPU device, surface and renderer again, as after a lost device, and gives the new renderer every texture), print <text>, quit. Words with spaces go in double quotes; a value written env:NAME is read from that variable, so a password never sits in the script. Each line is echoed on standard output as script: .... Use Windows paths for screenshots on Windows.
OPENAC_LAUNCHER_GITHUB_MIRRORopenac-launcheroffDiagnostic: a folder that answers every https://github.com/<path> request with the file <folder>/<path> (a missing file is 404; other hosts use the network), so the plugin pipeline runs end to end on one machine without publishing: the curated list (--plugin-list-uri https://github.com/<owner>/<list>/releases/latest/download/plugins.json → <folder>/<owner>/<list>/releases/latest/download/plugins.json), a repository's releases feed (<owner>/<repo>/releases.atom), its release assets (<owner>/<repo>/releases/download/wasm-v<version>/<asset>, or wasm-<id>-v<version>, as plugincheck pack writes them), and its plugin index (<owner>/<repo>/releases/download/wasm-index/plugins-index.json). Each request prints mirror: GET <url> -> 200|404.

Examples and tests

OptionBinaryDefaultMeaning
cargo run -p ac-audio --example play_wave -- <wave id> [pan]examplecentredDecode a dat wave (0A......) and play it through the default output device for one second (a shorter wave plays to its end), centred or at pan (whole decibels, −15..15, positive right). Prints the format, the device and how many frames the device pulled; exits non-zero if nothing played. Dats from OPENAC_DAT_DIR.
cargo run -p ac-render --example holtburg -- [out.png] [seconds] [zoom] [fly]examplelogs/holtburg.png, 8 s, 0An offline check without a server: a window on a made-up, clothed player at the Holtburg lifestone, then a screenshot after the given wait, then exit; fly switches to the fly camera first. Without a session the sky runs from noon. Reads OPENAC_UNCAPPED_RENDER, OPENAC_FRAME_PROF, OPENAC_FRAME_HISTORY, OPENAC_GPU_ADAPTER, OPENAC_WORLD_TIME, OPENAC_DAY_GROUP and OPENAC_NO_AUDIO (set it for silent runs: the window plays the region's ambient sounds); writes the capability report to logs/.
OPENAC_EXAMPLE_POSITIONac-render example holtburgthe Holtburg lifestoneWhere the made-up player stands: "<cell hex> <x> <y> <z> [heading degrees]" (cell-relative metres; heading clockwise from north), for example an interior cell ("A9B40100 88.8 131.5 66.05 270") or a dungeon cell ("00070103 70 -160 -5.95 90").
OPENAC_EXAMPLE_TRAVELac-render example holtburgoffA streaming check: "<east m/s> <north m/s> [height m]" moves the made-up player in a straight line for the whole wait (ten updates a second) and saves <out>-<n>.png with the renderer's counts every 10 s, for example "100 -40 40".
OPENAC_EXAMPLE_PORTALac-render example holtburgoffA portal-space check: the made-up player enters portal space this many seconds before the screenshot and never arrives, so the shot shows the held tunnel (for example 3).
OPENAC_EXAMPLE_MOTIONac-render example holtburgidleThe made-up player's motion, as the session would publish it: walk, run, turn or idle (animated in place; the player does not move). The made-up player has a standing body, so the camera enters player mode (the chase view) as it does in the game.
OPENAC_EXAMPLE_ATMOSPHEREac-render example holtburgoffThe atmospheric rendering at a quality preset, as the options window's "Atmospheric rendering" menu sets it: off, low, medium, high or auto.
OPENAC_EXAMPLE_LANDSCAPE_DETAILac-render example holtburgthe stored settingThe "Landscape Detail Textures" display option, as the options window sets it: 1 on, anything else off.
OPENAC_EXAMPLE_ATMOSPHERE_SETac-render example holtburgnoneThe atmospheric settings' values as the options window stores them, id=value,... (ids and ranges under display.renderPack above), for example sun-shadow-strength=1,wind-enabled=false. A value a setting refuses turns the atmospheric rendering off with a notice.
OPENAC_BENCH_WASMac-plugin bench call_time (development only)noneA plugin .wasm whose load the bench also times: compiled with no cache, compiled into an empty compile cache, and loaded from that cache by a fresh engine.
OPENAC_UPDATE_WALK_CORPUSac-nav real-dat test walk::corpusoff1 records the walk corpus again (crates/ac-nav/tests/walk_corpus.txt) from this run instead of comparing with it, after a change meant to alter the walks.
OPENAC_LIVE_TESTSac-launcher-net and openac testsunsetTest-only: 1 lets the live tests run. They are #[ignore]d, and even with --include-ignored (as scripts/check.* runs them when the dats are present) they do nothing without it: HTTPS through the operating system's TLS to GitHub's release feed, TreeStats and a wrong-host certificate (ac-launcher-net tests/live.rs), the UDP probe against a local ACEmulator server on 127.0.0.1:9000, and the launcher end-to-end session (openac tests/launcher_live.rs, which also needs OPENAC_TEST_PASSWORD2). Run with cargo test -p <crate> --test <file> -- --include-ignored.
OPENAC_TEST_PASSWORD2openac testsunsetTest-only: the password of the local test account the launcher end-to-end test logs in (tests/launcher_live.rs names the account and character). The launcher core's orchestrator starts openac headless (openac run --config ... --console), waits for enteredWorld in the status file, stops it as the launcher's Stop does (Ctrl+Break / SIGINT, kill after 30 s) and checks a graceful exit 0. Never stored in the repository.
OPENAC_LIVE_WINDOWopenac testsunsetTest-only: 1 makes the launcher end-to-end test start the windowed form (openac --session-config <file> --console) instead; a game window opens on the desktop for the length of the test.
OPENAC_DIAGNOSTIC_TESTSac-nav testsunsetTest-only: 1 lets the diagnostic tests run; they print measurements rather than pin behaviour and are slow. They are #[ignore]d, and even with --include-ignored they do nothing without it: every installed dungeon cell routed to by its middle, as given and stood on the floor (ac-nav tests/retail_nav.rs the_middle_of_every_dungeon_cell_routes_once_it_stands_on_the_floor, about three minutes in a debug build). Run with OPENAC_DIAGNOSTIC_TESTS=1 cargo test -p ac-nav --test retail_nav the_middle_of_every -- --include-ignored --nocapture.
OPENAC_TEST_VIEWPORT_PNGac-render testsunsetTest-only: a file path; the real-dat viewport test (renderer::viewport::tests::the_human_body_draws_into_a_viewport_texture) writes the offscreen figure it drew there as a PNG, for looking at.
OPENAC_UI_CAPTUREac-ui-web test replayunsetTest-only: a recorded remote-window stream (a capture .bin), or a folder of them, that the #[ignore]d replay test feeds to the browser panel code and draws with a software rasteriser, over the installed dats. Without it the test says it was skipped and passes. Captures hold a live session's data and are never committed. Run with cargo test -p ac-ui-web --test replay -- --ignored --nocapture.
OPENAC_UI_REPLAY_OUTac-ui-web test replay<temp>/openac-ui-replayTest-only: the folder the replay writes its pictures (PNG) and logs to.
OPENAC_UI_REPLAY_SCRIPTac-ui-web test replaynoneTest-only: a script file of input steps (pointer moves, clicks, keys, text; one a line, described at the top of crates/ac-ui-web/tests/replay.rs) played after the capture, with a picture saved where the script asks.
OPENAC_UI_REPLAY_CONTROLac-ui-web test replayoffTest-only: 1 replays as a page that has control, so keys and clicks act; otherwise the page only watches.
OPENAC_OFFLINE_DATAac-ui-web test offlineunsetTest-only: a character's stored data file (the JSON a page hands to ui_offline_data: character, player_id, items) that the #[ignore]d test shows in the inventory, examination and character windows, without a session, over the installed dats. Without it that test says it was skipped and passes. Such a file holds a real character's data and is never committed.
OPENAC_OFFLINE_PNGac-ui-web test offlinenoneTest-only: a folder the offline tests write each window they draw to, as PNG.
OPENAC_LAUNCHER_TEST_FIXTUREac-launcher-core testsunsetTest-only: set by the launcher's process-supervision tests when they start their own test program again as a child process; the child then acts as the named fixture.
OPENAC_SELF_UPDATE_FIXTURE_DATA, OPENAC_SELF_UPDATE_FIXTURE_TARGET, OPENAC_SELF_UPDATE_FIXTURE_HELPER_PID, OPENAC_SELF_UPDATE_FIXTURE_MODE, OPENAC_SELF_UPDATE_FIXTURE_STARTSac-launcher-core testsunsetTest-only: set by the self-update process tests (tests/self_update_process.rs) when they run their own test program as a launcher: the data folder and launcher folder the self-update bootstrap works on, a file the helper writes its process id to, a fixture mode (apply and freeze, a startup probe), and a file every start as the launcher adds a line to.

actool commands

Arguments are parsed with the standard library only. Ids are hex, with or without 0x. Floats print as their shortest decimal form followed by their bit pattern. --dat-dir and OPENAC_DAT_DIR (above) name the dats.

CommandPrints
actool dat infoHeader fields, iteration and entry counts of every dat.
actool dat landblock <id>A landblock (XXYYFFFF): terrain words and heights, then its objects and buildings.
actool dat setup <id>A setup (02......): parts, locations, placement frames, shapes, lights, default tables.
actool dat motiontable <id>A motion table (09......): stance defaults, cycles, modifiers and links with their animations.
actool dat envcell <id>An interior cell (XXYYNNNN, NNNN from 0100 to FFFD): flags, position, surfaces, portals, visible cells, static objects; then its cell shape from the environment (vertices, polygons, portals, tree sizes).
actool dat region <id>A region (13......; the game's is 13000000): land and height table, calendar, sky, ambient sound, scenery and terrain textures.
actool dat layoutOne line per UI layout (21......, local dat): root element id, type and size, element count and type histogram.
actool dat layout <id>A UI layout (e.g. 21000006, the chat window): every element with type, rectangle, z level, read order, edge modes, default state and base element, then each state's media and properties.
actool dat font <id> [--out <base>]A font (40000000..40000FFF): metrics and every glyph. With --out, writes <base>-fg.png and <base>-bg.png (the atlases, alpha as grey, 4x) and <base>-sample-6x.png (a sample line drawn with outline and fill, 6x).
actool dat gfxobj <id>A model (01......): flags, surfaces, vertices, polygons and every BSP node.
actool dat texture <id> --out <file.png>A texture decoded to PNG: a render surface (06…/07…), a surface texture (05…, its first image) or a surface (08…, with its clip-map and additive bits; a solid surface gives a 1×1 image).
actool dat edges <id>A render surface's four first and four last columns as RGB hex, top to bottom (seams between tiles).
actool dat sprites <id,id,...> --out <file.png>Render surfaces left to right on a grey strip (6 px apart and around, blended over it), zoomed 10x, and their sizes in order.
actool dat vitals-barsThe first layout holding the vitals health meter (0x100000E6), then the images of each meter (health, stamina, mana) with their element, state and draw mode.
actool dat vitals-layoutsEvery layout holding a vitals meter (0x100000E6/EC/EE) with its size (dump one with dat layout <id>).
actool dat mock-selbar --out <file.png>The selected-object health bar (back 0x0600193E, fill 0x0600193F) at fills 1.0, 0.9, 0.7, 0.5 and 0.0, one row each, cropped from the left and blended over a dark canvas, 8x.
actool image compare <expected.png> <actual.png> <out.json> [tolerance=2] [max-fraction=0.001] [mask.png]Compare two screenshots pixel by pixel: a pixel differs when a channel is more than the tolerance apart; pixels where the mask has alpha are skipped. Writes a JSON report in OpenAC's format; exit 1 when the different fraction is over the limit. Needs no dats.
actool image crop <in.png> <x> <y> <w> <h> <zoom> <out.png>A region of a PNG (clamped into it), zoomed by repeating pixels.
actool image probe <in.png> <x0> <y0> <x1> <y1>A block of a PNG's pixels as RGB hex, one line per row.
actool frames summarize <history.csv> <checkpoints.jsonl> <markers.log> <out.json>Summarise an OPENAC_FRAME_HISTORY CSV: the whole route, the 5 s before each checkpoint (one JSON object per line: name, timestampUtc, resources.processTotalAllocatedBytes) and 10 s before to 5 s after each <utc> materialized destination='<name>' log line, with p50/p95/p99/p99.9, maxima and the worst frames.
actool migrate-classic [--vtank <dir>] [--ub <dir>] [--root <openac-root>] [--overwrite] [--dry-run]Copies a classic VirindiTank and UtilityBelt setup into the install's plugins/acdream.mosstank/vtank/mosstank/ folder, where MossTank reads it, printing one line per file and a summary. VirindiTank *.usd and *.cdf go to profiles/, *.met to metas/, *.nav to navs/, *.utl to loot/; UtilityBelt's autovendor, equip, itemgiver, maps and dungeonmaps folders (at the plugin, server or character level) and its alias files go under ub/ with their levels kept; settings files, gameinfodb.ugd and anything else are skipped with the reason. The originals are only read; a different file already there is kept and reported as a conflict unless --overwrite; --dry-run writes nothing. Without --vtank/--ub the usual Windows folders are used when they exist; --root names the install (else OPENAC_ROOT_DIR, the pointer file, the default). Exit 2 on a usage error or a missing folder. Needs no dats; --dat-dir does not apply. The launcher's Import VTank & UB… button (shown once MossTank is installed) does the same.

--out <path> is required by dat texture, dat sprites and dat mock-selbar, optional for dat font, and refused by every other command.

plugincheck

The plugin checker for plugin authors: the launcher's own install rules, then the plugin's WebAssembly module loaded without running it. See Writing a plugin.

CommandDoes
plugincheck <path> [--json]Checks an unzipped plugin folder (a hand install) or a plugin .zip (a release asset): plugin.json present and read by the client's parser (an OpenAC C# manifest fails as "built for OpenAC (C#)"), the launcher's install rules, and, for a folder, the direct-install checks; for a zip, the 64 MiB cap, safe extraction within the launcher's limits, the content policy (.wasm .json .xml .txt .md .png .ttf .otf, the entry module present), the icon (64 x 64 PNG, at most 64 KiB), the <zip>.sha256 file beside it (skipped when absent) and the release asset name <id>-<version>.zip (noted when different). Then the entry .wasm is loaded (never run) and checked as a session does: its openac.api section names the manifest's API version, its openac.layout section holds this client's record layouts for everything it uses (else "built against a different plugin API layout; rebuild it against this client's SDK"), every import is a client function the declared permissions allow, and the calling convention's exports are there; it lists the permissions used and any declared but unused. One [PASS]/[FAIL]/[SKIP] line per check, a failure with its fix; --json prints one JSON object (schemaVersion, mode, path, verdict, checks[] with check, status, message) and nothing else. Exit 0: it would install; 1: it would be refused; 2: usage, a missing path, or a file that is not a .zip.
plugincheck pack <plugin folder> <out dir>Writes the folder's release assets into <out dir>: plugin.json, <id>-<version>.zip (every file of the folder, manifest at the root, Finder/Explorer metadata files left out; the same folder always packs to the same bytes), <id>-<version>.zip.sha256, and icon.png when the folder has one; then checks the zip it wrote and prints the tag to publish them under (wasm-v<version>, not marked latest). A manifest the launcher would refuse writes nothing (exit 1).
plugincheck pack <plugin folder> <out dir> --index <file>For a repository publishing several plugins: packs as above under the tag wasm-<id>-v<version>, then sets the plugin's entry in the plugin index <file> (started when it does not exist, every other entry kept; an entry already naming a higher version on that channel, as when packing a hotfix of an older line, is left as it was and the command says so) and says to upload it as plugins-index.json to the wasm-index release. An existing index the launcher would refuse writes nothing (exit 1).

Edit this page on GitHub