Hey all bit of a newb here so bear with me please.
I'm trying to learn how to write wow addons and use libraries like wowace at the same time. I tried to make a basic addon that would print "You changed zones!" when the player zoned but it doesn't seem to work and I was wondering if someone could point me towards what I've done wrong.
I am pretty sure I have all the correct folders and files in the right spots as it WILL print the text if I remove self: from the print line.
Here's the Lua code:
Poof = LibStub("AceAddon-3.0"):NewAddon("Poof", "AceConsole-3.0", "AceEvent-3.0")
--Called When the Addon is loaded
--Called When the Addon is Enabled
self:print("You have changed zones!")
If I remove the self: it prints every time I get a new area message on screen lol. Do I just not understand events? Is this more complicated to do than I thought?
Also, since an AceAddon object has no "print" method, you should have known immediately via the default UI's Lua error reporting (which is turned off by default). I recommend grabbing BugSack at any rate; it's much improved over what the default UI provides and will also catch errors which are raised during the loading screen.