v0.13.17

wowlua documentation

main · 3c5316c · latest release v0.13.17source on GitHub ↗

How to write, test, debug and ship World of Warcraft AddOns with wowlua, in reading order. The specification is the complete, normative reference behind these pages.

Guide

  • Installation — install the wowlua binary on macOS, Linux or Windows, update it and pin a version
  • Getting started — create an addon, run it in the game, test it and build a release
  • VS Code — errors as you type, completion, formatting and the debugger in the editor
  • Testing your addon — wowlua test: tests in the emulated client, mocks, world profiles and screenshots
  • Debugging — the dev window in game, wowlua trace, and the debugger in the emulated client
  • AI agents — wowlua mcp: let an agent run, see and debug your addon
  • Libraries and dependencies — depend on libraries and other packages, and share your own
  • Building and publishing — release builds, and uploads to CurseForge, Wago, WoWInterface and GitHub
  • Bring your addon — move an existing addon to wowlua, including one built with the BigWigs packager
  • Command cheat sheet — every wowlua command at a glance

Language

  • A tour of wowlua — the language on one page, for Lua programmers
  • Syntax and sugar — what wowlua adds to Lua's syntax, and the Lua it compiles to
  • Types — annotations, inference, narrowing, generics and strict mode
  • Functions — typed parameters and returns, optional and variadic parameters
  • Classes — classes, inheritance, methods and fields
  • Interfaces and enums — structural interfaces and enums
  • Frames as classes — widget classes: frames and their scripts as classes
  • Decorators — the built-in decorators, and writing your own
  • Modules — import and export, load order and plain Lua files
  • Build info and profiles — wowlua:meta, flavors, build profiles and conditional compilation
  • Debugging helpers — wowlua:debug, wowlua:reflect, profiling, tracing and runtime checks

Standard library

Reference

  • WoW API — every function, event and widget method of the game, and how far the emulated client implements it
  • wowlua.json — the manifest, field by field
  • Errors and warnings — what the codes mean, and every error and warning by area
  • Emulator coverage — how much of the WoW client wowlua test emulates, verified against the real client (generated)
  • Embedding wowlua — @wowlua/web: the compiler, language server and emulated client as WebAssembly

main · 3c5316csource on GitHub ↗