skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

How to dump the results into txt or json file? #35

Closed zzd1992 closed 1 year ago

zzd1992 commented 6 years ago

What is the easiest way to dump the results into txt or json file?

By the way, here is an example: "094220: CDOTA_Unit_Hero_WitchDoctor at index 264 has died" What 'index 264' means? And '094220' is the frame index the game, 30 frames per second. Am I right?

spheenik commented 6 years ago

A good place to start is the OpenDota parser.

The index is the position of the entity in the entity table (nothing you should care about).

Your assumption about the frame number is correct, and it's 30 FPS.