Thread Tools Display Modes
08/25/15, 03:00 AM   #1
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
events before EVENT_ADD_ON_LOADED

Just making a note for myself and others.

Logged onto the PTS and got an "attempt to index a nil value" error that appears to originate from my EVENT_SKILLS_FULL_UPDATE handler, and that nil value is a table from saved vars, initialized in EVENT_ADD_ON_LOADED.

That means the skills update event arrived before add-on loaded event. Of course it's my fault registering a handler that relies on saved vars before initializing the saved vars. I just didn't know there were events coming before EVENT_ADD_ON_LOADED.
  Reply With Quote
08/25/15, 05:45 AM   #2
Fyrakin
 
Fyrakin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 129
Not exactly. If you start listening event it will fire as soon as it has something for your listener. So if you want to avoid it - start listening later.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » events before EVENT_ADD_ON_LOADED


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