Open steakscience opened 3 years ago
@jcoene Would you happen to know this?
There are buffs generated and disappeared in the "CombatLog". The permanent buff is that only the generated state does not disappear!
@jacobxy How do you access CombatLog using Manta?
func (c Callbacks) OnCMsgDOTACombatLogEntry(fn func(dota.CMsgDOTACombatLogEntry) error) { c.onCMsgDOTACombatLogEntry = append(c.onCMsgDOTACombatLogEntry, fn) }
@jacobxy Another question now that you're here:
Ability Upgrades seem to be skipping stats?
Example: lvl 16 mirana takes Leap, lvl 17 mirana auto takes Stats, lvl 18 Mirana takes Moonlight Shadow
the parser will output this: [..., lvl 16 leap, lvl 17 moonlight shadow]
Any way to work around this?
I don't know how to write your parsing process, so I can't judge whether there is a problem. At present, the data I parse doesn't have such a problem.
@jacobxy We are writing it like this:
for level, ability := range player.GetAbilityUpgrades() {
matchData.Players[index].AbilityUpgrades = append(matchData.Players[index].AbilityUpgrades, AbilityData{
Level: level,
AbilityIndex: ability,
})
}
It seems that this interface is post game data. At present, the return is an array, so it is impossible to jump the output level, because the data has the frame number of upgrade time, which needs to be combined with the player's level at that time, and the game process data needs to be analyzed.
I see, how would you recommend fetching this data instead?
One of the methods of this library is to obtain process data by parsing DEM video files.
@jacobxy Thank you! 🤗
Example: