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

Trying to extract data from a replay #108

Open
themhz opened this issue May 5, 2024 · 1 comment
Open

Trying to extract data from a replay #108

themhz opened this issue May 5, 2024 · 1 comment

Comments

@themhz
Copy link

themhz commented May 5, 2024

Hello there, I am trying to use this tools to export some data from my game replays, like hero damage per hero . For example I am looking for dataset like

Hero damage source | Hero damage destination | Damage Type | Level | Amount | TimeStamp
Muradin | Nazebo | Auto Attack | 1 | 100 | 10:56:12:10
Muradin | Nazebo | Auto Attack | 1 | 100 | 10:56:12:50
Nazebo | Muradin | Spell Damage {Frog hit} | 2 | 200 | 10:56:13:10
Nazebo | Muradin | Spell Damage {Frog hit} | 2 | 200 | 10:56:14:10
...

This for every hero to every hero per level in the match

I have exported the gamevetns.json but I cant figure how this file is structured. I mean its json but what does it actually mean? is there a documentation?

@koliva8245
Copy link

What you want isn't possible. The event you're probably looking for is the NNet.Game.SCmdEvent event. This event is for when an ability is used. Though there isn't a way to map the m_abilLink to determine the actual ability. Things like damage numbers are not stored in the replay, only actions are.

{'_bits': 264,
 '_event': 'NNet.Game.SCmdEvent',
 '_eventid': 27,
 '_gameloop': 7898,
 '_userid': {'m_userId': 3},
 'm_abil': {'m_abilCmdData': None, 'm_abilCmdIndex': 0, 'm_abilLink': 26},
 'm_cmdFlags': 1048832,
 'm_data': {'TargetUnit': {'m_snapshotControlPlayerId': 12,
                           'm_snapshotPoint': {'x': 524308, 'y': 454650, 'z': 48640},
                           'm_snapshotUnitLink': 1310,
                           'm_snapshotUpkeepPlayerId': 12,
                           'm_tag': 780140580,
                           'm_targetUnitFlags': 111,
                           'm_timer': 0}},
 'm_otherUnit': None,
 'm_sequence': 986,
 'm_unitGroup': None,
 'm_vector': None}

See also #27 and #28.

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