Thread Tools Display Modes
09-12-16, 08:58 AM   #1
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Problems with availability of artifact data

I am the author of LibArtifactData-1.0. Some issues were reported and it all appears to boil down to artifact data becoming prematurely unavailable. I have a guess what is causing this and would like to know if it is reasonable to assume that.

1. When ARTIFACT_UPDATE is fired, it means that artifact data is available and handlers for that event are queued for execution.
2. If an event handler uses C_ArtifactUI.Clear(), the artifact data becomes unavailable and handlers that are still queued will get nils.

If this is how it works, it means I can't rely on updating the artifact data or getting it at all, right? Is there something I can do about that?
  Reply With Quote
11-09-16, 05:53 AM   #2
Gnarfoz
A Deviate Faerie Dragon
 
Gnarfoz's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 18
Cross-referencing https://github.com/Rainrider/LibArti...a-1.0/issues/9 here.

GetRelicInfo and GetEquippedArtifactRelicInfo will cause ARTIFACT_UPDATE to fire, which in turn will cause UIParent to load Blizzard_ArtifactUI and ShowUIPanel the ArtifactFrame, apparently at a time, when no artifact is "selected", causing GetTotalPurchasedRanks() to return nil while used in ArtifactFrame's OnShow handler.

...or something like that.
Maybe this topic should be moved to the Legion UI bugs forum for better visibility?
__________________
Be nice to nerds, chances are you might end up working for one. -- Charles J. Sykes

Last edited by Gnarfoz : 11-09-16 at 05:59 AM. Reason: IRC log link
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Problems with availability of artifact data

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off