ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Are events still fired during a load screen? (https://www.esoui.com/forums/showthread.php?t=9691)

Parietic 04/16/21 01:04 PM

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 :)

Baertram 04/17/21 10:19 AM

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.

Parietic 04/17/21 01:49 PM

Ah, that is a real shame
Thanks for the fast reply though <3

JoanPiper 04/18/21 11:21 AM

I also faced such a problem, thank you for having an answer) !!

ZOS_DanBatson 04/20/21 11:53 AM

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.

Baertram 04/20/21 12:18 PM

There also exsist EVENT_PLAYER_DEACTIVATED which should fire before the loading screen happens, isn't it?

Sharlikran 04/20/21 01:05 PM

Quote:

Originally Posted by Baertram (Post 43752)
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.


All times are GMT -6. The time now is 10:19 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI