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–10 of 11 entries for Game data · The game's own data (of 61 in the journal), newest first. Show all

Game data · The game's own data Milestone follow-up

The Talents tab shows the character's talents

Forever's Talents tab, which was disabled and empty, now shows the class's three talent trees with their own art, the ranks the character has bought and the arrows between talents, worked out from the game's trait tables.

The Talents window cropped from a headless run: the Primary tab with a gold tick, the greyed Secondary tab with a small padlock, three trees (Holy 9, Protection 5, Retribution 0), the Holy talent Healing Light with a green border and a green 2, Unspent Talents 0, and a glowing red Apply Changes button with a yellow undo arrow beside it.
Demonstrates two results of comparing with The.Pootler's in-game screenshot of the same state. A second rank of Healing Light is bought but not yet applied: its green border and green 2, the Holy count of 9, Unspent Talents 0 and the glowing Apply Changes button with its undo arrow all match the game. The tick after Primary and the grey padlock after Secondary are new: Blizzard's code writes them into the tab labels as atlas markup, which Lizzard's text drawing used to skip.
Read the entry: The Talents tab shows the character's talents

Forever shows the classic three talent trees through the game's newer trait system, none of which Lizzard had, so the talents button was greyed out. Lizzard now reads the trait tables: the talents, ranks, trees, conditions, arrows and points.

Checked against a capture of my level 21 paladin, every answer the window reads agreed with the game's for all 51 talents but two, both fixed. The arrows were hidden by two engine gaps, one of them drawing every arrow one pixel wide.

Still different: the tabs above the trees and the arrowheads, and ranks couldn't be bought yet.

Follow-up, : Tooltips and buying ranks, the same evening. Ranks can now be bought, given back, applied or undone. Applying needed a 3D 'learned' effect, so Lizzard now has model scenes that draw nothing; that also cleared eight load errors. Still to compare: the tooltips' text, which shows unworked formulas where the game shows numbers.

Follow-up, : Compared with my in-game tooltips the same evening: the same lines, order and colours; the numbers differed. Forever's talents give each rank its own value through a small curve (Healing Light 4, 8, 12%), and Lizzard had used one value for every rank, so Reverence at its first rank would have said 30% where its curve gives 15%. Lizzard now reads the curve. Values that might add spell power still show [amount] until measured.

Follow-up, : Compared again on 11 and 12 November with my screenshots. The tick and padlock after Primary and Secondary were picture codes in the text that Lizzard skipped; they draw now. A bought rank not yet applied is gold in the game and was green in Lizzard, which had guessed only applied ranks count. And with my character's spell bonus copied in, the game still shows Healing Light at 4% and 8%, so it leaves spell power out of that kind of effect; Lizzard now does too. Still different: the arrow into the next row.

Follow-up, : On 20 November I asked whether Lizzard would show the game's "You have unspent Talent points." prompt over the talents button. Now it does, after a level up. Blizzard's own code draws it and was already loaded, but it gave up at two gaps. Lizzard didn't answer whether the player is in the world, so the code took that as no. And a level change didn't send the event the button rechecks on. With both added, the prompt pops up pointing at the button. Next to my screenshot, two things were wrong. The text read "poin..." because two of Lizzard's text checks rounded differently, by under a pixel; they agree now, and the line shows whole. The box is still white where the game's is dark: its fill is a colour gradient, which Lizzard doesn't draw yet. No picture this time: the test world carries my character's name.

Follow-up, : Later the same day the box went dark. Its fill is a white texture with a colour gradient over it, dark gold at one end and black at the other, and Lizzard couldn't draw gradients, so it showed plain white. It can now, in all three of its painters: the everyday one, the graphics card's and the Godot game's. Blizzard's files name a minimum and a maximum colour but not which end each goes to. My screenshot settled it: the game's box runs evenly from black under the top edge to 58, 48, 0 above the bottom, exactly the gold's numbers, so the minimum sits at the bottom. Lizzard's box now runs from 2, 2, 0 to 58, 48, 0. Which end a sideways gradient starts from is still a guess. This time there is a picture: the tip alone, beside my screenshot, with no name in either.

Follow-up, : My own talent planner, OAP Pension Plan, opened its tree window in Lizzard on 26 November with the art in place and not a single talent in it. The addon reads the tree the way the game's own talent window shows a linked build: it asks the game to set up a scratch copy of a tree for a given class and level, then points Blizzard's tree frame at that copy. Lizzard only knew the character's own talents, so the frame asked about the copy, got nothing back and gave up. Lizzard now keeps the scratch copy too. That morning's in-game measurements say how it behaves: any class's tree, empty, with the level's points, 51 at level 60. Oddest of all, buying a rank in it works but reports that it failed. Lizzard does the same. The window now shows the paladin's 51 talents, and the game's own Talents tab still shows the character's. It has not yet been compared with the addon's window in the game.

Follow-up, : Later the same day, a locked talent's tooltip. The morning's measurements also showed the game answering "how many points does this row need?" with the points still to spend, where Lizzard gave the row's whole requirement. I asked whether "Spend 3 more points" made the answer obvious, and it did: the game's sentence says "more", so its number is what is left. Looking into it turned up three gaps, not one. Lizzard gave the wrong number. It never sent the sentence at all; that sits in the game's own data and is now read from there. And Blizzard's code tidies the sentence with a text function Lizzard didn't have before turning it red. Each gap on its own was enough to lose the line. A locked talent's tooltip now ends with the red "Spend N more points in ... Talents" line, with the number and the tree filled in. Not yet compared with my in-game tooltip, and no picture this time.

Link to this entry
Game data · The game's own data Milestone follow-up

The Professions window shows the character's professions

Forever's Professions window, which opened as a jumble of overlapping text, now shows the character's five professions with their spells and tabs, from a capture of my own game.

Read the entry: The Professions window shows the character's professions

I reported the window as a mess. Forever's own code asks the game which professions the character has, Lizzard had no answer, and the code stopped half-way through laying the window out.

Which professions a character has is the player's own state, not something the game tables hold, so the probe was extended to ask the game the way the window does. I ran it, and the five cards, their spells and tabs now match my screenshot. Seven smaller differences remained, listed with the comparison pictures.

Not yet built: the crafting pages behind the profession tabs.

Follow-up, : Four of the seven differences fixed: spell ranks, undimmed icons, an empty bar at 1 of 75, and one picture per bar. The window's slightly larger size was Lizzard's own saved scale setting. Still open: the skill bars' text and the portrait's icon.

Follow-up, : The skill bars' text. My capture of the game's frames showed the text drawn over the bar's fill; Lizzard drew the fill over it. Within one draw layer Lizzard now draws text after the textures, which also brought back the portrait's level and the action bar's page number that Lizzard had been hiding. The same capture put 229 more frames at the game's levels.

Follow-up, : The last difference fixed: the portrait icon, Blizzard's own art missing from the client's art export. The game data pipeline extracted it the same evening, and the overview page now matches my screenshot. Not built yet: the crafting pages.

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

The spell book's portrait, measured in the game

A probe capture gave the one picture of Forever's spell book the game tables don't hold, the book in its portrait, and Lizzard now shows it.

Read the entry: The spell book's portrait, measured in the game

Forever's spell book shows the General line's icon as its portrait, and no game table gives that icon. I ran the probe in the game: it's the old spell book picture, and it now ships with Lizzard as a fact.

The capture also showed the Forever client had moved to a new build. Still uncertain: whether that icon is the same for every character, with one measured.

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

WoWData named as the source of Lizzard's game data

The site mentioned a SQL Server database without saying whose. It now names WoWData, the companion project at wow.thepootler.uk, and says where each kind of game data comes from.

Read the entry: WoWData named as the source of Lizzard's game data

Lizzard takes World of Warcraft's data from two places, both read only: the game client's own exports of its interface code and art, and WoWData, which reads the game files of one client build into a SQL Server database. The stand-in game reads that database for the same build, and WoWData writes an export of texture atlases, colours, fonts and file numbers that Lizzard packages for the engine. What can only be seen with the game running is measured there by Lizzard's probe.

The About page, the Documentation page ("Where the game data comes from") and the footer now say so, with links to WoWData.

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

Forever's spell book checked against the game

Forever's own spell book now opens in Lizzard. For the character in my screenshots it shows the same tabs and spells in the same order as the game, with one known exception.

Read the entry: Forever's spell book checked against the game

Forever's spell book failed to open for want of four functions, then listed every rank of every talent. Both were fixed.

Then it was compared with my screenshots of a level 17 Undead Paladin. Forever has no rune system, so the Season of Discovery spells in its tables are left-over data and are now left out. On the Retribution tab the game sorts by name, not level. With those rules the tabs match, except for one trainer spell the character hadn't bought: the stand-in counts every trainer spell up to the character's level, a known limit.

Still open: two icons, which wait for the next probe capture.

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

The game database gets keys and indexes

As the database administrator, I rebuilt the Forever database with the keys, indexes and numeric types Lizzard had asked for. Starting a fight went from 9.4 s at first to 41 ms.

Read the entry: The game database gets keys and indexes

Request 1 of the schema requests asked for primary keys on ID, indexes on spell ID and the other lookup columns, and numeric types. The Forever 70707 database was rebuilt with them and reviewed: query plans now seek with Lizzard's parameters, and all 812 tests pass unchanged.

Measured in the live window: a boss fight's start 41 ms (9,437 ms before any work, 210 ms after Lizzard's own query changes), the world load's queries 155 ms, single lookups 0.1 to 0.2 ms. The Retail databases met the same request on 4 November; the SQLite file is still open.

Link to this entry
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 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 Game data · The game's own data Correction

A stale Forever restriction copied into the engine

Addon settings were lost on every reload because the engine followed an old Forever beta measurement saying account-wide saved variables are never read back.

Read the entry: A stale Forever restriction copied into the engine

I noticed that addon settings didn't survive a reload in the live window. The files were written, but Lizzard deliberately didn't read account-wide saved variables back for Forever, following the forever-addon-dev reference's measurement on beta build 69913. That restriction, I said, was long out of date.

Both kinds are now read back for both games (issue 35). The rule since: never build one of that reference's restrictions into Lizzard without asking first.

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

Game data from my SQL Server, SQLite if packaged

Game tables are read from my SQL Server database of the game's data, with a SQLite file as the second source for a packaged copy, through one read-only path.

Read the entry: Game data from my SQL Server, SQLite if packaged

I was building a SQL Server database from the game's data and asked whether the stand-in game should use it. It does, through one read-only path, with SQLite as the second source if Lizzard is ever packaged.

The database's client package pulled in a cryptography package with two published security advisories, and I asked for that to be fixed first. First use: the classes. Forever has no class 13, where Retail has the Evoker.

Link to this entry