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

31–40 of 61 entries, newest first.

event Game data · The game's own data Investigation

A 9.4 second pause when a fight started

Starting a boss fight froze the logic thread. Measured first: 9.4 s of queries, nearly all reading spell facts one spell at a time from tables with no indexes.

Read the entry: A 9.4 second pause when a fight started

I asked for it to be measured before anything changed. Nearly all of the 9.4 seconds was the enemy's default debuffs: five queries for each of 391 spells, on tables with no keys or indexes, so every lookup read the whole table.

The first fix made it worse, 18.6 seconds, because on a table with no index every row is tested against every value. Handing the database the whole set at once took it to 210 ms.

My view: a read-only data contract is no excuse for slow access, and as the database administrator I'd change the pipeline if asked.

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 Painting · Drawing the picture Decision

Painting moves to the graphics card, software kept on a switch

Dragging things around in Edit Mode was sluggish. Lizzard was repainting the whole picture from scratch, in software, every time anything changed.

Read the entry: Painting moves to the graphics card, software kept on a switch

I called the first suggestions sticking plasters, not the wound. Repainting only the part that changed I ruled out as a nightmare to get right without screen corruption. A test settled where the time went: even with the picture never sent to the screen, painting still took about 35 milliseconds.

So the painting moved to the graphics card. That brought it down, but most of what remained was copying the picture back from the card. Letting the card show the picture itself cut the drawing thread's time to 0.9 milliseconds a picture.

We kept the software painter as a reference: a test draws the same scenes both ways and fails if they drift apart. Not checked at the time: whether the mouse still reached the game through the card's surface.

Link to this entry
event Game data · The game's own data Correction

Game data: the tables first, and no guessed spell values

Two rulings on one day about where game facts come from: spell descriptions show only values the tables prove, and the database comes before in-game captures, which stay as evidence.

Read the entry: Game data: the tables first, and no guessed spell values

Lizzard's spell tooltips filled in values more crudely than they looked: one effect was shown as a plain number though it grows with spell power. I ruled out measuring in game instead: a few snapshots only give guesses, which is worse than no data. Descriptions now show a value only where the tables prove it, and a placeholder such as [amount] otherwise.

Later I asked why game data was still being imported from the probe rather than read from the database. The session turned that into a blanket ban on in-game data, and I corrected it: captures are useful as evidence and a last resort. The rule is database first.

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 1 · Lua from C# Fix

A test host crash traced to Lua's stack

A harmless-looking commit crashed the test host with heap corruption. The real fault was older: C# pushed values onto Lua's stack without asking for room.

Read the entry: A test host crash traced to Lua's stack

After commit 33bb727 added logging of Blizzard's own consistency reports, the test host crashed and Windows reported native heap corruption. I chose to find the cause.

Lua promises a C function only 20 free stack slots and doesn't check pushes beyond them in a release build. GetChildren on a big frame, in the probe's template dump, pushed far more and overwrote the heap. The new logging had only moved memory around enough to make it fatal.

Every push now asks Lua for room first; past Lua's limit it becomes a Lua error. Two tests push 5,000 and 10,000 values. 767 tests pass with the logging still on.

Link to this entry
event Tools · Project tools Mistake and fix

A UI guide, after a tab built without one

The new Units tab worked but was hard to use, and no UI guidance had been followed. A project UI guide was written from public guidance and the controls window reworked to it.

Read the entry: A UI guide, after a tab built without one

I found the Units tab functional but not easy to use, and asked whether guides on UI design had been read. They hadn't. So Nielsen's usability heuristics and Microsoft's Windows design guidance were read at the source, and a project guide of 29 rules written from them, each naming its source.

The Units tab became a list with a details panel and an Add dialog, and the other tabs followed the guide. A different toolkit wasn't needed: the faults were in the design, not Windows Forms. Every new tab or dialog is now laid out against the guide first.

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 Probe · Measured in the game Decision

Facts in the engine, guesses on a register

Every guess the engine makes is now listed with its state on Retail and on Forever, and measured facts ship with the engine in one place, apart from the player's own state.

Read the entry: Facts in the engine, guesses on a register

Asked whether Lizzard's guessed answers were recorded, I said a register wasn't optional, and that it must be split by game: a Retail measurement says nothing about Forever. It started with 381 rows, and importing a capture now checks every answer against Lizzard's own. The first check found the item quality colours one quality out.

My next rule: facts found in the game ship with Lizzard, in one place ('Facts in one place please'), and the player's own settings and keys stay apart. Sorting them found a bug: a capture's few sample spells had replaced the whole spell lookup, so every other spell answered nothing.

Link to this entry
event Stage 5c · Game loop and Options Milestone

The live window keeps the game's settings, chat and bars

The game's own settings are now kept per game and bridged with the toolbox, and chat, the bag bar and the action bars work as in game.

Read the entry: The live window keeps the game's settings, chat and bars

I asked for the game's settings to be kept per game and bridged cleanly with the toolbox. The interface scale is now the game's own setting, shown in both places, and the in-game AddOn List and the toolbox's list are one list.

Sent chat messages come back as the game's chat events. On the way it turned out that Forever keeps per-character files in a different folder layout from Retail's, so Forever's chat windows and macros had never been read. I ruled that Edit Mode applies Blizzard's presets only. To check on Forever later: end caps, key ring art and bar positions.

Link to this entry