edited 2×, last 04.06.16 06:39:44 pm
Forum
General
The ranking system of CS2D
The ranking system of CS2D
17 replies
1

It updates between 1-300 minutes, You can change it in new game / more settings / stats_update
stats_update works only for serverstats.html but anyways thank you.
Hajt: It's the time for output for stats and userstats. (I believe)
Hajt: The ranking goes after the score which is default in cs2d. If you want to make it after kills/deaths or whatever you want to do. You must create your own ranking system. So basically, It automaticly sorts after the highest score.
@
Yates: I am pretty sure too that it updates after every action that causes it to change.
Hajt: Lol, seriously. Good question. What does it go after?
That stats html of yours is weird. It may not have been updated correctly.
Yates? I know that my stats are fucked up because some of players have more kills than score but here is an another example of serverstats. The only thing I see by quickly looking at it is that it may be based on average score by time. But I'm pretty sure that's not the case.
File does not exist (16081) to directly parse the stats from userstats.dat There won't be an issue there as userstats.dat properly manages the stats unlike serverstats.html (Reason#1 I removed serverstats.html user ranking parsing).It's easy to use if you know how to manage/loop arrays in PHP and you have enough data to make your own custom serverstats.html
Nekomata? I'm pretty sure that my script written in PHP parse the stats in the proper way because I've read this post but thank you. edited 1×, last 03.06.16 08:17:59 pm
The sorting is NOT simply done by score but by this value which is calculated for each player:
1
sortValue = (score+frags) - deaths
score already contains frags (because killing someone gives you a score point as well). This means each kill is counted twice for the ranking.
1
SELECT *, (score + kills) - deaths AS sortValue FROM stats ORDER BY sortValue DESC LIMIT 100
DC has writtenscore already contains frags (because killing someone gives you a score point as well). This means each kill is counted twice for the ranking.
Doesn't that seem weird? score - deaths would be enough and make more sense.
Yates: I did it like that to give long time players a higher ranking than short time players. So the ranking is actually not just about how good you are but also about how much time you invest (more or less - of course you still have to do kills otherwise you won't get a better ranking).e.g.:
long time player: 100 kills, 100 deaths = 100*2 - 100 = 100
short time player: 10 kills, 10 deaths = 10*2 - 10 = 10
with simplified formula (score - deaths) they would have an equal ranking:
long time player: 100 kills, 100 deaths = 0
short time player: 10 kills, 10 deaths = 0
edited 3×, last 11.06.16 01:41:05 pm
1

Offline