View Single Post
04/30/20, 10:01 AM   #16
Drummerx04
AddOn Author - Click to view addons
Join Date: Sep 2017
Posts: 54
Originally Posted by Baertram View Post
Interesting, thanks Drummerx04

Didn't know the EVENT_ADD_ON_LOADED would fire BEFORE actually the XML files are loaded,
IF the load order in the txt files woould be

Lua Code:
  1. XML
  2. lua

But I wonder why the problem persists if he changed the code from event_add_on_loaded to event_player_activated as at this point all XML and addon code normally was loaded properly, and exists.

Not sure why the xml created control would be nil then, at that time
Yeah, I saw some of your back and forth, but I was primarily answering the original issue he was having.

I was honestly a little surprised that the event appears to fire before the entire addon is initialized, but that is the most logical explanation for the stack track and error he posted originally.
  Reply With Quote