You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
0.13.8 (2026-11-01)
New
Units have places: a unit's world = { y, x, z } and facing in mock.spawnUnit, unit:update and world profiles. When your character has a place, a unit's distance follows the two places: a unit given only a distance stands that far in front of you, mock.moveTo and a unit's new world change the distances your range checks see (CheckInteractDistance, UnitInRange, spell ranges), and unit:setDistance moves the unit. UnitPosition answers a unit's height too.
Your character moves: the game's movement functions the key bindings call (MoveForwardStart, TurnLeftStart, ToggleRun, ToggleAutoRun, …) move and turn your character each frame at the game's speeds, telling PLAYER_STARTED_MOVING and PLAYER_STOPPED_MOVING; the units' distances follow. A debug session can hold a key down and let it go (wowlua/input's keyDown and keyUp).
A debug session can turn the 3D world on and off while it runs (wowlua/showWorld), and its input turns the camera and your character with the mouse (look), zooms (zoom) and targets the unit you click in the world (clickWorld); wowlua/worldPoint tells the place of the world under a point of the screen.
Units as NPCs: a world profile's unit can be a vendor (its items, prices, limited counts, repairs), a class trainer, have gossip, or be a banker, mailbox, auctioneer or flight master; attack, threat and loot set how it fights and what it drops. Talking to a vendor opens its window directly, as in the game (mock.defineVendor), and in a debug session a right-click on a unit in the world talks to it.
Units in the 3D world: with --world, your character and the units stand in the world as their models, walking, running or lying dead; a unit shows its data's displayID (or npcID's creature).
Trees and props in the 3D world: with --world, the zone's trees, rocks, fences and props stand where the game places them, outside and in the buildings.
With --world, your character's model moves as it goes: it runs turned toward a strafe, walks backwards, and shuffles as it turns in place. While the right mouse button is held over the world, the turn keys strafe, as in the game.
Playing in a debug session: the mouse and keyboard work as in the game at once (wowlua/input's mouseMove, mouseDown, mouseUp, wheel and text): frames under the mouse are hovered, clicked, dragged and scrolled; over the world, the unit under the mouse is moused over (mouseover, its tooltip), clicked to target, right-clicked to talk to, a drag turns the camera and the wheel zooms; text goes into the focused edit box, with Backspace and Delete.
Edit boxes, sliders and the other kinds of widgets the game lets take the mouse do so without EnableMouse, as in the game; before, only buttons did.
Names over units: with --world, a unit's name floats over it in its reaction's color, an NPC's title under it (a profile unit's "title"), as the game's name settings say (UnitNameInteractiveNPC, UnitNameHostleNPC, …). Units get their nameplates from the game's nameplate settings (nameplateShowEnemies, nameplateShowFriendlyNpcs, nameplateShowFriendlyPlayers), and a unit with a nameplate shows no name.
A test world in Northshire: the world profile northshire comes with wowlua (WoW Forever). Name it with config({ profile = "northshire" }) or test.profile, and your character starts at Northshire's start among test NPCs: vendors of gear with the game's own items and stats, repairs, a trainer of each class, a banker, an auctioneer, a postmaster, a flight master, gossip, and things to fight.
Solid trees and props: with --world, the zone's fences, posts, crates, trees and the props in buildings stop your character and the units, hold them up and block line of sight, by each model's own collision shape. Your character and the units are as wide as their models: you stop with your shoulder at a wall.
Solid buildings: with --world, your character and the units stand on buildings' floors and are stopped by their walls, the camera stays in front of walls, and a spell at a target behind a wall or a hill is refused ("Target not in line of sight").
Buildings in the 3D world: with --world, the zone's buildings (the abbey, inns, towers) stand on the terrain where the game places them.
The 3D world's terrain: wowlua screenshot --world draws the zone's terrain from your WoW installation behind the UI, as far as the game's view distance reaches, and wowlua test --world stands your character and the units on its ground. Off by default.
The camera: CameraZoomIn, CameraZoomOut, the MoveView… functions, FlipCameraYaw and the saved views move a camera behind your character, from the client's camera settings; GetCameraZoom tells its distance.
Nameplates follow their units: a unit's nameplate shows while the camera sees it within 45 yards, sits where the unit is and moves with it (NAME_PLATE_UNIT_ADDED and NAME_PLATE_UNIT_REMOVED as it comes and goes).
Ranges and facing: the action bars' hotkeys turn red as the target walks out of a spell's range, and a spell pressed out of range ("Out of range.") or, for one that needs it, at a target behind you is refused, as in the game.
Units act: a unit's actions in a world profile or mock.spawnUnit make it attack you while in reach, cast a spell every few seconds or turn to you when you come near ({ at = 0, ["do"] = "attack", damage = 50 }, { every = 8, ["do"] = "cast", spell = 133 }, { within = 10, ["do"] = "face" }).
Units walk: unit:patrol(path), unit:follow(), unit:approach(), unit:flee(), unit:moveTo(place) and unit:stop(), or a unit's movement in a world profile, make it walk on its own, its distance to you following.
A debug session tells what the game's chat windows show (wowlua/chatLines: each line's text and colour, your addon's prints too) and sends a chat message as the player would type it (wowlua/input with chat: your addons get its CHAT_MSG_SAY, CHAT_MSG_PARTY, …), for wowlua Studio's chat tab.
The game's graphics settings: a debug session runs as fast as maxFPS lets it (maxFPSBk while wowlua Studio is in the background) and, with vsync on, at most the display's rate (your monitor's own in wowlua Studio), and GetFramerate answers the frames a second it really runs at. With --world, the 3D world is drawn at the render scale (RenderScale, 0.33 to 2) and stretched to the screen, the UI sharp over it.
A debug session's units tell whether you can see each unit (sight) and where it faces (facing), and its scene tells which items stand over units (nameplates, names), for views of the world from other cameras.
Changed
A faster 3D world: frames with many units, names and nameplates draw many times faster (Northshire among its test NPCs: 50 ms to about 2 ms a frame), the units' models are posed on the graphics card, and a debug session's frames take far less time with a large UI: hidden frames cost nothing each frame, and what didn't change since the last frame isn't laid out again (SuuUI with Blizzard's UI: 13 ms to 1.2 ms a frame).
In a debug session, each frame moves time as far as it really took: your character runs at its speed however fast the frames come. Before, every frame counted 1/60 s, so a slow frame rate slowed the game down.
Fixed
A debug session in real time keeps to the game's frame limit: at maxFPS 120 it runs at 120 frames a second, not about 110.
A creature the client's cache knows from a newer client now shows its model (its displays were missed).
A world profile's units' npcId was ignored; it now names the creature, as npcID does in a test.
GetRealmName and GetNormalizedRealmName always gave Realm in a test; they now give your character's realm from the world profile or mock.setPlayer, as UnitFullName and chat already did (GetNormalizedRealmName without spaces and hyphens).