View Single Post
12-22-17, 07:08 AM   #22
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Hi myrroddin,

Originally Posted by myrroddin View Post
Late to the party... Why not use AddonLoader? It is here on Wowinterface as well.

Set it up as per its documentation, with its load on tags? Now you don't have to muck around with Lua and trying to figure out how to only load on one class.
I was slightly aware of this, but at the same time was also bit worried of using it as the addon that I am creating doesn't seem to worth using it
(Mine's really trivial and shabby...)

BUT, I'll give it a shot

AddonLoader actually seems interesting to play with!

Originally Posted by Seerah View Post
No, because it sees in the TOC file in step 1 that the addon is LoD. When it is called with LoadAddOn("AddonName"), then it moves on to step 2 and loads it into memory, then runs it (step 3).

/edit: TOC files are only read when the game client is started up. This is why you need to exit the game completely when editing/changing a TOC file. The TOC file is also where the client gets the addon name from to display in the addon menu at the character select screen.
Thank you for your clarification Seerah!

It makes much more sense now

Last edited by Layback_ : 12-22-17 at 07:27 AM.
  Reply With Quote