Newcomer - Not sure why only one shows
I have been doing the "Writing your first addon" tutorial. I get to the part where it should show whether the player enters and exits combat but nothing shows up. So I backed up a little bit and started to try and figure out what is going on. I put in a couple d() with small messages and found out my .AddOnLoaded function never starts.... I followed the tutorial and just cant seem to figure out what is going on.
Folder Struct: FooAddon ->FooAddon.txt ->FooAddon.lua Lua Code:
Now I tried the ADD_ON_LOADED one with both "FooAddon" and FooAddon.name. Neither executes the d(). Can somebody tell me what is goin on? |
I may have just answered my own question, but am still looking to make sure I am along the right lines.
This: Lua Code:
This outputs the "Activated" again but not Initialize. So it is indeed checking the names of the addons and executing the Initialize() function. Am I correct in assuming that the OnAddOnLoaded function just completes itself before the game is actually out of the loading screen? So anything that it tries to do just doesn't work because the game hasn't actually finished loading? |
Quote:
|
Thank you very much for the clarification!
|
All times are GMT -6. The time now is 02:50 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI