Thread Tools Display Modes
04-29-11, 04:21 PM   #1
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Question 4.1 COMBAT_LOG_EVENT_UNFILTERED Issue

Hi Everyone,

I've read that a new argument was inserted into this event causing the majority of the arguments to be pushed out by 1. I was using this event to identify when a unit died and pull out that units name. The unit's name use to be the destName as arg7. It appears arg8 should now be the correct location for the unit name but it doesn't appear to work.
I've attached a picture of the output of the event. There is no unit name anywhere . . . Here's my code:
elseif(event=="COMBAT_LOG_EVENT_UNFILTERED") then
Function_PerformAward(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);

Then I would just be printing out arg8 but it's a nil as seen in the picture. Any suggestions? it appears some of the other arguments are fine.
Thanks for your help!
Attached Thumbnails
Click image for larger version

Name:	image.jpg
Views:	656
Size:	41.9 KB
ID:	6093  
  Reply With Quote
04-29-11, 04:53 PM   #2
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
This is the change, pre 4.1:

local timestamp, event, sourceGUID, sourceName, ...

And in 4.1 it's:

local timestamp, event, hideCaster, sourceGUID, sourceName, ...

In other words they added a new argument between old args 2 and 3, so old arg3 is arg4, arg4 is arg5, e.g. The arg1 and arg2 are the same as always.
  Reply With Quote
04-29-11, 04:58 PM   #3
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
I don't see anything wrong with your code at first glance.. although maybe you should post/pastey all of it.. including Function_PerformAward

then someone might be able to point out why "arg8" and "arg9" are nil in your screenshot

Last edited by Ketho : 04-29-11 at 07:05 PM.
  Reply With Quote
04-29-11, 05:20 PM   #4
Starinnia
Ninja Code Monkey
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 84
Notice that the hideCaster flag is true (arg3). I'm guessing you won't get any name information when that is true.
  Reply With Quote
04-29-11, 05:53 PM   #5
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
if hideCaster is true then arg4-6 will not return any useful information, but arg7-9 should, and it does return a GUID. Did you kill a NPC in that test? Weird not return the NPC name, I guess it would on a player -since for NPC you can extract the npcid from the guid.
  Reply With Quote
04-29-11, 06:48 PM   #6
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Yep, I killed a boar.

Would someone else be able to test this out to see if you are experiencing the same thing?
  Reply With Quote
04-29-11, 06:57 PM   #7
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
  Reply With Quote
04-29-11, 06:58 PM   #8
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Thumbs up

Figured it out. I defined the arguments further up in the function and only went up to arg7 since that was the max one I needed. I added arg8 and it's fixed.

Thanks for the replies
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » 4.1 COMBAT_LOG_EVENT_UNFILTERED Issue

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