OAP Lizzard A game interface engine
Game interfaces, outside the game Settings
← The journal
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.

The pictures of this work

Each step's album, shown by its cover picture. Open one for all its pictures, their dates and limits.