Modes Config Format
Overview
Modes make work with user statistics more flexible by acting as named containers for stats. Each mode stores its own independent copy of all user statistics. For example, a player can have 4 kills in solo mode and 10 kills in squad mode.
Typical uses:
game types: solo, squad, duo
countries: USSR, Germany
locations: Moscow, Berlin
To learn how the game interacts with the statistics server, see the .
Adding Modes Config
To use modes, you need to:
Add mode descriptions to the modes config.
Deploy configs to services.
Mode Description Format
{
"name": "solo",
"leaderboard": "SIMPLE",
"public": false
}
Fields
namestring required Name of the mode. Must be unique.
leaderboardstring optional Type of leaderboard generated for this mode. Defaults to
"NONE".Possible values:
NONE– No leaderboard is generated for this mode.SIMPLE– Generates a flat leaderboard without groups.GROUPING– Generates a leaderboard with groups. Use this to implement leagues or buckets. See Leaderboard Group.
publicbool optional If
true, makes stats for this mode visible to other users. Defaults tofalse.Note
This only applies to stats with
showForAll = true. To request another user’s statistics, use the action.