CS2D\sys\stats\stats.datfile is encoded? I'm trying to understand its structure for parsing purposes.
Forum
General
How is stats.dat encoded?
How is stats.dat encoded?
3 replies
1

1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Tstats_general {
pointer decl;
references;
day;
month;
year;
hour;
up;
down;
players;
};
Functions:
1
2
3
2
3
getstats() savestats() loadstats()
Can't guarantee the results. Also, It doesn't seem to be relevant anymore.
header line "stats alpha" (written with BlitzMax WriteLine)
after that, in a loop until eof:
- byte (unsigned 8 bit) day
- byte month
- short (unsigned 16 bit) year
- byte hour
- long (signed 64 bit) uploaded bytes
- long downloaded bytes
- byte players
(all data types as explained here)
DC: Thank You
1

Offline