GameKit only records the user's highest score, but I need it to record the lowest - iPhone - iphone

So I'm programming a game for the iPhone that the best score is the lowest score, but when I submit scores through the GameKit to the Gamecenter leaderboards, only the highest score shows up, aka the worst score for that player. Is there a way to make Gamecenter accept lower scores, or a way to check the players score and force gamecenter to replace it if it's lower?
Thanks

According to the Game Kit Programming Guide, you can configure whether the scores are ranked in ascending or descending order through iTunes Connect.
On page 114 of the iTunes Connect
Developer Guide 6.6, you can see how to change this.
If you want the lowest score to be the best, you'll want to rank in ascending order.

You can try below link for reference.
Here I am talking about GKLeaderBoardViewController.This class is for counting Highest Score.For more details I suggested you to read below link.Thanks
http://developer.apple.com/library/ios/#documentation/GameKit/Reference/GKLeaderboardViewController_Ref/Reference/Reference.html

Related

Setting up an average score leaderboard on GameCenter

I'm trying to set up an average score leaderboard on gamecenter. I've been trying to see if there is some sort of native support for an average score but have been unable to find anything. Sending the locally calculated average score doesn't work because gamecenter either takes the highest score or the lowest score depending on what sort of leaderboard you set, but you can't set up a score that updates EVERY time.
Does anyone know a good solution?

IOS Gamecenter Leaderboard : Multiple score entries for single player

I have a simple query about Apple's gamecenter leaderboards.
Is there a possibility of making multiple score entries for a single player?? Example, I have a score of 100 first and then i score 200, I need both the scores to be displayed for me on the leader board. Is it possible?
Thanks for your answers.
No, it's not possible with GameCenter, the Gamecenter leaderboards only pick the highest
You should create your own leaderboard and server to get what you want or maybe with openfeint

Apple GameCenter scoring

It seems to me that GC doesn't override scores that are less then the current one. This is quite a problem because how do I suppose to override leader boards that store parameters like fire accuracy (say 56%, 66% and so on) ? I also can't find any way to reset the score.
That dependes on how do you have it in iTunes Connect.
In iTunes Connect you can choose witch type of leaderboard you want, low to high, high to low. And every value is send to Game Center, they just wont save the better score.
The better score will be the bigger on low to high, and will be the lowest on hight to low.
About reseting the leaderboard you cant do that. Apple gives you 25 leaderboards, and thats all. You can only reset the archievements.
the work arround you can do is create a new leaderboard, rename the old to Archives, and rename the new to the name you want, but wen you reach yours 25 leaderboards cap you cant do nothing more.

iOS Leaderboard displays no score data

I have problem to send my score data to the game center leaderboard on my iOS game. I use the cocos2d engine.
I followed the instruction on Apples checklist:
https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/LeaderBoards/LeaderBoards.html#//apple_ref/doc/uid/TP40008304-CH6-SW14
I checked BundleIDs, set up the Leaderboards on iTunesConnect.
On the application startup I sign in the local player. So I can see on the top of the screen "Welcome back ..." and it also says that I'm in the Sandbox.
To send the score I use the best practice code from Apple. When I debug the code I can see that there is no error with sending the score data. I also checked several times the spelling of the Leaderboard ID.
When I open the game center app or I show the leaderboard view controller in my app, I don't see any scores at all. I also checked that I loged in with my Sandbox account.
Any suggestions?
Andy
It seems to be that the sandbox leaderboard server from Apple had have a problem. Without any changes on my code it worked one day later.
I faced with same issue and it took me some hours just to figure out that I was setting wrong score range. Please be careful about this, especially when you are storing float or decimal value not integer.
For example, when you want to store score with format Fixed point - to 3 Decimals, score = 1.234 in this case
When storing value to leaderboard, you already multply the score by 1000 to have the integer value:
int64_t gcScore = (int_64t)(score * 1000);
Hence, if you planed to store the value of 1.234, the real value saved to leaderboard should be 1234. In this case, if you set the score range from 0 to 100, much greater than 1.234, but the score is not saved because 100 < 1234.
GKLeaderBoardViewController class for counting Highest Score.For more details I suggested you to read below link.Thanks
http://developer.apple.com/library/ios/#documentation/GameKit/Reference/GKLeaderboardViewController_Ref/Reference/Reference.html

How to report old scores with GameKit?

I'm thinking of adding GameKit support to my iOS game, and I'd like to still give credit to players for the high scores they got before I added GameKit. I noticed that the date property of GKScore is readonly, and it seems to be automatically set to the current date and time. Is there a way I can report old scores to GameKit's leaderboards, including the old timestamps?
My conclusion is that there is currently (as of iOS 4.3.3) no Apple-sanctioned way to do this.
I think I could do some casting sourcery (oh what a pun!) on GKScore to force in the timestamp I want, but I'm afraid Apple might reject the app. My plan is to simply drop old scores once I add GameKit support.