What is the enableRanks parameter for the LeaderboardCreate call?

In a recent Nakama version a new parameter enableRanks was added to LeaderboardCreate. What does this parameter do and what value enables the old behaviour? Using the Go version. Looking at the sources doesn’t really say much either.

The docs here need some updating:

From Nakama 3.23 ranks have to be enabled on a per leaderboard/tournament basis, setting the enableRanks to true at creation, otherwise the computed ranks will not be present in record listing.

For any existing leaderboards/tournaments in place the previous default of the ranks being available by default will stand.

The documentation will be updated as soon as possible.

Best.

Ok, so in order to have new leaderboards work the same way as the old ones did enableRanks should be set to true?

Yes that’s correct.

1 Like