shagu / pfUI

A User Interface Replacement for World of Warcraft: Vanilla & TBC
https://shagu.org/pfUI
MIT License
333 stars 116 forks source link

Functions with items not working when clearing the Itemcache.wdb (in WDB folder) #1270

Closed unS0uL closed 2 months ago

unS0uL commented 3 months ago

When starting the game with an empty WDB folder, PfUi does not display the correct number of items on the panel, and also does not highlight items in the bag that cannot be equipped. After use /reloadui, all functions are is on. In other words, the PfUi reads the game's cache before the game creates the cache, and the item functions do not work.

How to reproduce: rmdir wow_folder\wdb start wow.exe login to server

Found it bug on Turtle WoW. I clear WDB all the time when starting the game, like other player, because clearing the cache are recommendation from GM TWOW

shagu commented 2 months ago

I would prefer to not query all item informations on boot and delaying the loading screen even more. I'll check if there's another way to only delay some of the features to a certain point (I don't think there's a WDB-Initialized event tho.)

shagu commented 2 months ago

For some reason, a tooltip that gets a :SetOwner() early, won't ever recover itself after the WDB caches are loaded. Only running :SetOwner() on the same frame again will actually reload it and makes it possible to read tooltips again.

Also fixed the caching logic in both unusable.lua and actionbar.lua (reagent counter) to no longer accept or trust empty tooltip results.

Fixed via: