Originally Posted by Baertram
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
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.