You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to parse replay 5909829384. My code is simple
f, err := os.Open(root + "\\" + replayFile)
if err != nil {
log.Fatalf("unable to open file: %s", err)
}
defer f.Close()
p, err := manta.NewStreamParser(f)
if err != nil {
log.Fatalf("unable to create parser: %s", err)
}
p.Callbacks.OnCMsgDOTACombatLogEntry(func(m *dota.CMsgDOTACombatLogEntry) error {
t := m.GetType()
if (t != dota.DOTA_COMBATLOG_TYPES_DOTA_COMBATLOG_DEATH) {
return nil
}
if (!m.GetIsTargetHero()) {
return nil
}
if (m.GetIsTargetIllusion()) {
return nil
}
raw := m.GetTimestampRaw()
target, attacker := int(m.GetTargetName()), int(m.GetAttackerName())
log.Printf("%v kills %v at %v", attacker, target, m.GetTimestampRaw())
return nil
})
p.Start()
log.Printf("Parse Complete!\n")
The first 3 entries printed were
7 kills 11 at 566.8334
17 kills 13 at 590.8334
15 kills 11 at 648.7
Which suggests that the second kill is 24s after first blood, and the third kill is 82s after first blood. This is completely off with the kill timing in the replay.
The text was updated successfully, but these errors were encountered:
I tried to parse replay 5909829384. My code is simple
The first 3 entries printed were
7 kills 11 at 566.8334
17 kills 13 at 590.8334
15 kills 11 at 648.7
Which suggests that the second kill is 24s after first blood, and the third kill is 82s after first blood. This is completely off with the kill timing in the replay.
The text was updated successfully, but these errors were encountered: