edited 2×, last 04.06.16 08:39:44 pm
Forum
CS2D General The ranking system of CS2DThe ranking system of CS2D
17 replies 1
It updates between 1-300 minutes, You can change it in new game / more settings / stats_update
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.
That stats html of yours is weird. It may not have been updated correctly.
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.
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
edited 1×, last 03.06.16 10: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 written
score 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.
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 03:41:05 pm
1