Skip to main content

Luna

Luna lets a whole system (state, synchronisation between cores, a client interface) be written in Lua on the server and Python on the client, without engine changes. Luna runs parallel to QuestManager, which retains quest state and dispatches login, logout, and when blocks. The bridge runs alongside it. It is several pieces that work together; each page explains one.

PageWhat it explains
The Lua bridge and the dispatch boundaryThe single boundary every script call crosses, and the coroutines it owns
Luna transport and protobufOne message layer for every channel, client to game to database
How Forge modules workStateful modules loaded at boot, written in the same file as their quest hooks
The event busEngine events delivered to Lua subscribers
Luna on the Python clientWindows registered as handlers for server messages
Quest compiler, source maps and the Lua debuggerSource maps and the embedded debugger
Lua annotations and the generated stubsHow the engine's Lua API is documented for the editor