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.10 (2026-11-11)
New
GetAddOnMemoryUsage("MyAddon") measures your addon's own memory after UpdateAddOnMemoryUsage(), as in the game: what its code made that is still alive, the frames and tables the game's functions made for it included. Before, it answered the whole emulated client's. collectgarbage("count") stays the whole client's.
Profiles show what the game's own functions cost: CreateFrame, SetPoint, SetText, textures, aura queries and every other call get an estimated cost in instructions' worth, shown as "native cost (estimated)", so building frames no longer looks free. The weights are estimates, not measured in the game.
wowlua test --profile-out also writes a small summary of every game frame (….frames.json): instructions, the native estimate, memory allocated, garbage collections, events fired, the costliest functions, your addon's part, the frames each test ran and your addon's memory at the end. It covers every frame, so a minute of play fits.
Perf scenarios: a test file with config({ perf = true }) is a perf scenario. wowlua test leaves it out, and wowlua perf run plays it and measures each of its tests per frame: your addon's instructions, the game's functions' estimated cost and the memory it allocates (mean, 95th percentile, worst frame), garbage collections, and each addon's memory afterwards. wowlua perf baseline writes the numbers to tests/perf-baseline.json; wowlua perf run compares against it and fails when a measure got more than 2% worse (--threshold). The numbers are the same on every machine and run.
wowlua test --profile-frames <n> sets how many of the newest frames keep their call trees in the speedscope file (600 by default); 0 keeps the file small.
Recordings always name their worst calls: besides the newest 200 slow calls, the dev window and wowlua prof report keep each recording's 100 slowest (at most 3 per function, so one function that is slow hundreds of times can't push out the rest) and every slow call summed per function and per root, with when the slowest happened. Each second of the frame time chart names its worst call, and the report numbers the worst seconds on the chart. Exports also got smaller: each stack is saved once. Recordings exported by older versions still open.
Beast Training: as in WoW Forever, the hunter's Beast Training is a spell. Give its list with mock.defineBeastTraining({ services = { … } }), then cast it (mock.player:useSpell(5149)) with a pet out: the game's trainer window opens for your pet and C_Trainer.GetTrainerType() answers Enum.TrainerType.Pet. The services cost your pet's training points (mock.setPet(wolf, { trainingPoints = 10 }), C_PetInfo.GetPetTrainingPoints(), UNIT_PET_TRAINING_POINTS) and need your pet's level. As in the game, your addon's BuyTrainerService is forbidden there; a secure click on the game's Train button teaches the pet: the ability shows up in the pet's spellbook and C_SpellBook.IsSpellKnown(id, Enum.SpellBookSpellBank.Pet) is true for it. Dismissing the pet closes the trainer. The details of the list and the events are not yet checked against the game.
Fixed
Unit frames follow the game's click bindings (C_ClickBindings), as in the game: by default only a plain Left click targets and a plain Right click opens the menu, so on a frame with *type1 = target, Shift-Left or Alt-Left does nothing, and so does a click whose spell is for friends only (ctrl-helpbutton1 without a ctrl-type1). C_ClickBindings.SetProfileByInfo moves them (Target on Shift-Left targets with Shift-Left), GetProfileInfo reads them and ResetCurrentProfile puts them back. MakeModifiers() answers the keys held in a test (mock.setModifiers: Shift 3, Ctrl 12, Alt 48, Cmd 192) and GetStringFromModifiers names them. Before, the click bindings were stubs and such clicks went through in wowlua but not in the game.
A mount, a battle pet or a toy can be dragged onto an action bar, as in the game: C_MountJournal.Pickup(index) puts the journal's displayed mount on the cursor (GetCursorInfo() answers "mount" and its mount ID), C_PetJournal.PickupPet(guid) the pet ("battlepet" and its GUID), and C_ToyBox.PickupToyBoxItem(itemID) a toy you have (a plain "item" with its ID and link). Placed on a slot (PlaceAction, or mock.dragTo onto an action button), GetActionInfo(slot) answers "summonmount" with the mount ID, "summonpet" with the GUID, or "item" for the toy, and GetActionTexture their icons. Before, the three pickups did nothing. Using such a slot doesn't summon anything yet.
Cmd (the Mac's Meta key) is a modifier, as in the game: hold it in a test with mock.setModifiers({ meta = true }). IsMetaKeyDown() and IsModifierKeyDown() answer true, the macro conditions [mod:meta] and [mod] match (also in secure snippets), and a key pressed with Cmd held runs its META- binding (mock.pressKey). Before, Cmd could not be held and IsMetaKeyDown() was always false.
On the Mac, a Cmd+Left click is a right click, as in the game while Options › Mac › "Use Command + Left Click as Right Click" is on (the default): mock.click(frame) with mock.setModifiers({ meta = true }) arrives as RightButton, and Cmd isn't held during it. Turn it off in a test with C_CVar.SetCVar("MacUseCommandLeftClickAsRightClick", "0") to click with Cmd+Left. Tests on Windows (test.platform = "windows") click as given.
Animations follow the clock: time passed with mock.advanceTime plays them on (they finish at the next frame), GetProgress() and GetElapsed() read where they are now, and a wowlua screenshot draws them there, so a window's fade-in no longer looks missing after a test waited with mock.advanceTime. Time before an animation's Play and while it is paused doesn't count.
Button:Click() on a disabled button does nothing, as in the game: no OnClick, so a secure button's click action on a disabled button does nothing either. Click(button, isDown) passes isDown on, and a button's Click() inside its own click does nothing. A CLICK key binding on a disabled button does nothing too.
SelectTrainerService sends TRAINER_DESCRIPTION_UPDATE when the choice changes, so Blizzard's trainer window follows a choice your addon makes. An index past the list clears the choice, and a trainer's list comes with its first available service already chosen, as the game's trainers showed.
C_SpellBook.IsSpellKnown(id, Enum.SpellBookSpellBank.Pet) is true for every spell in your pet's spellbook (mock.setPet's spells), not only for spells a test defined as known.
Text in your addon's own fonts (a .ttf in its folder) is measured with that font, as in the game: GetStringWidth, wrapping and truncation match the game, and screenshots draw its words without gaps inside them ("SILVE RMANE", "M ana"). Before, such text was measured as Friz Quadrata. This works without --game-data too.
A font string with no width of its own (one anchor, no SetWidth) keeps each line whole, as in the game. Before, a label could break before its last character ("Health" over ":").
In the 3D world (--world), mock.moveTo with a map position puts the player on the highest floor there, so Stormwind's streets work: before, the player stood on the ground under the city and the screenshot showed the city's underside. Give world = { y, x, z } to stand somewhere lower, such as inside a building.
A frame whose level you set to a new one (SetFrameLevel) is drawn above the frames already at that level, as in the game, and setting it back within the same frame changes nothing. A tab's label now shows over a selection marker made at that level before the tab's level was set.
wowlua prof report and wowlua profile snapshot find your exported recordings and snapshot where WoW saves them: in your addon's own SavedVariables file (SavedVariables/<YourAddon>.lua), also per character. Before, they only looked for a WowluaDevDB_<YourAddon>.lua that WoW never writes, and said nothing was exported. When there really is nothing, the message now says to choose Mark for export before /reload or logging out.
Walking away from an open mailbox closes it, as in the game: past 5 yards (unit:setDistance, or the player moving away) the mail ends with SECURE_TRANSFER_CANCEL and PLAYER_INTERACTION_MANAGER_FRAME_HIDE, and C_PlayerInteractionManager.IsInteractingWithNpcOfType(17) turns false. There is no MAIL_CLOSED, as in the game.
A frame anchored to a panel whose OnSizeChanged resizes the panel is lost as in the game also when nothing asks for its place before the frame ends, and when the panel was built hidden and shown later; before, wowlua placed it.
IsRectValid() answers true once a frame has been laid out (its size or place asked for, or the next frame), not always false.
GetPoint(i) lists a frame's points in the game's order (TOPLEFT first), not the order they were set in.
EditBox:Insert tells OnTextChanged with userInput true, as the game does, and HighlightText(start, end) with the end before the start selects to the text's end.
A button's ClearNormalTexture (and the other states') leaves the texture shown, and ClearModel makes GetModelFileID answer nil, as in the game.
A frame given OnMouseUp, OnMouseDown, OnEnter or OnLeave, or EnableMouse(true), also answers true to IsMouseClickEnabled and IsMouseMotionEnabled.
A button's SetNormalFontObject, SetHighlightFontObject and SetDisabledFontObject refuse an unknown font name with the game's message.
GetBindingText("SHIFT", 1) gives s and GetBindingText("META") gives CMD on a Mac: a modifier key alone is named as the game names it.
C_AddOns.GetAddOnInfo answers a load-on-demand addon as not loadable with "DEMAND_LOADED", also after it is loaded.
The PvP ranks 11 to 13 need the reputation the game says (16600, 19100, 21750), and ranks 2 to 6 have their "Rank N Rewards".
C_MountJournal.GetMountInfoByID(6) answers the Brown Horse, not collected.
A heal prediction calculator's incoming heals overflow 1.05 by default, as in the game, so GetMaximumIncomingHeals matches the game's.
C_AuraContainerUtil.ProcessAuraTooltipBackdropOptions keeps a backdropInfo you give as you gave it.
GetTextureFilePath() answers an atlas's file ID, and nil for an addon's texture that isn't there.
C_UIColor.GetColors() gives COMPACT_UNIT_FRAME_FRIENDLY_HEALTH_COLOR an alpha of 1 on camelot, as the game does.
A texture path ending in .jpg finds the game's .blp file, as .tga and .png already did.