Hello there,
I need to get local leaderboard, based on the country player recently/lastly logged in. The local leaderboard is supposed to contain all the players from the same country. And as the final step i'd like to retrieve the top 100 players from that leaderboard.
How it could be possibly done? Thanks
Answer by jital · May 22, 2019 at 03:25 PM
Greetings,
At this time the recommended way to create location based leaderboards is to create a statistic for each country statistic pair you have
Example: If you want a "High Score" leaderboard, you will need to create a statistic for each country, "US_High_Score", "Finland_High_Score", "Japan_High_Score", etc, etc.
Each of these will need to be individual statistics within PlayFab.
This forum post answer explains the process further.
Thanks for the reply. I've been thinking the same approach so far. Aint we're limited with 25 leaderboards at once? The problem is there are 195 countries all around the world and i'd love all of them hypothetically to be provided with leaderboard. How we can get with it?
While it is possible to increase the leaderboard/statistic limit by upgrading your PlayFab tier, up to 300 with the enterprise tier.
The better method would be to look at the audience for your game. It is highly unlikely that someone from every country will play your game. On top of that are you willing to localize your game for every culture/country?
I would advise that you take a look at your target audience and make leaderboards for those countries and add more country leaderboards as your game grows in players.
Well, you're absolutely right here. I guess It's clear for me now. Thanks a bunch!
Question about statistics limit > 300 1 Answer
How can we exceed the statistics limit if using basic package with pay as you go? 1 Answer
Creating statistics/leaderboards dynamically using the admin API. 1 Answer
Leaderboard limits,Are there limits to leaderboard updates? 1 Answer
How do you get total number of entries in a Leaderboard? 2 Answers