Forum

> > CS2D > Servers > Server rank issue(score is altered)
Forums overviewCS2D overview Servers overviewLog in to reply

English Server rank issue(score is altered)

4 replies
To the start Previous 1 Next To the start

old Server rank issue(score is altered)

cpt_kenpachi
User Off Offline

Quote
I've got an issue with the ranks on my server.
IMG:https://i49.tinypic.com/vnpkko.png



As you can see the issue i have is that the score has been altered. I'm aware it can be altered via setscore by using the rcon. But I've only got rcon access. I checked the logs in case the possibility of it being used, but it hasn't.
This has happened within the last two months.

Is there a way to edit the rank files? so that i can fix the score. Players spent a lot of time on my servers to get those ranks and now it's ruined.
Any help is appreciated.

old Re: Server rank issue(score is altered)

DC
Admin On Online

Quote
It only seems to affect the first two players and their score value. All other values seem to be legit (the third guy played over 30 days on your server. omg!). You may consider to edit sys/stats/userstats.dat with a hexeditor or with a tool for stats editing (I think there was one somewhere but I can't find it). Just set the wrong scores to the same values as the kill values. Those two values are quite equal in most cases because only special actions like defusing a bomb gives you additional score points besides killing.

!!!Make a backup before editing!!!

The userstats.dat format is very simple:
1
2
3
4
5
6
username (string, linebreak afterwards)
usgn id (32 bit signed integer)
score (32 bit signed integer)
frags (32 bit signed integer)
deaths (32 bit signed integer)
time on server in seconds (32 bit signed integer)
this data set for each saved user

So when using a hex editor you have to
• find the username which has a wrong score
• skip 4 bytes (characters) in the line right after that username
• and copy&paste the 4 bytes right after that back to the first 4 bytes in that line

you could also simply remove the "damaged" users from the file.

∗ Update April 2019: ∗
Note that the format changed as described in this post
http://www.unrealsoftware.de/forum_posts.php?post=424522&start=0#post424525
edited 2×, last 01.04.19 05:22:56 pm

old Re: Server rank issue(score is altered)

krabob
User Off Offline

Quote
Sometimes when a player is on a server, his scores just randomly get huge.

Not sure why that happens, but I guess the same thing happened on your server.
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview