parser icon indicating copy to clipboard operation
parser copied to clipboard

Garbage data for sourcename?

Open Turmfalke2 opened this issue 4 years ago • 5 comments

hi, I am trying to understand the parser output. For example:

{
  "time": 676,
  "type": "DOTA_COMBATLOG_MODIFIER_ADD",
  "value": 1,
  "attackername": "npc_dota_hero_bounty_hunter",
  "targetname": "npc_dota_hero_bristleback",
  "sourcename": "npc_dota_hero_lycan",
  "targetsourcename": "dota_unknown",
  "attackerhero": true,
  "targethero": true,
  "attackerillusion": false,
  "targetillusion": false,
  "inflictor": "modifier_bounty_hunter_track"
}

I read this as bounty hunter tracked bristleback, but what has lycan to do with this? What is the sourcename?

Brisleback and lycan are on the same team, so no lotus orb shenanigans.

Turmfalke2 avatar Jan 04 '21 18:01 Turmfalke2

What match ID was this?

howardchung avatar Jan 04 '21 18:01 howardchung

5770770321

Turmfalke2 avatar Jan 04 '21 20:01 Turmfalke2

Looking at the match data I don't see anything obvious. If you have the replay try watching it in client and seeing what's going on?

howardchung avatar Jan 05 '21 05:01 howardchung

I have played that game and I was the bounty hunter.

This is also not a one of issue, every instance of me (bounty hunter) tracking someone has sourcename set to lycan. I would like to understand why this is the case, or what the sourcename is supposed to containe.


$ jq 'select(.type == "DOTA_COMBATLOG_MODIFIER_ADD" and .inflictor == "modifier_bounty_hunter_track") | .sourcename' /tmp/b  | sort | uniq -c
     42 "npc_dota_hero_lycan"

Turmfalke2 avatar Jan 05 '21 08:01 Turmfalke2

It's possible that it's just incorrect data written to the replay and not used by anything. not all fields are used by all combat log events

howardchung avatar Jan 05 '21 17:01 howardchung