Clarity is an open-source parser for Dota 2, CSGO, CS2 and Deadlock replay files, written in Java.
see the Changelog for recent project activity.
Clarity produces the following data you might be interested in from a replay. Choose from:
- combat log: a detailed log of events that happened in the game
- entities: in-game things like heroes, players, and creeps
- modifiers: auras and effects on in-game entities
- temporary entities: fire-and-forget things the game server tells the client about*
- user messages: many different things, including spectator clicks, global chat messages, overhead events (like last-hit gold, and much more), particle systems, etc.*
- game events: lower-level messages like Dota TV control (directed camera commands, for example), etc.*
- voice data: commentary in pro matches*
- sounds: sounds that occur in the game*
- overview: end-of-game summary, including players, game winner, match id, duration, and often picks/bans
- unprocessed: data is provided as original protobuf message object
- Java (17 and above)
- Gradle (for building)
Depending on your project build, use one of the following
<dependency>
<groupId>com.skadistats</groupId>
<artifactId>clarity</artifactId>
<version>3.1.1</version>
</dependency>
implementation group: 'com.skadistats', name: 'clarity', version: '3.1.1'
implementation("com.skadistats:clarity:3.1.1")
For example code, please see the separate project clarity-examples.
See LICENSE in the project root.