AliceStats / Alice

Dota 2 replay parser written in C++
Apache License 2.0
78 stars 8 forks source link

[Question] How to access last hit stats #6

Closed danielrona closed 10 years ago

danielrona commented 10 years ago

Hi there,

I've been trying for the past week to figure out how to access the last hit stats.

But I can't seem to find a way, could you maybe provide a small Example on how to access this data from a replay?

invokr commented 10 years ago

Last hits are available in the entities. See my last comment on this issue: https://github.com/AliceStats/Alice/issues/4 The field you are looking for is .m_iLastHitCount.0000 - .m_iLastHitCount.0009 in CDOTA_PlayerResource.

danielrona commented 10 years ago

I thought there might be a example file and I just overlooked it. Thank you nonetheless, as I can parse deaths, building destroys, item buys

invokr commented 10 years ago

If you are clueless about C++, don't use Alice. This is not the easiest library to use and I don't have the time to write tons of documentation. You should check out other parsers like clarity or smoke.