mux package

mux is the built-in server API available to every Lua module. It is supplied by the game server rather than loaded with require.

Subpackages

PackageDescription
mux.errorStructured errors, checked error codes, and error-handling helpers.
mux.configRead-only access to scalar server configuration.
mux.comsysTrusted communication-channel management.
mux.telnetTelnet protocol state and capabilities.
mux.sessionInteractive flows and active player-session information.
mux.textStyled-text validation, formatting, and measurement helpers.
mux.worldDatabase objects and their persistent state.

Functions

The root mux module provides functions for common in-game operations that do not yet belong to a larger subpackage.

FunctionDescription
mux.check_dbChecks and repairs the game database without notifying a player.
mux.logAppends a message to a named file under game/logs/.

Availability and limits

Runtime database operations are unavailable during @lua/check. The Lua sandbox does not expose filesystem, operating-system, debugger, FFI, coroutine, or dynamic code-loading APIs. VM memory and persistent-state limits still apply while using these functions.