Thread Tools Display Modes
03/14/14, 05:11 PM   #1
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
File Out / Chatlog

So as of this beta the d(string) function no longer goes to the chat log.

Any one know any other way to inject messages into the chat log or write to file?

My ACT plugin is pretty useless without the ability to get a combat log.
  Reply With Quote
03/14/14, 05:15 PM   #2
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
I've always used CHAT_SYSTEM:AddMessage() function.
  Reply With Quote
03/15/14, 01:15 AM   #3
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Does it really not? I've been playing with it tonight and d() has been working as usual for me.
  Reply With Quote
03/15/14, 01:20 AM   #4
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
Originally Posted by Xrystal View Post
I've always used CHAT_SYSTEM:AddMessage() function.
Thanks. Just tried that, but it did not work. It is filtered out of the chat log output for /chatlog.
  Reply With Quote
03/15/14, 06:15 AM   #5
Xzandro
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 2
Maybe SendChatMessage(msg, channel)?
  Reply With Quote
03/15/14, 10:25 AM   #6
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
Originally Posted by Xzandro View Post
Maybe SendChatMessage(msg, channel)?
I have tried this one too.

Say, Shout and whisper to myself seem to work. I went through every channel with a test message..

But say and shout of a combat log will not fly... people around me will hate that.

Whisper has a message rate cap. Entering combat and by the 2nd ability I used I was "logged out" instantly for "a message rate limit was reached". I did not test say the shout for the rate limit. but I bet they are there.

Thanks
  Reply With Quote
03/15/14, 10:27 AM   #7
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
Originally Posted by ingeniousclown View Post
Does it really not? I've been playing with it tonight and d() has been working as usual for me.
It still goes to the chat window in game. I am specifically talking about the ChatLog.log file that chat messages are written to when the /chatlog command is used.
  Reply With Quote
03/19/14, 03:24 AM   #8
Aldazar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 13
This might be a bit offtopic. But since you all report it is working for you I have a question.

I haven't been able to write anything to the chatbox at all. I tried
Code:
CHAT_SYSTEM:AddMessage()
d()
both to no avail. Since I see it working in a lot of other addons, what am I missing? Is there anything I need to register for in order to use this functions?

Thanks in advance.
  Reply With Quote
03/19/14, 03:28 PM   #9
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
When are you using those? If it's in your addon and the UI hasn't finished loading yet when you call them, they won't print to the chat frame.
  Reply With Quote
03/19/14, 03:34 PM   #10
Vuelhering
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 169
Originally Posted by Lodur View Post
But say and shout of a combat log will not fly... people around me will hate that.
ROFL, I just pictured that hilarity.

Once I was debugging something in wow, and accidentally spewed random debug messages into guildchat. Lots of messages. Naturally I wasn't reading guild chat, so I didn't even realize until later.
  Reply With Quote
03/20/14, 02:01 AM   #11
Aldazar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 13
Originally Posted by Seerah View Post
When are you using those? If it's in your addon and the UI hasn't finished loading yet when you call them, they won't print to the chat frame.
Thanks for the answer. I just have it at addon load time.
What event indicates that the UI has loaded?
  Reply With Quote
03/20/14, 01:28 PM   #12
ins
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 76
Originally Posted by Aldazar View Post
Thanks for the answer. I just have it at addon load time.
What event indicates that the UI has loaded?
I see some people use a hidden frame with a onupdate and lets it count up to a pre-determined value before printing any output to the chat log. The other is ADDON LOADED which is 'too early' for chat messages to appear.
  Reply With Quote
03/20/14, 03:11 PM   #13
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
I have had some luck with EVENT_PLAYER_ACTIVATED, however that fires at times other than just at load.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » File Out / Chatlog

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off