TF Demo Parser
Parsing of tf2 demo files
Building
This project is build using rust and requires cargo
and friends, see the rust website
for how to get started.
Once rust is setup building is as simple as
which will place the binary at target/release/parse_demo
Usage
Basic usage is as simple as parse_demo demofile.dem
which will output a "summary" of the demo file in JSON format.
Passing the detailed_summary
argument to the end of parse_demo
will output a table with scoreboard information for all players who were ever on the server while the demo
was being recorded. The player who created the demo will be highlighted in the output.
Advanced usage
Loop through every packet
use BitRead;
use MainError;
use fs;
use Header;
use ;
use Demo;
Handle demo data with a custom analyser
Sometimes it's easier to create a custom Analyser
to handle the demo data as it comes along.
See src/demo/parser/analyser.rs
for an example.
Once you have a custom analyser you can use it with:
;
let = parser.parse?;
new_all_with_analyser