I decided today that I would play with add-ons for WOW and started with the Welcomehome tutorial and ran into a problem. I can not get it to do anything not even the slash commands work. I am at a loss, I even tried to copy and paste the code directly from the page and nothing. It does show up in my add-ons list before logging in and in the /ace list all list in game.
Any ideas on what I am doing so wrong would be helpful.
It still doesn't work and the tutorial never mentioned an AceHook 2.1 file, and according to my BugSack it was referring to another mod that still works. None of the errors that come up are referring to the "WelcomeHome" AddOn.
This is the code that I'm using for the .toc file:
## Interface: 20200
## Title: Welcome Home
## Notes: Displays a welcome message when you get to your home zone.
## Author: Your Name Here
## Version: 0.1
## OptionalDeps: Ace2
## SavedVariables: WelcomeHomeDB
## SavedVariablesPerCharacter: WelcomeHomeDBPC
## X-Category: Interface Enhancements
and this is the core.lua file
WelcomeHome = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceEvent-2.0")
-- Called when the addon is enabled
self:Print("You have changed zones!")
Maybe someone sees something wrong with the formatting?
I see nothing wrong with your addon as written in the above posts.
Your directory structure must be wrong or something, or you did not restart your WoW.exe completely because it does not recognize changes to TOC files (and only TOC files) or new files you added mid-game.
I know I made a bonehead move and forgot to save the Core.lua file as an actual .lua and thought that would solve the problem but it still hasn't. I'm not sure where the message is even supposed to be appearing because at the moment, whenever I type in "/ace disable WelcomeHome" it disables and then turns on when I re-enable it so I'm assuming it's actually working? No error messages are coming up either.
For some reason it just decided to start working. I was standing out side of Orgimmar and it now triggers whenever I walk between Durotar and Rocktusk Farm. Thanks for all of the help, hopefully it'll be smoothing sailing from here.