Skip to content

Guides

Practical guides for using gem's public Python API, CLI, and lower-level parser hooks. Each guide assumes gem is installed and you have a decompressed Dota 2 .dem replay.

You can download replays from OpenDota or from the Dota 2 client under Watch -> Recent Games.

Start here

GuideUse it when you want to
QuickstartInstall gem, parse one replay, and export data
Full Match DataUnderstand the ParsedMatch and ParsedPlayer fields
Time-Series & DataFramesWork with pandas tables, positions, and advantage curves

Analyze replay events

GuideUse it when you want to
Combat LogFilter damage, healing, kills, item uses, and modifiers
Teamfight DetectionUse Gem and OpenDota-compatible fight windows
Laning AnalysisRead lane roles, lane efficiency, and 10-minute advantages
Entity StateSubscribe to raw entity lifecycle and field updates

Export and extend

GuideUse it when you want to
CLI ReferenceRun parse, batch, and report asset-cache commands
JSON Output ShapeUnderstand the nested JSON structure returned by to_json()
Custom ExtractorsRegister parser callbacks and collect custom outputs

Internals

Parser internals live in dedicated pages:

  1. Bits & Bytes Primer
  2. Parser Internals