Files

> > CS2D > Misc. > CS2D Stats Parser – Exporter for userstats.dat
Files overviewCS2D overviewMisc. overview

English CS2D Stats Parser – Exporter for userstats.dat >

5 comments205 b, 7 Downloads

old CS2D Stats Parser – Exporter for userstats.dat

Hajt
User Off Offline

This tool parses CS2D stats and exports them as HTML, JSON, CSV, Markdown, or XML.

Usage:
1
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"


∗ ∗ ∗ You can download it from the GitHub Releases ∗ ∗ ∗
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 Download

205 b, 7 Downloads

Comments

5 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Hajt
User Off Offline

Yo, @user Yates is back?! Welcome back, mate, the crew just got a whole lot cooler!

@user Gaios: I finally managed to make the CI release! It took me 2 hours to figure it out, haha. I don't have much experience with these things. I'll create a text file with a link to releases page...

old

Yates
Reviewer Off Offline

I gotchu fam
I like it!

old

mrc
User Off Offline

Useful.
I like it!

old

cs2d_is_a_Gem
User Off Offline

There should be more plugins like this.
I like it!

old

Gaios
Reviewer Off Offline

I'm not a fan of hosting executable files on forum websites. A better solution would be to upload a text file that redirects users to the GitHub release page, which is automatically generated by GitHub CI/CD. This way, there's a lower risk of malware, and I would be more inclined to accept the file.
I like it!
To the start Previous 1 Next To the start