GameCenter LeaderBoards and Achievements Enabled Through OpenFeint

Thanks, I just need to get my plist file correct then.

in the code I posted is it correct that the OF Id is the numerical id, and the GC Id is the name? Or is the GC id the numerical id number I assigned it.

Sorry again if this is simple to do. It’s my final hurdle.

Gaz [import]uid: 8699 topic_id: 8097 reply_id: 29540[/import]

I think you can use the same ID for GC. Unlike OF, you can enter the ID yourself. I added a prefix for GC, but I think that is not necessary. When you create leaderboards/achievements in GC, there is field for the ID. [import]uid: 19297 topic_id: 8097 reply_id: 29544[/import]

Just FYI, I copied the ID codes that OpenFeint generated for each of my leaderboards and achievements and manually pasted them into my Game Center leaderboards and achievements as I created them.

Then you just use the exact same ID code in the plist file to link them up, and it saves the headache of maintaining two different ID codes per leaderboard/achievement.

I had this up and working in no time. Here is an example:

In this case, my leaderboard ID that OpenFeint generated for me was 638604, so in Game Center, I created a leaderboard and pasted that code into the Identifier field.

Same with achievements, OpenFeint generated the ID code 820992 for one of my achievements, so I created the same achievement in Game Center and pasted the code into the Identifier field.


[code]

<?xml version="1.0" encoding="UTF-8"?>



Leaderboards

638604
638604


Achievements

820992
820992



[/code] [import]uid: 9428 topic_id: 8097 reply_id: 29551[/import]

thanks, that’s just what indeed to know. I’ll give it a try!

gaz [import]uid: 8699 topic_id: 8097 reply_id: 29562[/import]

Should this work if my openfeint leaderboard is still in development mode?

I still can’t get a score to appear in my gamecenter leaderboard at thats all I can think of that could be at fault.

My code is as below,

to submit my scores I have

[blockcode]
lbID = “6****4”
numScore = settings.chasehighScore

function setHighScore()
openfeint.setHighScore( lbID, numScore)
end

timer.performWithDelay(500,setHighScore,1)
[/blockcode]

and my plist is:
[blockcode]
?xml version=“1.0” encoding=“UTF-8”?>





Leaderboards



6 4

6
4






[/blockcode]

I think its all ok, but still have no luck posting a score. Im using the same email address and password for my OF and GC logins.

Is my score submit code ok? it works for OF but im not sure if it should have anything else for submitting to GC too.

Thanks again [import]uid: 8699 topic_id: 8097 reply_id: 29577[/import]

Just realised Im still using xcode 3.2.5, could this have something to do with why it doesn’t seem to work? Downloading xcode 4 now. [import]uid: 8699 topic_id: 8097 reply_id: 29701[/import]

sorted now. I was being blind. My plist file was missing a < at the start. [import]uid: 8699 topic_id: 8097 reply_id: 29855[/import]

Hi, could we get top 20 player by score and set new highscore to both OpenFeint and GameCenter by one or two httpd asyn request then display it manually with Corona? [import]uid: 9190 topic_id: 8097 reply_id: 29870[/import]

I didn’t include the OFGameCenter.plist, GameCenter support for the OpenFeint is enable by default ? How to disable it ? [import]uid: 12088 topic_id: 8097 reply_id: 30123[/import]

You guys just keep making Corona more and more amazing. I can’t wait to come play in your pond, right after I learn to swim.

[import]uid: 44412 topic_id: 8097 reply_id: 30420[/import]

Hi!
I am not signed up yet, I still have the trial of Corona. I have set up OpenFeint and am able to post scores to the server. Now I am trying to get it to connect to Game Center. I have created a new app in iTunes Connect (without uploading the app obviously:dev) and have activated Game Center support. I put in a Leaderboard and set its id to match the OpenFeint id for the same Leaderboard.
I even included the following OFGameCenter.plist:
[blockcode]

<?xml version="1.0" encoding="UTF-8"?>



Leaderboards

6 **** 6
Level 1



[/blockcode]

Nothing happens with Game Center, though, when I test this app. It doesn’t ask to log in to Game Center, it doesn’t show up in Game Center as an app, and it obviously doesn’t add scores to Game Center. So what is going on? Is it because I haven’t paid yet, so I don’t have the “Daily Build” or something?

Thanks! [import]uid: 36022 topic_id: 8097 reply_id: 30473[/import]

gc is only available to subscribers at the moment … u need access to daily builds…

c. [import]uid: 24 topic_id: 8097 reply_id: 30474[/import]

I am now a subscriber and have everything working. But I would like to bring back up the subject of logging in with OF in order to use GC. If a user declines the original message (or accepts and then logs out of OF) will both scores and achievements be posted to GC? If I decline, GC still pops up as logged in. But will data be posted in OF “offline mode?” Or must OF be “logged in” or accepted before GC can be used?
Sorry for the confusion. Thanks! [import]uid: 36022 topic_id: 8097 reply_id: 31793[/import]

Hi,
I have a weird problem. GC seems to only get first hightscore into the leaderboard. OF works fine and records all the scores without any problems, but GC only first one…
Any ideas why it could be like that?..

Cheers


Hi got that sorted, it was just GC settings stuff. Just had to change to it sets hight score as the highest number :). [import]uid: 27699 topic_id: 8097 reply_id: 32047[/import]

I would like to put a leaderboard to store Elo. This works fine in openfeint as there is a setting to allow worse scores. So the latest elo is stored in openfeint.
But this does not seem to work in game center. Is there a particular setting? Only the highest Elo score is stored.
[import]uid: 6661 topic_id: 8097 reply_id: 32384[/import]

Quick question.

Is this pList the same pList as the one I have in the build settings or a separate file?

My build settings has the following:

  
plist =  
 {  
 UIApplicationExitsOnSuspend = true,  
 UIPrerenderedIcon = true,  
 UIStatusBarHidden = true,  
 CFBundleIconFile = "Icon.png",  
 CFBundleIconFiles = {  
 "Icon.png",  
 "Icon@2x.png",  
 "Icon-72.png",  
 "Icon-Small-50.png",  
 "Icon-Small.png",  
 "Icon-Small@2x.png"  
 }  
 },  

And someone suggests a plist as follows:

[code]

?xml version=“1.0” encoding=“UTF-8”?>





Leaderboards



6 **** 4

Greatest Hunters







[/code] [import]uid: 7863 topic_id: 8097 reply_id: 32826[/import]

I’m pretty sure it is supposed to be a plist as a separate file named: OFGameCenter.plist [import]uid: 36022 topic_id: 8097 reply_id: 32828[/import]

Ah great - thanks sparky - it is so difficult finding any documentation on this on the Corona site:) [import]uid: 7863 topic_id: 8097 reply_id: 32829[/import]

Useful link: http://www.mindthecube.com/blog/2010/12/adding-openfeint-and-game-center-to-unity-ios-project [import]uid: 7863 topic_id: 8097 reply_id: 32830[/import]

I think i have nearly got this up and running but one question.

Prior to implementing this, I had one game appearing in Game Center (Angry Birds Free)

When I tested my game, it displays a screen titled “Sign in to Game Center” however it has *** Sandbox *** below this title

When I choose use existing account when I then leave my game and go to game center I see my game Ball Frenzy listed in Game Center but Angry Birds is no longer there

Possibly this is due to the fact I am testing an adhoc version?

Hopefully this is the case and I can get an update of my game on iTunes as soon as possible with this great new feature [import]uid: 7863 topic_id: 8097 reply_id: 32833[/import]