Forum

> > CS2D > Scripts > Easily modify userstats.dat
Forums overviewCS2D overview Scripts overviewLog in to reply

English Easily modify userstats.dat

8 replies
To the start Previous 1 Next To the start

old Re: Easily modify userstats.dat

DC
Admin Off Offline

Quote
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).
edited 1×, last 01.04.19 05:32:27 pm

old Re: Easily modify userstats.dat

DC
Admin Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview