ESOUI - View Single Post - Help with first addon, Lua not initializing?
View Single Post
03/16/21, 08:48 AM   #3
AddOn Author - Click to view addons
Join Date: Mar 2021
Posts: 5
Thumbs up

Thank you for the response.

Originally Posted by votan View Post
If you move the window, do you get a nil error ?
Yes. This is the debugviewer message:
user:/AddOns/TreasureCounter/TreasureCounter.lua:35: attempt to index a nil value
|rstack traceback:
user:/AddOns/TreasureCounter/TreasureCounter.lua:35: in function 'TreasureCounter.OnIndicatorMoveStop'

Line 35 is: TreasureCounter.savedVariables.left = TreasureCounterWindow:GetLeft() in function OnIndicatorMoveStop

Originally Posted by votan View Post
Did you check for case-sensitive typos in the addon name and/or trailing white space in the lua filename line?
I believe so, just checked again now. All the names are set as "TreasureCounter" and I've not used any "self" definitions so as to avoid confusion.
  Reply With Quote