[open] Addon registered events not firing on AVA state change
It seems like the game has an internal delay built into the API that blocks sending callbacks to addons registered for certain/all (?) events upon joining a campaign, and possibly after the campaign status changes.
I tested this by manually firing the event Srendarr registers to refresh auras on zone changes on a timer that runs every 1 second after joining a campaign by registering the event EVENT_CAMPAIGN_STATE_INITIALIZED. The first time the loop fires the aura update function doesn't run. However on the 3rd or 4th iteration (a few seconds after joining) the loop finally registers and the auras populate.
This is probably due to some internal checks the game is doing which block addon-registered event callbacks until it is complete, however there should really be a way to query whether this is done or better yet, an event you could register for that would alert addons when they are ready to process, as looping on campaign changes for a set number of seconds is both clunky and not guaranteed to always give enough time for the internal game checks to complete, unless you set the loop to run for a long time like 10 seconds.
Is there currently any way to register for this internal delay to inform addons they are clear to proceed after joining/updating an AVA campaign?
Here is an example:
|All times are GMT -6. The time now is 05:38 PM.|
vBulletin © 2022, Jelsoft Enterprises Ltd
© 2014 - 2021 MMOUI