Hi Brendan,
We would like to get current player rank in all Global players (We don't require other players data or ranks)
As we have seen getLoaderboard data will fetch all information about players in that leaderboard.
is there any other method availble like getPlayerRank(bool inAllPlayers) just return Rank (int) value like Rank(45000) in 1000000 players.
We are not expecting too much data.. just integer based on his position.
Please suggest us solution.
Thank You
Balakrishna
@Brendan Thanks for the reply, I now add my comment to the main thread.
Is there any update about this matter? As the other developers experienced (and me as well) that GetLeaderboard and GetLeaderboardAroundPlayer returns different results, if the player has the same statistic value with the other players.
I also want to get the current player rank from the global players. When I used GetLeaderboardAroundPlayer it gaves me a different result as with GetLeaderboard.
Thanks you.
Actually, what I was saying was that this thread is specifically about getting the count of all players. What you're asking is a very different question, so to prevent confusion, I was suggesting starting a new thread, or finding a different thread that is about the values/player positions. This one, for example, would be a more appropriate place for your question: https://community.playfab.com/questions/20111/getleaderboardaroundplayer-returns-different-posit.html
Answer by Brendan · May 24, 2017 at 07:11 AM
The leaderboard data currently contains the position of the player in the overall list. I think what you're asking (and please correct me if I'm wrong) is that you want the total number of players in the leaderboard. That's not currently part of the leaderboard system, as computing the number of players with a reported score on a specific statistic would require iterating across that statistic each time, since a player could report a score at any time.
We'll be updating with more tournament-specific functionality later this year, which will include new ways to work with leaderboard data, such as being able to filter on geolocation and have separate cohorts per leaderboard. Please keep an eye on our update announcements in the Game Manager for more information on this.
As you mentioned..
The leaderboard data currently contains the position of the player in the overall list. (this list is limited right?)
We want position of the player in the overall list globally not in limited player..
Example I just want to get my Rank among 1 Million Players. not the data of all 1 Million players.
Thank You Brendan,
No, that's not limited. If you have 100,000,000 players who have a statistic, each player has a position in the leaderboard, which is returned as part of the leaderboard data. So, for example: https://api.playfab.com/documentation/client/method/GetLeaderboardAroundPlayer. If a given player is in position 939,173,376 in the leaderboard and you use that API to request him and the 20 players around his position, you'd get their relative positions in the leaderboard. If that's not what you mean, can you please clarify what the data is that you're looking for?
I just want to show player rank among all players of game.
Example: You are at 45,000 Rank out of Total Players 100,000.
Thank you.
Thanks, as I was saying above, the total number of players in the leaderboard is the part that is not currently available. We'll be adding that in a future update.
Hi, Any news on leaderboard total player count?
We was thinking about create a fake player and set it's statistic value to -1. All other players will have values >= 0, so the position of that player will be the player count.
Is this possible in your mind?
try this api GetLeaderboardAroundPlayer you'll get your rank in this result. what ever its it will give some records as per parameters like 5 record and your entry will be there so u can find your position from all players.(it will give 5 records which nears to you including you)
Is there any update about this matter? As the other developers experienced (and me as well) that GetLeaderboard and GetLeaderboardAroundPlayer returns different results, if the player has the same statistic value with the other players.
Could you please open a new thread for this (or add this to one that's on that topic), so that we're not conflating separate issues? This question thread was specifically about wanting to get the total number of players in the leaderboard.