-
Posted by Wellb on Sat, 10 Jul 2010 22:41:55
i'm simply trying to print the messages that appear in a chat frame. i need to get it narrowed down to a single channel, but for now.. id be happy with getting this part to work:
my lua:
function SkillzSend_OnLoad(self) self:RegisterEvent("CHAT_MSG_CHANNEL"); end function SkillzSend_OnEvent(self, event, ...) local msgg = arg1 if (event=="CHAT_MSG_CHANNEL") then print("asdfasdfasdf") print(msgg) end end
my xml:
<Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Frame name="SkillzSend"> <Scripts> <OnLoad> SkillzSend_OnLoad(self); </OnLoad> <OnEvent> SkillzSend_OnEvent(self, event, ...); </OnEvent> </Scripts> </Frame> </Ui>
my toc:
## Interface: 30300 ## Title: SkillzSend ## Author: TheGrouch ## Version: 1.01.00 ## Notes: send alpha ## DefaultState: Enabled ## LoadOnDemand: 0 ## SavedVariables: SkillzSend2.lua SkillzSend2.xml
I'm not getting the prints.
help!
-
Posted by jnwhiteh on Sun, 11 Jul 2010 01:14:59
You highlight the code and click the 'code' button on the toolbar above the editor. Alternatively, use a site like http://pastebin.ca or http://pastey.net to post the code.
-
Posted by jnwhiteh on Sun, 11 Jul 2010 01:16:41
Is the addon loading? Check your Logs\FrameXML.log file and see if there are any errors. Use the /dump command to see if your frame is every created. Lots of troubleshooting that can be done.
-
Posted by Wellb on Sun, 11 Jul 2010 01:45:26
Is the addon loading? Check your Logs\FrameXML.log file and see if there are any errors. Use the /dump command to see if your frame is every created. Lots of troubleshooting that can be done.
im using the same XML that has been working this whole time.
ive made no changes to it.
ive got other lua files that are called by this xml, but i removed them from the toc for the time being.
i've received word that it works on someone elses system... something simple and small is going on here. im just missing it.
-
Posted by jnwhiteh on Sun, 11 Jul 2010 09:36:02
That still doesn't answer my question. IS there anything relevant in the FrameXMl.log. Do you have Lua Errors enabled? Are any errors thrown? Have you disabled all other addons and tried the single addon on its own?