OAP Lizzard A game interface engine
Game interfaces, outside the game Settings

Building Lizzard / The development journal

Project journal

Milestones, decisions, experiments, mistakes and fixes, newest first. Open an entry for what was checked, the outcome and what is still uncertain. An entry written after the day it describes says when it was written.

Journal entries

Find entries

1–9 of 9 entries for Stage 5b · Stand-in game (of 61 in the journal), newest first. Show all

Stage 5b · Stand-in game Milestone follow-up

A Cooldown Manager and a flight master for OAP Lazy Stuff

Two of OAP Lazy Stuff's helpers couldn't be tried in Lizzard: marching ants round a missing buff, and skipping a flight master's chat. Blizzard's Cooldown Manager now reads its spells from the game's own tables, and a test can open an NPC's chat. The first surprise: an empty buff row turned out to be correct.

The lower middle of the game screen. A player portrait reading Lizzard, level 10, sits top left. To the right, one round blue shield icon sits above a row of four spell icons, a hammer and three golden-red seals, and below them a row of five smaller icons. The empty action bar and the menu buttons run along the bottom, with a yellow tip saying You have unspent Talent points.
A fresh Forever world in Lizzard with a level 10 Paladin named Lizzard and OAP Lazy Stuff loaded. A test moved Devotion Aura, the Seals and Blessing of Might into the tracked buffs, as the Cooldown Manager's settings window does. Devotion Aura's shield shows in the top row because the stand-in has the aura; the others hide until their buff is up, as the game's buff icons do. Below it sit the Essential and Utility rows, filled from the game's tables.
Read the entry: A Cooldown Manager and a flight master for OAP Lazy Stuff

OAP Lazy Stuff watches the Cooldown Manager's buff row and puts marching ants round a buff that has dropped off. In Lizzard that row stayed empty, and Blizzard's code complained as it loaded. I asked Claude to work through the open issues for OAP Debug and OAP Lazy Stuff.

The Cooldown Manager asks the game which spells each class can track. Lizzard had no answer at all, so Claude built one from the game's cooldown tables: a level 10 Paladin's list now holds Devotion Aura at its highest known rank, the Seals and the Blessings. They come from the same set as the buffs my own, higher-level Paladin showed in game.

The row was still empty. More missing pieces turned up behind the first, the worst being an event the game sends at login that Lizzard never did, so the manager's settings never loaded. With those in, the row was still empty, and this time Blizzard's code was right. Every tracked buff starts hidden until the player picks it in the Cooldown Manager's settings. The seven buffs in my row in game were my own choices. A test now picks them the same way, and the icons appear.

The flight master was simpler. Lizzard has no NPCs to talk to, so a test can now open a chat with the options the game gave at Devrak in the Crossroads: one line, "I need a ride." Without the addon, Blizzard's chat window opens under his name. With OAP Lazy Stuff loaded it picks the ride before the window gets a look in, which is the whole point of the addon.

Along the way, OAP Debug's options page raised an error each time it opened. The cause was a small difference between plain Lua and the game's version of it: the game hands a Settings page its frame through a call that plain Lua quietly drops the extra values from. Lizzard now behaves like the game.

None of this has been checked against the game beyond the lists it copies. A Paladin's auras on the stance bar and the minimap's tracking list can't be worked out from the tables, so the probe will record them from my character in game next. After the ride is chosen, Lizzard shows no flight map yet, and Devrak has a name but no face.

Follow-up, : The probe recorded my Paladin's stance bar and minimap tracking list in game, and both now work in Lizzard. The game's tables give every place on the stance bar but the first: Devotion Aura, like the first stance or form of every class, has no row. So Claude took the spells the game actually showed on my bar from the capture, and the tables do the rest. A level 30 stand-in now gets my four auras in my order and at my ranks. The aura that is on shows a different, brighter icon in the game, and that came from the capture too. The tracking list is the stand-in's tracking spells, Sense Undead for a Paladin, then the 23 town and quest filters my game listed, since no table holds them. The first try never finished loading: Blizzard's tracking button answers each change by setting every entry again, and Lizzard announced every one of those as another change. Now only a real change is announced. A stance button's tooltip also read "within $a1 yards": spell text can name an effect's radius, and Lizzard now fills in the 30 yards from the tables. Still to check: the town filters' places in Blizzard's tracking menu, which need one more capture, and other classes' first stance or form.

Link to this entry
Stage 5b · Stand-in game Milestone follow-up

Items in the bags: Blizzard's bag window fills up

Lizzard's stand-in player always had empty bags, so an addon that marks bag items had nothing to mark. Now a scene puts items in the bags by their IDs, and Blizzard's own bag window shows them with the game's icons, counts and stack sizes.

A dark bag window titled Combined Backpack with 26 square slots in three rows. Two slots near the top right hold a bundle of cloth marked 15 and a short sword, a slot on the bottom row holds cloth marked 5, and the rest show faint grey bag icons. A small tooltip reading Linen Cloth sits above the search box. The bag bar at the bottom edge shows the backpack marked 23.
A fresh Forever world in Lizzard with a scene's bags: a Small Brown Pouch worn in the first bag slot, 15 Linen Cloth and a Worn Shortsword in the backpack, and 5 more cloth in the pouch. Blizzard's combined bag window lays them out itself and shows each icon and count from the game's data; the mouse is over the cloth, whose tooltip gives its name. The empty slots show the faint icon of the bag they belong to, as Forever's own bag code asks.
Read the entry: Items in the bags: Blizzard's bag window fills up

OAP Lazy Stuff draws crosses on gear the character can't use, and its test session could only try them on blank slots. I asked how we could fill bag and bank slots, and agreed the plan Claude proposed: items by ID in the scene, everything else read from the game's data, bags first, then worn gear, then the bank.

A scene now names the bags worn and the stacks in them. The rest, such as name, quality, icon, stack size and a bag's number of slots, comes from the game's own item tables, so a Small Brown Pouch holds six because the data says so. The game's bag and item functions answer from that, and Blizzard's bag window does the rest itself.

Two faults turned up on the way, and neither was about items. The empty slots had no art: Blizzard's bag update stopped at a quest question Lizzard couldn't answer, before it set each slot's picture. And that error never reached Lizzard's report, because Blizzard catches such errors and hands them to its own error window. Lizzard now reports them too, and test sessions see errors that were hidden before.

Then the filled bags stayed blank. Blizzard's code waits for a 'your item has loaded' event even when the item is already to hand, and Lizzard never sent one. It now answers at once.

A Bags dialog on the Units tab changes the bags without editing a file, and the probe now records the real character's bags in game, so a scene can start from mine. Still to do: worn gear, the bank, moving items, and the rest of the item tooltip.

Follow-up, : The same afternoon, worn gear. A scene now says what is worn in each of the nineteen gear slots, by item ID, and Blizzard's character window shows it: the last picture in the album has a shirt, trousers, boots and a two-handed hammer on a test Paladin, with the hammer's tooltip. Which item types go in which slot is a rule the game keeps in its code, not its tables, so Lizzard's list of it is a guess until the probe brings back what my character's game says fits each slot. The character window's gear flyouts and OAP Gear Helper's strips can now list items from the bags, and the Units tab has a Gear dialog beside Bags. The window's stats panel is still blank: Lizzard has no character stats yet. Next, the bank.

Follow-up, : In the evening, the bank, and a first check against the game. My Priest's capture came back with its bags and gear, and loaded into Lizzard they gave the same list of what fits each gear slot as the game did, all but one: the game kept a one-handed knife out of the off hand, because a Priest can't dual wield, and Lizzard's guess had let anyone. That is fixed. Then the bank: Forever's bank window is built from bank tabs, the first the bank's own slots and the rest its bags, and a scene now says how many tabs are bought, which bags are in them and what is stored. A banker's visit opens Blizzard's own bank window beside the bags, as in the first new picture. Getting there turned up two faults: the bank asked for its tabs while it loaded, before the game could know them, and a decorative line spilled out of the window because Lizzard ignored a texture's scale. How many slots the bank itself has is a guess until a capture made at a banker.

Follow-up, : Later that evening, the bank against the game. I opened my bank at a banker in Ironforge, ran the probe and took a screenshot. Lizzard had guessed the bank's own tab at 24 slots, the old bank's size; the game has 48, six rows of eight. That number, the inventory slots of the bank's bag slots and the price of the next tab (10 silver) now come from the capture as facts about the game. Loaded with the same seven stacks, Lizzard's bank window matched the game's almost slot for slot, but up close its empty slots were wrong: no rounded frame, and a large wing emblem cut off at the edge. Two drawing rules were behind it, and the screenshot settled both. A button texture that a template declares again fills the button, rather than keeping the 64-pixel size it inherited. And an atlas flagged to tile is not tiled unless the XML asks for it, so the whole emblem shows, scaled down. The picture shows the game on the left and Lizzard on the right after both fixes. Still missing: the banker's portrait, as Lizzard has no banker to show, and the chest icon on the page tab, which isn't in the exported art.

Link to this entry
Stage 5b · Stand-in game Milestone follow-up

Spells dragged from the spell book onto the action bar

I wanted to drag a spell from the spell book onto an action bar. Trying that small step showed why none of Lizzard's action buttons had ever worked.

Lizzard's game screen with the Spellbook open on its General page (Attack, Dodge, Armor Proficiency, Languages, Block, Parry) and, at the bottom, the main action bar with a small sword icon over its third slot.
Attack has been picked up from the General page of the spell book and is held over the third slot of the main bar: its icon follows the mouse, drawn by Lizzard as the game draws a held spell in place of the pointer. The stand-in player, named Lizzard, is a level 10 Paladin.
Read the entry: Spells dragged from the spell book onto the action bar

Lizzard had no cursor that could hold anything, and every action bar slot was empty. Both now exist as Forever's own interface code expects: a spell follows the mouse into a slot, or swaps places with one already there.

Trying it with Blizzard's real interface found four faults deeper down. A click looks up its action with a three-part lookup that Lizzard read as a single name, so no action button's click had ever done anything. Every button had been given slot 1. Every bar showed its first page. And a filled button drew its slot art over its icon.

Not there yet: the bars empty on reload, and nothing can be cast from them.

Follow-up, : Trying it, I found the drag juddery. The spell's icon was part of a picture redrawn at most 30 times a second, so it lagged behind the mouse. Making it the window's own pointer fixed that. Pictures taken without a window, and the Godot game, still draw the icon.

Follow-up, : The journal now shows the moment before the drop beside this entry. Open the picture to see Attack held over slot three, then step to the next frame to see where it landed.

Follow-up, : The spell book and action bar now fit in a small journal thumbnail. Open it at full size to see the sword poised over the third slot.

Link to this entry
Stage 5b · Stand-in game Milestone follow-up

Forever's group finder, with the other players simulated

Forever's Looking for Group window now opens in Lizzard, and its Listing, Browse and Who tabs work against a simulated server and a population of invented players, so an addon about forming and finding groups can be tested without bothering anyone in game.

Two enlarged pixel views of the same round portrait side by side: a green eye in a grey lid, the pupil's position different in each.
Shows that the eye moves: the portrait from two runs of the same scene, stopped 3.4 and 3.7 seconds after login, enlarged six times without smoothing. The pupil has moved between them, as the searching loop plays Blizzard's 77 frames over two seconds.
Read the entry: Forever's group finder, with the other players simulated

I'm writing an addon built around forming and finding groups. Trying that in game means real people answering real invitations, so the game's side had to be simulated.

The window didn't open at first: at login Blizzard's code stopped on three questions Lizzard didn't answer before it reached the line that loads the finder.

Behind it is a simulated board of 80 invented people, with races, classes and roles the tables allow together, some listed alone and some in groups. /who searches them, they accept invitations, and a group invites the player after they list themselves. They're drawn from a fixed seed, so every test sees the same people. Not yet compared with the game.

Follow-up, : Compared with seven of my screenshots at level 22: the categories, activity lists, controls, search results and Who list match. The comparison found one engine fault, the Listing tab's activity names not drawn, and made the invented people more like real ones: surnames, places within zones and a busier board.

Follow-up, : Two days on, the divider above the list, which Lizzard drew as a tall line through the window, lies along the list's top as in my screenshots. Lizzard learned to turn a texture a quarter turn, and its ends first came out as long wedges past the window's edges before each piece was turned into place. A capture from the game corrected which activities a character is offered. Still blank: the eye while listed, whose pictures have been asked of the data export.

Follow-up, : The eye in the finder now watches while the player is listed, playing Blizzard's own animation. Its four picture sheets have no names in any file list, so the data export now delivers such files by number. Not yet compared with the game: there is no in-game screenshot of the eye.

Follow-up, : I took the screenshots the eye was waiting for. Listed, the game's eye is wide open, and it isn't the still eye the window shows when nothing is listed: the pupil and the highlight differ, so it is a frame of Blizzard's animation. Lizzard's listed eye shows the same kind of open frame. Its first picture here had caught a half-closed eye, another moment of the same loop rather than a fault. Claude first blamed the order in which frames are stacked and undid that change once a closer look showed the two already matched. Stills can't show the movement itself, so that is still to compare.

Link to this entry
Stage 5b · Stand-in game Decision follow-up

A character is a sheet; a scene only changes what changes in play

The characters Lizzard plays with are now made once, as full sheets, and scenes use them, changing only their passing state. A player's sheet holds its professions, the first of the parts each game window needs.

Read the entry: A character is a sheet; a scene only changes what changes in play

The Professions window had first meant taking professions straight from a capture of my own game, behind the scenes. Talking it through, we settled on something cleaner: a character is made once, as a sheet. A player's sheet is the whole character, one part for each game window as it is built; everyone else gets a short one, which is all the game shows of another character.

A scene now points at its characters and keeps only what changes in play: health, power, buffs and the like. Fixing a character fixes every scene that uses it, and a test can load a level 10 version as the player, run, then a level 40 one.

A starter character as a miner showed a limit the tables don't state: the card has two spell buttons, and which two spells the game shows for Mining is not known yet.

Follow-up, : The rest of the plan, built the same night. A small in-game addon copies the target, or the player, as text that the editor turns into a new character, leaving out what the game keeps secret and saying so; it hasn't been tried in the game yet. The Units tab became a scene board, each slot showing its character and only what the scene changes.

Link to this entry
event Stage 5b · Stand-in game Milestone

Clicks, targets, macros, actors and boss fights

The stand-in game learned to record every click and what it asked for, to target and run macros, and to put saved actors, bosses and encounters into a scene.

Read the entry: Clicks, targets, macros, actors and boss fights

My addon buttons did nothing because they cast spells. I wanted a record of clicks first, then basic casting. Every click is now recorded with its button, addon, scripts, errors and the game action it asked for. On the way it turned out that no slash command had ever worked in Lizzard: one missing function stopped Blizzard's slash-command file from loading.

An actor gallery keeps players, enemies, bosses and NPCs to put into a scene. I had never seen boss frames in five-player dungeons, and a probe in my OAP Party Utilities addon had measured that Forever's dungeons never fill the boss units. So a dungeon boss becomes the target, and only a raid boss brings up Blizzard's boss frames. Not yet compared with screenshots from the game.

Link to this entry
event Stage 5b · Stand-in game Mistake and fix

Party frames: called fixed too soon, then fixed with the wrong layouts

Issue 1 was closed on a frame-tree match, reopened when I asked whether the raid-style frames were proven, and then fixed in a way that applied my layouts without my asking.

Read the entry: Party frames: called fixed too soon, then fixed with the wrong layouts

The party frames matched the game's frame capture, so issue 1 was marked fixed. I asked whether the raid-style frames had been proven. They hadn't, and the issue was reopened minutes later.

The probe was extended to capture my Edit Mode layouts, and with them the raid-style frames landed where the game has them.

Then I asked whether I had asked for my layouts to be applied anywhere. I hadn't. They had gone onto Forever's Edit Mode too and put its bars in the wrong place. Captured layouts now apply only when a run asks for them.

Link to this entry
event Stage 5b · Stand-in game Milestone

Auras, measured before they were built

Blizzard's target, focus and boss frames needed the aura system. It was built in steps, each unknown measured in game first, and units can now carry buffs and debuffs read from the game tables.

Read the entry: Auras, measured before they were built

Blizzard's target, focus and boss frames need the aura system, and loading it brought 107 load errors, so its groundwork came first. A capture showed that addons can't see the private-aura functions at all.

Nothing was guessed: I chose to measure first, so a capture formatted 62 durations under every setting and Lizzard's formatter was built to it.

Units now carry buffs and debuffs, with spell facts from the game tables and a default scene of each class's own buffs on the group and debuffs on the target. My verdict on the new Units tab was still to come.

Link to this entry
event Stage 5b · Stand-in game Milestone

A stand-in game, driven from the controls window

Before the first real addon, I wanted enough of Blizzard's interface to show party frames, on a stand-in game controlled from the tool window. Units, the group and their events were built and measured against the game.

Read the entry: A stand-in game, driven from the controls window

I asked whether forming a group in Lizzard would fire every event the game would. A probe recorded the real events, in order, while I formed a party in game, and Lizzard now fires them the same way; 88 of 94 probe cases match. The probe's first try set off the game's 'blocked' dialog, so events the game marks as restricted are now left out.

Loading Blizzard's unit frames brought a long tail, from 27,400 text strings to three loader bugs. By the evening the party frame loaded without errors in both games. Still open: comparing the party frames with screenshots from the game.

Link to this entry