Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-26-2011, 02:44 AM   #1 (permalink)
Nos
Registered Member
 
Join Date: Aug 2008
Posts: 132
Nos is on a distinguished road
Default Problem Score Reporting Game Center

Hi everybody,

I've a big problem with the Game Center. My score reporting doesn't work.

My GKScore is :
scoreReporter = <GKScore: 0x14ea00><0x14ea00> player=G:274457114 rank=0 date=2011-10-26 07:07:34 +0000 value=7200 formattedValue=(null) context=(null)

However i received no error from the reportScoreWithCompletionHandler

I don't understand.

I've 3 leaderboards with different ID configured in my iTunes Connect : one with the ID "1" from my first version, one with the ID "2" from my actual version and the last with the ID "3" for my future well version.

I tested with my actual default leaderboard with the ID "2" and my future leaderboard with the ID "3" and nothing work : no score on the game center.

I initialized my GKScore with the following line :

GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:category] autorelease];
scoreReporter.value = score;

category is my leaderboard ID and score is an NSInteger.

This worked when i had only one version of my app and one leaderboard.

Is anyone can help me ?

Best regards,
Nos is offline   Reply With Quote
Old 10-27-2011, 03:42 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 65
nik_osa is on a distinguished road
Default

Hmmm. The score has to be int64_t.
Try this:
Code:
scoreReporter.value = [[NSNumber numberWithInt:score] longLongValue];
nik_osa is offline   Reply With Quote
Old 10-27-2011, 10:01 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 7
jpaaquino is on a distinguished road
Default

Quote:
Originally Posted by Nos View Post
Hi everybody,

I've a big problem with the Game Center. My score reporting doesn't work.

My GKScore is :
scoreReporter = <GKScore: 0x14ea00><0x14ea00> player=G:274457114 rank=0 date=2011-10-26 07:07:34 +0000 value=7200 formattedValue=(null) context=(null)

However i received no error from the reportScoreWithCompletionHandler

I don't understand.

I've 3 leaderboards with different ID configured in my iTunes Connect : one with the ID "1" from my first version, one with the ID "2" from my actual version and the last with the ID "3" for my future well version.

I tested with my actual default leaderboard with the ID "2" and my future leaderboard with the ID "3" and nothing work : no score on the game center.

I initialized my GKScore with the following line :

GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:category] autorelease];
scoreReporter.value = score;

category is my leaderboard ID and score is an NSInteger.

This worked when i had only one version of my app and one leaderboard.

Is anyone can help me ?

Best regards,
Looks like the same problem I had. Try running it on an older device(anything under ios 5) on the simulator. If that works I think you are good to go.
My finding was that when I ran it on the IOS 5 Gamecenter it didnt show my score (regardless if it was on the simulator,device or even after the game was live) as long as I was the only player on the leaderboard. When the second player posted a score, my score started showing as well.
Hope that helps.
jpaaquino is offline   Reply With Quote
Old 01-06-2012, 08:28 PM   #4 (permalink)
[[Brain alloc]init];
 
fhsjaagshs's Avatar
 
Join Date: Aug 2011
Location: New Jersey
Age: 15
Posts: 92
fhsjaagshs is on a distinguished road
Default

Yea, you need multiple scores to have GameCenter "work". I would recommend using test users from iTunesconnect. Always logout after using the sandboxed game center and log into your real game center account.
fhsjaagshs is offline   Reply With Quote
Reply

Bookmarks

Tags
game center, iphone

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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 387
13 members and 374 guests
13dario13, 7twenty7, buggen, EvilElf, glenn_sayers, j.b.rajesh@gmail.com, LunarMoon, morterbaher, QuantumDoja, sacha1996, Sami Gh, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,673
Threads: 94,122
Posts: 402,906
Top Poster: BrianSlick (7,990)
Welcome to our newest member, morterbaher
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:30 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0