Blizzard / heroprotocol

Python library to decode Heroes of the Storm replays
MIT License
398 stars 69 forks source link

How to interpret the time value for EndOfGameTimeSpentDead ? #20

Closed crorella closed 8 years ago

crorella commented 8 years ago

Hello,

in this event, how to interpret that integer?

{
    "_eventid": 10, 
    "m_stringData": null, 
    "m_intData": [
        {
            "m_key": "PlayerID", 
            "m_value": 1
        }
    ], 
    "_event": "NNet.Replay.Tracker.SStatGameEvent", 
    "_bits": 664, 
    "_gameloop": 41597, 
    "m_eventName": "EndOfGameTimeSpentDead", 
    "m_fixedData": [
        {
            "m_key": "Time", 
            "m_value": 1609728
        }
    ]
}
barrett777 commented 8 years ago

Any values with 'm_fixedData' in these 'SStatGameEvent' are in fixed point format

Divide them by 4096 to get the integer value

So in this case, 'EndOfGameTimeSpentDead' is '393' seconds

(Blizzard please correct me if I'm wrong :+1: )

crorella commented 8 years ago

Thank you!