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 5c · Game loop and Options (of 61 in the journal), newest first. Show all

Stage 5c · Game loop and Options Milestone follow-up

Blizzard's quest log opens, with quests a test describes

OAP Lazy Stuff's own test session couldn't try its quest log features: Lizzard had no quest log. Now the stand-in player has one, a test puts quests in it, and Blizzard's Map & Quest Log lists them, so the addon's filter ticks and share buttons work in Lizzard.

A parchment map of the world with Kalimdor on the left and a dark list on the right with three gold headers, each with a quest under it in yellow, two marked Dungeon with a small hand icon, and two unticked boxes labelled Ready for hand-in and Dungeon quests above the list.
Shows the new capability: the Map & Quest Log lists three quests a test put in, under Blackfathom Deeps, Wailing Caverns and The Barrens, with their levels, the game's "(Dungeon)" tag and their objectives; the finished one reads Ready for turn-in. Above the list, OAP Lazy Stuff's two ticks; beside the dungeon quests and their headers, its hand buttons for sharing them.
Read the entry: Blizzard's quest log opens, with quests a test describes

OAP Lazy Stuff adds two ticks to the quest log, Ready for hand-in and Dungeon quests, and small hand buttons that offer a dungeon quest to the group. Its development session tested the addon in a fresh Lizzard world and reported two gaps: Blizzard's objective tracker stopped with an error, and nothing could put a quest in the player's quest log, so none of those features could be tried.

The tracker was a chain. It asks each of its modules for their lists on every update, and the first missing answer stopped it there. Each fix let it get one module further and stop at the next, until it ran through all of them. Two of the gaps were Blizzard addons the game loads at start that Lizzard hadn't been loading.

The quest log raised a question of where quests come from. The game's own tables hold only quest numbers, with no titles, levels or objectives: the server sends those. So Lizzard doesn't make quests up. A test describes each quest it wants (title, level, objectives, whether it is finished, its tag), and only the tag's name comes from the game's tables, so a tag of 81 reads "Dungeon" as it does in the game. The engine then answers the questions Blizzard's quest log asks about them.

With three quests put in, Blizzard's Map & Quest Log lists them under their headers with their levels, tags and objectives, and the finished one says Ready for turn-in. Lazy Stuff's ticks narrow the list as they should, and a hand offers its quest to the group, which Lizzard records. In a fight the addon refuses to try, as it does in the game. When the log opens, its headers start folded, because Blizzard's code folds every zone that isn't on the map shown and the stand-in has no map positions; a test opens them with a click, as a player would.

On the way, three errors in the quest log's scroll frames turned out to be Lizzard's: it told a scroll frame its range while the frame was still being built, before its own set-up had run. Load errors in a world with Lazy Stuff fell to 41. Not there yet: a quest's details page, which needs the quest's rewards and text. None of this has been compared with the game's quest log.

Follow-up, : In the quest log pictures Lizzard made for OAP Lazy Stuff's CurseForge page, I found two things wrong: every tick box was empty and every title the same yellow, where in the game a tracked quest is ticked and a dungeon quest's title can be orange. Both were answers Lizzard didn't have. It kept no list of tracked quests, and it couldn't say how hard a quest is for the player, which is what Blizzard colours a title by. I believed the colour comes from the quest's level against the character's, and Blizzard's own colour code agrees: five or more levels above you is red, three orange, down to four below yellow, lower than that green. Lizzard now answers by those steps, though never grey yet: where grey starts comes from a game function the probe hasn't measured. With a tracked list, Blizzard's code ticks each new quest itself, as in the game. So I asked whether the objective tracker on screen would work now. Not quite: Claude found it stopped at the first quest on a function Lizzard didn't have, then at the next, through about twenty small questions (is it a bounty, a world quest, is there an item to use, a time limit), each given the plain answer and noted as a guess. Now the tracker lists the quests with their levels, colours and objectives, a finished one says Ready for turn-in, its round button picks the quest the map points to, and its headings fold. None of it has been compared with the game's tracker. A third report, a share hand missing from one picture, turned out to be a nine-pixel hand that had been missed in a crop.

Link to this entry
Stage 5c · Game loop and Options Milestone follow-up

Blizzard's World Map opens, with an addon's shading on it

Asked to check OAP Off The Map, Lizzard found its map browser working but no World Map at all. The World Map now loads as in the game, opens with M and shows the addon's area shading, though 47 of Forever's 60 maps still have no picture to draw.

A parchment map titled Tirisfal Glades under a breadcrumb bar reading World, Eastern Kingdoms, Tirisfal Glades; most of the land is tinted green with small level numbers, one patch is tinted red and labelled Unknown, and a small legend at the bottom left reads Approx. exploration levels.
Demonstrates Blizzard's World Map opened with the M key, on Tirisfal Glades, with OAP Off The Map's area shading over the map and each area's level (5 to 10-12, and Unknown). The levels are the same as in The.Pootler's in-game picture of the same map. Before this work the World Map was never loaded, so there was nothing for the addon to shade.
Read the entry: Blizzard's World Map opens, with an addon's shading on it

I asked for OAP Off The Map to be run in Lizzard. Its own map browser worked, but the World Map didn't exist in Lizzard: it had never been loaded.

Getting it to open took four fixes, each found by running it and reading the first error. The last was the oddest: the map's tiles stayed invisible because Blizzard waits for each picture to say it has loaded, and Lizzard never answered.

Then M opened the map, and Tirisfal Glades drew with the addon's shading and the same area levels as my in-game picture. The world view was an empty board: its pictures, and 46 other maps', were in neither export Lizzard reads, so they were asked of the data pipeline.

Follow-up, : The missing pictures arrived and all 60 of Forever's maps now draw. Two tiles have no file name and come by number, which Lizzard's file table learned to list.

Follow-up, : OAP Off The Map's own test found the map's coordinates corner empty. Blizzard's coordinates lines are text with no position of their own, which the game draws at the corner's left and Lizzard had never drawn at all. Now Lizzard draws such text in its frame, and the cursor's coordinates show at the map's bottom left while the mouse is over the map. The player's own coordinates still wait for the player to have a place on the map.

Follow-up, : The player now has a place in the world, set from Lizzard's toolbox as I asked. It starts in Westfall at 51.8, 49.3, the one place measured in the game, from my own screenshot, and the World Map now opens on the player's zone with their coordinates in the corner. The positions worked out on the continent and world maps haven't been checked in the game yet.

Follow-up, : Checked in the game: I ran Lizzard's probe addon in Undercity, and the game's own numbers for that spot on the Eastern Kingdoms and world maps match Lizzard's to four decimal places, so the continent and world positions are right. The same capture showed that outdoors the game names the continent where Lizzard had named nothing, now fixed, and that the game knows sub-zones such as the Ruins of Lordaeron, which Lizzard doesn't yet.

Follow-up, : Two things I noticed in the live window one evening, and a third Claude spotted while fixing them. The mouse wheel didn't zoom a zone map. The map could zoom, but Lizzard gave the wheel to the window's border, which covers the whole map and has a do-nothing wheel handler, presumably to keep the wheel off the world behind it; now the wheel goes first to the frame the mouse is on, and the map zooms and drags as in the game. The L key's Map & Quest Log had the map running on underneath the quest list: two of the map's anchors both set its right edge, and Lizzard picked the wrong one. My screenshot of an empty quest log then showed its page stopping short of the bottom in Lizzard, leaving room for a Party Sync panel that wasn't there; that's fixed too. The third: the zones were bare parchment, without the drawings of villages and roads. Those are pictures of each area, which the game lays over the map once you've explored it; Lizzard wasn't giving them out. It now gives every area, as though all were explored, and Tirisfal Glades matches my own screenshot place for place. Most zones, Westfall included, still wait for their pictures from the data export.

Follow-up, : Two days later the data export for Forever's new build arrived with the missing area pictures, 704 of them across 35 zones, and Westfall draws whole: its farms, roads, Sentinel Hill and Moonbrook, under OAP Off The Map's shading. The same pictures tell Lizzard which sub-zone the player stands in, so the starting spot in Westfall now reads as Sentinel Hill, which I haven't checked in the game.

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

Slide animations drawn as the game draws them, faults included

An OAP addon's window slid neatly off the screen in Lizzard but not in the game, so Lizzard was hiding a real bug. Lizzard now moves a slid window the way the game does, with the same three quirks, so the addon's fix can be tried in Lizzard before it goes in game.

Read the entry: Slide animations drawn as the game draws them, faults included

OAP Party Utilities slides its buffs box off the top of the screen when a fight starts. In Lizzard the whole box slid away. In the game I saw something else: an empty border stopped part way up, the box's contents vanished, and the class icons stayed where they were.

The game client runs animations, not Lua, so the rules had to come from the game. A probe command slides test boxes holding one piece of every kind and reports where the game says each piece is.

Three rules came out of it, and Lizzard follows each. Each piece moves the slide's distance in its own scale, so the border, drawn at 0.75, went only about three quarters as far. A clipping frame's clip stays put, so contents slid out of it are cut away. And an icon written into a line of text stays put while the letters move.

A useful failure on the way: one look at the game was misread as the box stopping at the screen's edge, and Lizzard was made to clamp it. The next screenshots showed the same result either way, so that came out again.

The result looks broken, as it does in the game, and that is the point: a simulator that showed the slide working had kept the bug hidden. The fix belongs to the addon. No picture was kept for the site: the screenshots show character names.

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

A loading notice that says how far it has got

Starting Lizzard from cold now shows which of six loading steps it is on, which addon is loading and a progress bar, and every load's step times are kept, so a slow start can be traced to its step.

Read the entry: A loading notice that says how far it has got

I asked for the loading screen to show its progress and the names of its steps, and whether each step's time was recorded. It wasn't.

Loading is now six named steps, shown with the addon being loaded over a gold bar paced by the last load's times, in both the live window and the Godot game. A cold start recorded 4.7 seconds of loading after 0.9 seconds of the program's own start-up.

No picture of the notice was kept at the time.

Follow-up, : Correction: two pictures of the notice were taken during that cold start, on 11 November between 16:56:45 and 16:57:06 UTC: one at step 3 of 6 (Blizzard's interface, 36 addons loaded so far) and one at step 6 (logging in). Their times weren't noted to the second as each was taken, so they stay off the Captures pages; the next cold start that is pictured will be added there.

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
event Stage 5c · Game loop and Options Correction

Forever had been loading Retail's code paths

I noticed the micro menu looked like Retail's. Lizzard had been loading Forever's Blizzard code as 'mainline', from an old beta measurement; it now loads Forever's own Camelot files.

Read the entry: Forever had been loading Retail's code paths

Lizzard chose which of Blizzard's files to load from a capture of an old beta build, so every file written for Forever's own game type, Camelot, was skipped. I confirmed the micro menu in game and chose to switch at once; 91 of Blizzard's .toc files changed.

The switch showed see-through window edges: Forever's code moves the frame's corners for its own art while Lizzard still drew Retail's. Lizzard now draws Forever's. Not yet confirmed: which art set Forever's own windows show. I wasn't sure; a screenshot would settle it.

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

Blizzard's Options panel, page by page against the game

Blizzard's Settings panel opens from the game menu, and its pages are compared one at a time with my screenshots, by measurement rather than by eye.

A strip of the Graphics options page in which several gold labels and a selector with yellow arrows overlap the white 'Graphics Quality' header, above a Base Game Quality checkbox and a slider at 10.
Lizzard's drawing of the section before the fix: the quality rows sit at the top, over the 'Graphics Quality' header and the tabs, their labels on top of one another, and a checkbox and slider for Raid are drawn over the Base controls.
Read the entry: Blizzard's Options panel, page by page against the game

The panel opened from the game menu's Options button. Against my screenshot, three faults showed up the same day, among them blank section headers.

I asked whether pixel-for-pixel comparisons were being done. They weren't. Since then each page is measured: a script searches my screenshot for each control's pixels. On the Controls page every control was within a pixel of the game's. Pasted screenshots arrive shrunk, so they now come as files.

Text cut short with '...' was missed a second time; the rule since is that when a text rule is fixed for one case, the others are checked too.

Follow-up, : Scroll bars beside scrolling pages now draw. I found OAP Lazy Stuff's Settings page without one. The bar was there all along: Blizzard's older template hangs it just outside the scrolling area, and Lizzard cut everything outside that area away. Once drawn, its thumb sat half way down and both arrows stayed off, and fixing the arrows briefly set Blizzard's newer scroll template chasing its own tail. Every page built on that template now has its bar. Not yet compared with the game.

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

Edit boxes and typing, checked against the game

Edit boxes take the keyboard focus and typing in the live window, following the script order measured in game; all nine probe cases match.

Read the entry: Edit boxes and typing, checked against the game

Probe runs on Retail settled the order in which the game runs an edit box's scripts for each key; all nine cases match. I checked typing in the live window and found Ctrl+A wiping a box's text (fixed).

The same run found the probe itself leaving invisible edit boxes on screen in game, so half my key presses didn't get through. Not built yet: selecting with Shift, the clipboard and multi-line boxes.

Link to this entry
event Stage 5c · Game loop and Options Change of direction

An error-free game loop before the first real addon

Constant Lua errors made the engine and the display unusable, so a new stage 5c came before stage 6: an error-free loop with Blizzard's unit frames first, then the keyboard, Options, key bindings and the minimap.

Read the entry: An error-free game loop before the first real addon

Blizzard's addons are now added as they're needed rather than all at once, so that I can see what is going on, and the live window loads them from its Run tab.

By the evening the loop ran clean in both games with the default set, and the addons installed for the game loaded with their saved variables. About 320 errors during loading on Forever were left to work down.

Link to this entry