View Single Post
03/16/21, 10:00 AM   #6
xgoku1
AddOn Author - Click to view addons
Join Date: Mar 2021
Posts: 5
Originally Posted by Shinni View Post
It's EVENT_ADD_ON_LOADED instead of EVENT_ADDON_LOADED.
That's why your initialization function is not executed.
Thanks for catching that! I can't believe I missed that

I changed the event register to EVENT_ADD_ON_LOADED, but its still not going to Initialize().

I'm seeing this error in DebugViewer:

Code:
user:/AddOns/TreasureCounter/TreasureCounter.lua:18: function expected instead of nil
|rstack traceback:
user:/AddOns/TreasureCounter/TreasureCounter.lua:18: in function 'TreasureCounter.Initialize'
user:/AddOns/TreasureCounter/TreasureCounter.lua:11: in function 'TreasureCounter.OnAddonLoaded'
  Reply With Quote