transhumandesign / kag-base

King Arthur's Gold base folder.
257 stars 118 forks source link

[Feature Pitch] Add leaderboards for official servers with various statistics #251

Closed bunniewormy closed 4 years ago

bunniewormy commented 5 years ago

A pretty big feature pitch, but it would be nice if we could get it for f2p - I suggest adding leaderboards for official servers, and add a new button to the main menu - "Official Leaderboards". It would incentivise people to play more and it would be interesting to look at some statistics. Some servers in Classic had such leaderboards: image

You could sort leaderboards by:

Bad graph:

image For example, you could sort EU>TDM>Knight>Kills, or Global>CTF>Archer>Deaths by arrows, or EU>Global>All classes>KDR. Basically anything that anyone wants, sorry for bad explanation.

For 'truly global' sorting, you would probably need to bring back points (experience points?): Default sorting probably should be Global>All gamemodes>All classes>Points

KAG Classic had points, I don't know the exact formula, but you could assign points to certain statistics, and then count them all or something like that (for example, flag cap 50 points, kill 2 points, double kill 8 points, spike kill 10 points, death -1 points - just examples)

I would suggest tracking the following stuff (reminder that each of them could be sorted by class, so need to track the class as well).

I also suggest adding a reward for the best Knight, Archer and Builder in each region - a special badge and perhaps even a coloured name? If the leaderboards are going to be for all offi servers, the best players deserve more recognition than just a badge

1bardesign commented 5 years ago

This pitch has received a $100 bounty - but we'll need to discuss staging that into multiple actual tasks.

If anyone has a split they think would work, they're welcome to suggest it! The one suggested on discord was:

The specific stats to measure also needs to be agreed; the list above from bunnie is a sensible starting point.

ghost commented 5 years ago

per server config files? you would have to make new interafces to display the real time data seems out of scope. I think just make a centralized server with a simple api that aggregates and sorts all the incoming data from official servers and has a good frontend

1bardesign commented 5 years ago

I figured splitting the concerns would be good, but if it was to be tackled as a single solution that'd be fine too. In that case, ideally it'd be open source and compatible with other hosts' servers as well, so they could run their own leaderboards.

ghost commented 5 years ago

working on this

Harrison-Miller commented 5 years ago

Work is almost done with the first draft http://staging.kagstats.com/#/leaderboards https://github.com/Harrison-Miller/kagstats https://trello.com/b/WR8dcqD7/kag-stats-https-githubcom-harrison-miller-kagstats

Hopefully releasable sometime in august.

1bardesign commented 4 years ago

@Harrison-Miller has got http://kagstats.com/ hooked up to the official servers - going to close this now, verra get in touch please about the bounty 💖

Please forward issues with kagstats to the appropriate repo!