Forum

> > CS2D > Scripts > Easily modify userstats.dat
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Easily modify userstats.dat

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Easily modify userstats.dat

DC
Admin Off Offline

Zitieren
Note that the format changed (more values) since I wrote the post linked by user Jaller94. The introduction of assists, MVP and Steam led to some changes so old tools will NOT work properly anymore unless they have been updated!

The very first line is a string (with line break) describing the format. The latest format string is
userstats steam
and the data set for a user looks like that (it's simply repeated X times in the file after that format line):
1
2
3
4
5
6
7
8
9
LINE (string with line break) user name
BYTE user type
LONG user ID
INT score
INT frags
INT deaths
INT assists
INT mvps
INT seconds play time on server

depending on user type byte the user ID either represents a Steam ID (1) or a USGN ID (0). I think when a user is using Steam and USGN login the USGN login is used.
Data types as described here.

CS2D can also load the old formats but it will always save the data in the latest format (the one described above).
1× editiert, zuletzt 01.04.19 17:32:27

alt Re: Easily modify userstats.dat

DC
Admin Off Offline

Zitieren
It's a binary format. It's not human readable. You would have to write a program to read the values or use a HEX editor.

If you only want to change a few values a HEX editor is probably sufficient but it's still not trivial and you have to understand the data types / the offsets to be able to find and modify the right values.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht