Home
Reviews
Forums
New Games
Podcast
• submit tip •
  #1  
Old 08-12-2012, 07:34 PM
Stafaa Stafaa is offline
Junior Member
 
Join Date: Dec 2011
Posts: 12
Default Game Center score submission not working

Game center authenticates my user correctly and can display leaderboards, however when i try to submit my score it does not cooperate.

When the gaming session is over, I call this function...


Quote:
- (void) submitHighScore

{

[self.gameCenterManager reportScore: highScore forCategory:@"highscores"];

}
I go to leaderboards and there's nothing.

Any suggestions???
Reply With Quote
  #2  
Old 08-15-2012, 12:49 PM
JustinFic JustinFic is offline
Member
iPhone 4S, iOS 5.x
 
Join Date: May 2009
Location: Las Vegas, NV
Posts: 35
Send a message via AIM to JustinFic
Default

Leaderboards don't show anything until they get at least two scores in them.
Reply With Quote
  #3  
Old 08-15-2012, 04:28 PM
jeremy.provost jeremy.provost is offline
Member
iPhone 4S, iOS 5.x
 
Join Date: Nov 2011
Posts: 94
Default

We'd really need to see more code than that to help. The Game Kit libraries for this (hidden inside your manager class) return error messages if there is a failure. Have you looked at those?
Reply With Quote
  #4  
Old 08-20-2012, 12:17 AM
Devcade Devcade is offline
Junior Member
 
Join Date: Feb 2012
Posts: 26
Default

Quote:
Originally Posted by JustinFic View Post
Leaderboards don't show anything until they get at least two scores in them.
Not just two scores. It needs two scores from two different player IDs.

To test it, you need to create two GameCenter login IDs.

What I would do is use one ID to post an initial score, then just use the other
ID for testing as usual. There's no need to swap IDs back and forth.
Reply With Quote
  #5  
Old 08-22-2012, 04:36 PM
BrandonLassiter BrandonLassiter is offline
Member
iPhone 4S, iOS 6.x
 
Join Date: Aug 2012
Posts: 45
Default

We would really need to see more of your code to diagnose what is going on. is "highscore" an instance variable? How does that get updated? and if it isnt an instance variable then its very likely that its getting passed as null. Have you tried to NSLog the value of the high score to see what it is sending?
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


iPhone Game Reviews | iPhone Apps

All times are GMT -5. The time now is 11:40 AM.