+ Reply to Thread
Results 1 to 7 of 7

Thread: 2.4 Combatlog info

  1. #1

    2.4 Combatlog info

    Hello.
    Ive been around looking but failed to find any information about the new combatlog rly looks like. All the masks is clear but theres a few things I dont understand.

    This for example:
    3/24 00:16:17.359 SWING_DAMAGE,0x00000000009C205D,"Erfrag˘n",0x518,0 xF13000619023956A,"Dawnblade Blood Knight",0xa48,454,1,0,0,0,1,nil,nil =>
    <date> <type>,<id casting>,<casting name>,<casting mask>,<target id>,<target name>,<target mask>,<dmg>,<?>,<?>,<?>,<?>,<?>,<?>,<?>

    The last 7 fields what are they for here? And how do crushing entries look like? There are some more wierd fields but I start with this one. Maybe any of you have a good source for it aswell. Im rly sorry to bother you and you might not be able to help but I havent run a raid on the PTRs yet.

  2. #2
    Join Date
    Jul 2007
    Location
    Canadia
    Posts
    3,523
    WoW Forums -> Upcoming 2.4 Changes - Concise List
    WoW Forums -> Upcoming 2.4 Changes - Concise List
    WoW Forums -> Upcoming 2.4 Changes - Concise List
    WoW Forums -> Upcoming 2.4 Changes - Concise List

    This is what you are looking for => API COMBAT LOG EVENT - WoWWiki - Your guide to the World of Warcraft


    It works something like this:

    Code:
    myframe:SetScript("OnEvent", myframe.OnEvent)
    myframe:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
    
    function myFrame:OnEvent(e, ...) 
      if (e == "COMBAT_LOG_EVENT_UNFILTERED") then
        time, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, 
        arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 = select(1, ...)
          ... do stuff with arg1-arg10 based on the value of event ...
      end
    end
    
      ...

    Similarly, here's an extract of the CombtMonitor2 event handling to show it in action (Note that CM2 is an Ace3 addon so that's where the implicit RegisterEvent comes from):

    Code:
    CombatMonitorEvent.OnEnable = function(self)
      self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED", "Parse")
      _db = _cm.db.char
      self.myGUID = UnitGUID("player")
    end
    Code:
    CombatMonitorEvent.Parse = function(self, _, time, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, ...)
    
        ...    
        local _, _, prefix, suffix = string.find(event, "(.-)_(.+)")
        
        if (prefix == "SWING") then
          if (suffix == "DAMAGE") then
            e.damage, e.damageType, e.resisted, e.blocked, e.absorbed, e.crit, _, e.crush = select(1, ...)
          elseif (suffix == "MISSED") then
            e.missType = select(1, ...)
          end
        elseif (prefix == "RANGE") then
          if (suffix == "DAMAGE") then
            e.spellID, e.spellName, e.damageType, e.damage, e.resisted, e.blocked, e.absorbed, e.crit, _, e.crush = select(1, ...)
          elseif (suffix == "MISSED") then
            e.spellID, e.spellName, e.damageType, e.missType = select(1, ...)
          end
        elseif (prefix == "SPELL") then
          if (suffix == "DAMAGE") then
            e.spellID, e.spellName, e.damageType, e.damage, e.resisted, e.blocked, e.absorbed, e.crit, _, e.crush = select(1, ...)
          elseif (suffix == "MISSED") then
            e.spellID, e.spellName, e.damageType, e.missType = select(1, ...)
          elseif (suffix == "PERIODIC_DAMAGE") then
            e.spellID, e.spellName, e.damageType, e.damage, e.resisted, e.blocked, e.absorbed, e.crit, _, e.crush = select(1, ...)
          elseif (suffix == "PERIODIC_MISSED") then
            e.spellID, e.spellName, e.damageType, e.missType = select(1, ...)
          end
        elseif (prefix == "DAMAGE") then
        ...

  3. #3
    Quote Originally Posted by Satrina;67689
    This is what you are looking for => [url=http://www.wowwiki.com/COMBAT_LOG_EVENT_Details
    API COMBAT LOG EVENT - WoWWiki - Your guide to the World of Warcraft[/url]
    This is precisley what I wanted. Thank you very much Satrina. I must have been blind/lazy/google-incompetent because its been on wowwiki all the time.

    Btw Im really looking forward to CM2. I use the CM2 beta already and can't live without it .

  4. #4
    Join Date
    Jan 2008
    Location
    Durotar, Kalimdor
    Posts
    31
    Where can I get a copy of the CM2 beta ?

  5. #5
    CM2 beta is broken in p2.4. no need to get that. we're all waiting for the new one

  6. #6
    Join Date
    Jul 2007
    Location
    Canadia
    Posts
    3,523
    Yep, and my work revolves around government fiscal year end (March 31), so guess who barely has time to log in for raids right now? =)

  7. #7
    Join Date
    Jan 2008
    Location
    Durotar, Kalimdor
    Posts
    31
    Does that mean we can expect a new version in April ? :P

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts