Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting any data output from parser #116

Open
huertasdanny opened this issue Feb 20, 2020 · 1 comment
Open

Not getting any data output from parser #116

huertasdanny opened this issue Feb 20, 2020 · 1 comment

Comments

@huertasdanny
Copy link

I'm having issues with getting any data out of my replays. For example my entity function doesn't seem to ever be called.
`p.OnEntity(func(pe *manta.Entity, pet manta.EntityOp) error {
log.Printf("Received entity packer %v", pe)

})
`
and neither is my combat log:

`p.Callbacks.OnCMsgDOTACombatLogEntry(func(m *dota.CMsgDOTACombatLogEntry) error {
log.Printf("Received combat log entry %v", m)
t := m.GetType()
switch dota.DOTA_COMBATLOG_TYPES(t) {
case dota.DOTA_COMBATLOG_TYPES_DOTA_COMBATLOG_DAMAGE:
iat := m.GetIsAttackerIllusion()
iah := m.GetIsAttackerHero()
iti := m.GetIsTargetIllusion()
ith := m.GetIsTargetHero()
ivr := m.GetIsVisibleRadiant()
ivd := m.GetIsVisibleDire()
itb:= m.GetIsTargetBuilding()

		target, _ := p.LookupStringByIndex("CombatLogNames", int32(m.GetTargetName()))
		targetSource, _ := p.LookupStringByIndex("CombatLogNames", int32(m.GetTargetSourceName()))
		attacker, _ := p.LookupStringByIndex("CombatLogNames", int32(m.GetAttackerName()))
		damageSource, _ := p.LookupStringByIndex("CombatLogNames", int32(m.GetDamageSourceName()))
		inflictor, _ := p.LookupStringByIndex("CombatLogNames", int32(m.GetInflictorName()))
		value := m.GetValue()

		log.Printf("{\"type\":24,\"time\":\"%s\",\"iat\":%t,\"iah\":%t,\"iti\":%t,\"ith\":%t,\"ivr\":%t,\"ivd\":%t,\"itb\":%t,\"attacker\":\"%s\",\"target\":\"%s\",\"target_source\":\"%s\",\"damage_source\":\"%s\",\"inflictor\":\"%s\",\"value\":%d},", formatDuration(gameTime), iat, iah,iti,ith,ivr,ivd,itb,attacker,target,targetSource,damageSource,inflictor,value)

.......
`
gameEventParsing.txt

I've attached the full file as well. Any help is greatly appreciated

@SeregaSE
Copy link

SeregaSE commented Jul 23, 2020

Do you find a solution? I got the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants