gamecenter: Want to know rank XX of YYY ... can get the XX but how do i get the YYY

I hope this is the right forum … i have been looking for a while for an answer to this and experimenting with the GameCenter API has not resulted in finding an answer nor have i found a post that addresses this question.

I need to know how many players are reported on a given leaderboard. I can get the player’s rank but i do not know how many players there are on that leaderboard.

Anyone know what API call is needed to get this info?

thanks!

[import]uid: 118012 topic_id: 28808 reply_id: 328808[/import]

Sorry, I don’t think you get that. I didn’t think that API was available in Game Center, but I just checked and it actually might be, but we missed that one. (Notice there are dozens and dozens of properties we already expose. It’s really easy to miss some.)

With loadScores, with ‘range’, you can specify a maximum up to 99 scores to fetch. If there are fewer, you will get fewer results which you can count manually.
[import]uid: 7563 topic_id: 28808 reply_id: 116107[/import]

Thanks for the feedback. Not sure i see how i can use the loadScores to accomplish what i need as the scope i need to consider is all Time and i certainly hope that there will be more than 99 users :slight_smile:

Any chance you can expose this attribute in a daily build? Certainly would help my cause a great deal.

Cheers,
m

[import]uid: 118012 topic_id: 28808 reply_id: 116126[/import]

We probably won’t get to this in the immediate future. I expect the next big pass on Game Center will be for MacApp in which we may or may not be able to add this. Please file a bug report/feature request with us now so when we get there, we won’t forget about this.
[import]uid: 7563 topic_id: 28808 reply_id: 116142[/import]