Thread Tools Display Modes
04/16/21, 01:04 PM   #1
Parietic
 
Parietic's Avatar
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 5
Question Are events still fired during a load screen?

Scenario:
You are traveling between zones and get a friend invite,
Would the EVENT_INCOMING_FRIEND_INVITE_ADDED event fire and would you be able to handle said event while in the load screen?

Basically what I would like to know is if the events fire in real time, queue up and fire once loaded in or don't fire at all.
Thanks
  Reply With Quote
04/17/21, 10:19 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Afaik the lua VM is paused during real loading screens -> means no lua callback functions fire at that time.
We often had it happen e.g. that chat messages during loadig screens were missing.
  Reply With Quote
04/17/21, 01:49 PM   #3
Parietic
 
Parietic's Avatar
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 5
Ah, that is a real shame
Thanks for the fast reply though <3
  Reply With Quote
04/18/21, 11:21 AM   #4
JoanPiper
Join Date: Apr 2021
Posts: 1
I also faced such a problem, thank you for having an answer) !!

Last edited by JoanPiper : 04/19/21 at 10:29 AM.
  Reply With Quote
04/20/21, 11:53 AM   #5
ZOS_DanBatson
ZOS Staff!
 
ZOS_DanBatson's Avatar
Yes this person is from ZeniMax!
Join Date: Jul 2015
Posts: 171
It depends on the event. Some events are dropped in load screens, others are queued and sent when the load screen ends. For the former, the expectation is that you'd use the ON_PLAYER_ACTIVATED event to init/re-init your addon state, rather than doing it based only on X events coming in.
  Reply With Quote
04/20/21, 12:18 PM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
There also exsist EVENT_PLAYER_DEACTIVATED which should fire before the loading screen happens, isn't it?
  Reply With Quote
04/20/21, 01:05 PM   #7
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 626
Originally Posted by Baertram View Post
There also exsist EVENT_PLAYER_DEACTIVATED which should fire before the loading screen happens, isn't it?
It most defiantly does, I was testing this the other day and ended up not needing it.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Are events still fired during a load screen?

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