Stats and achievements
Finished games count toward players' ranks and service records through the project's public stats service, the one 0.9 reported to, so every player's record carries on. A server with an empty stats_server reports there, at http://stats.ibigs.us:8792; one that saved the service's earlier address reports there too. Point it at your own service with stats_server = "http://stats.example:8792", or set "off" to report nothing.
- A server reports a multiplayer game once at least two of its players have proven who they are. Co-op games aren't ranked, so campaign and ODST servers report nothing.
- Reports are signed with
data/stats-key.json, one key for every server in a configuration, made when the servers start. A 0.9 server folder's key is the same file, so a whitelisted server stays whitelisted.dedicated stats-keyshows it, with the command a service's operator runs to whitelist it. - A service can hold back games from servers it doesn't whitelist, and doesn't count games that look like boosting, such as games under a minute or with no kills or score.
stats_servertakeshttp://only:dedicated checkpasses anhttps://address, but a server given one doesn't start. Plain HTTP is by design here: reports are signed.- Unlocks: the server asks the same service which cosmetic unlocks, such as helmet fire, each player has. A choice a player hasn't unlocked shows to everyone else as that slot's default; nobody is kicked for it. With
stats_server = "off"there are no lookups, and everything counts as unlocked. - A changed
stats_serverapplies from the next game; the game under way still reports to the one it started with.
Stats key data/stats-key.json
Public key XgKK+Btd/7LY…
Whitelist it stats-server allow --key XgKK+Btd/7LY… --name "<server name>"
EXP reporting
Players see whether a server's games earn EXP before they play: a chip in its lobby and on its Server Browser card, and the game-over screen says why a game earned none. A host can turn EXP reporting off and keep the server otherwise as it is:
[[server]]
name = "Practice"
port = 49178
report_games = false # players earn no EXP here; the browser shows EXP OFF
report_gamesgoes under[defaults]or in a[[server]]block, and applies from the next game.RECLAIMER_DEDICATED_REPORT_GAMESsets the[defaults]value.- Servers of 0.10.10 and older refuse a
dedicated.tomlthat names it, so keep it out of a file shared between builds. stats_server = "off"still turns every report off.- Who wins: in a team game, the first-placed team's players. In free-for-all, the top half of the finishers, except a player who scored nothing and killed nobody. A win or a tie earns 1 EXP; leaving early costs 1.
Copies of the reports
stats_copies, at the top of dedicated.toml, sends each game's report to more services too: the same signed bytes that go to stats_server, so they verify on any service. Use it for a mirror of your own:
stats_copies = ["http://mirror.example:8792"]
- Each address has its own queue and retries. One that's away, slow or refusing delays nothing else: not the other copies, not
stats_server's report and not the game. - A copy that fails is tried again for about a day, with waits that grow from 2 seconds to 5 minutes. A queue holds 16 reports, in memory: with it full, newer reports aren't queued for that address, and reports still waiting when the server stops are lost for that copy.
- It needs a
stats_serverthat isn't"off", takes up to 8 addresses and may not namestats_serveritself. A service with a whitelist needs your key on it, asstats_server's does. - A change applies at once.
RECLAIMER_DEDICATED_STATS_COPIESadds to the list.
Achievements
Players earn achievements on your server, and they show on their player cards. The stats service grants every one of them: the server sees a player earn one and sends a claim, signed with its stats key.
- Your server must be approved. The service records a claim only from a key or address it whitelists. Until yours is, players earn nothing on it: ask the service's operator with the line
dedicated stats-keyprints. - Claims go to
stats_server; with"off", none are sent. - A game with campaign barriers off, no-clip or flight earns nothing, Forge's monitors included.
