Usage:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Usage: cs2d-stats-parser [OPTIONS] <folder> <output> Arguments: <folder> Path to the folder containing 'userstats.dat' <output> Output file (must end with .html, .json, .csv, .md, or .xml) Options: -s, --sort <sort> Sort leaderboard: 0 = score+kills-deaths 1 = assists+kills-deaths 2 = score+assists+deaths [default: 1] -l, --limit <limit> Limit players in the generated output [default: 100] -t, --title <title> Title to display in the HTML/Markdown report [default: "CS2D Server"] -p, --pretty-print Enable pretty-printing for JSON output to improve readability -w, --watch Monitor 'userstats.dat' for changes and regenerate output when modified -h, --help Print help -V, --version Print version
Generate a JSON file on Windows:
1
cs2d-stats-parser.exe "C:\Program Files (x86)\Steam\steamapps\common\CS2D\sys\stats" "report.json"
Generate a HTML file with a custom title on Linux:
1
./cs2d-stats-parser "/home/cs2d/sys/stats" "/var/www/html/dm.html" --title "Deathmatch Server"






https://github.com/ernestpasnik/cs2d-stats-parser/releases
I was experimenting with Rust, wanted to try it out, and it seems like a simple and nice lang:)
edited 11×, last 13.04.25 08:22:27 am
Approved by Yates
Download
205 b, 7 Downloads