Why are you using XML when you're using AceAddon, which has :OnInitialize() and :OnEnable() members? You should probably ditch the XML and use the AceAddon functions, and either use AceEvent or make your own event handler.
Why are you using XML when you're using AceAddon, which has :OnInitialize() and :OnEnable() members? You should probably ditch the XML and use the AceAddon functions, and either use AceEvent or make your own event handler.
I appreciate the advice, but I prefer XML.
EDIT
New error when putting down a train:
Message: Interface\AddOns\TrainAlert\TrainAlert.lua:103: AceTimer-3.0: ScheduleTimer("methodName", delay, arg): 'methodName' - method not found on target object.
Time: 01/11/12 15:59:00
Count: 1
Stack: [C]: ?
...ce\AddOns\Recount\Libs\AceTimer-3.0\AceTimer-3.0.lua:223: in function <...ce\AddOns\Recount\Libs\AceTimer-3.0\AceTimer-3.0.lua:211>
(tail call): ?
Interface\AddOns\TrainAlert\TrainAlert.lua:103: in function `TrainAlertFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
Locals: (*temporary) = "AceTimer-3.0: ScheduleTimer("methodName", delay, arg): 'methodName' - method not found on target object."
Rather than deleting your question, why not leave it viewable, and post the answer, so that other people with the same or similar problem in the future can find the answer without someone else having to post the answer again?
Rather than deleting your question, why not leave it viewable, and post the answer, so that other people with the same or similar problem in the future can find the answer without someone else having to post the answer again?
Why are you using XML when you're using AceAddon, which has :OnInitialize() and :OnEnable() members? You should probably ditch the XML and use the AceAddon functions, and either use AceEvent or make your own event handler.
Yeah I was wondering how the heck his addon was even working. It only looks more confusing to me imho
I appreciate the advice, but I prefer XML.
EDIT
New error when putting down a train:
This was his thread on the EU forums
TrainAlert.lua - http://pastebin.com/wNbVC1ma
TrainAlert.toc - http://pastebin.com/H2DVUK6T
TrainAlert.xml - http://pastebin.com/qDtxmXfV
TrainAlert.lua v2 http://pastebin.com/4F7D8WSg
I couldn't help him in the end, and only tried to point out stuff that would give an error
Yeah I was wondering how the heck his addon was even working. It only looks more confusing to me imho