GameCenter LeaderBoards and Achievements Enabled Through OpenFeint

Today, we flip on the bit to allow your app to submit Leaderboards and Achievements to GamCenter from OpenFeint.

Pickup tomorrow’s daily build and try it out.

I made the decision to put it out there for you to try it out before we had a chance to get docs, and sample code etc properly in place.

What I can suggest is to pay a visit to the OF forums or google Gamecenter support from Within OpenFeint for documentation. According to our findings, is as easy as setting an entry int the PList.

Let me know how it works out.

Obviously, sample code, docs, etc will be coming out soon, if you like to share your findings, our community will be very happy with your findings.

Carlos

[import]uid: 24 topic_id: 8097 reply_id: 308097[/import]

Has anyone found exactly where to insert the Game Center enable switch?

According to http://support.openfeint.com/dev/game-center-compatibility/, it says to add [NSNumber numberWithBool:YES], OpenFeintSettingGameCenterEnabled, to the settings dictionary passed as parameters in Objective-C like this:

[code]NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
  [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight],
    OpenFeintSettingDashboardOrientation,
    @“OFTest”, OpenFeintSettingShortDisplayName,
    [NSNumber numberWithBool:YES], OpenFeintSettingGameCenterEnabled, //<<      nil
    ];

    [OpenFeint initializeWithProductKey:@“one_key”
      andSecret:@“MyString”
      andDisplayName:@“Testing App”
      andSettings:settings
      andDelegates:delegates
    ];
[/code]

But in Corona, all we have to pass is openfeint.init ( "ABCDEFGHI1234567890", "ABCDEFGHI1234567890", "My App Name", "ABCDEFG" )

I got everything done, from adding the leaderboards and achievements in my app’s Game Center entries in iTunes Connect, followed by creating the OFGameCenter.plist file and placing it in the same folder as my .lua files and openfeint_offline_config.xml. I’m just stuck on how to actually enable it when initializing OpenFeint in my game. [import]uid: 6084 topic_id: 8097 reply_id: 28936[/import]

Ah, looks like the Release Notes were changed or I wasn’t paying attention…

If the OFGameCenter.plist file is present, then the enable flag is automatically passed. Nice touch!

My game is officially Game Center enabled! Can’t wait to submit it to the App Store as version 1.1! [import]uid: 6084 topic_id: 8097 reply_id: 28940[/import]

oo sweet

I haven’t bothered with daily builds up until now, but I think I’m gonna check out this drop. [import]uid: 12108 topic_id: 8097 reply_id: 28960[/import]

@beyondthetch: You don’t need to do any of that mumbo-jumbo obj-c. Its already taken care of it for you.

Carlos [import]uid: 24 topic_id: 8097 reply_id: 28997[/import]

No mumbo-jumbo?! What am I going to do with these tiki torches, pentagrams, and all this goat’s blood? [import]uid: 6084 topic_id: 8097 reply_id: 29000[/import]

That’s Santeria chico ! Did you get the San Cristobal too? I may be able to round up some chickens by dawn…

[import]uid: 24 topic_id: 8097 reply_id: 29001[/import]

Oh tasty,

I removed my app from the ITC review queue to put this in!

Its back in the queue now, with OF and GC included!!

Awesomesauce! [import]uid: 9428 topic_id: 8097 reply_id: 29068[/import]

Wow ! awesome !

how easy was it to implement game center?

C. [import]uid: 24 topic_id: 8097 reply_id: 29070[/import]

I don’t want to be Debbie Downer (http://tinyurl.com/cn9zmy) with all this excitement, Just out of curiosity, does a user have to sign in with OpenFeint in order to use Game Center? Are we still looking forward to a “direct” Game Center implementation and how soon? [import]uid: 6084 topic_id: 8097 reply_id: 29071[/import]

right now you have to sign with OF but we will have a sep version of GC - but it is a win win with OF due to the fact that you can share scores blah blah with android users of your app :wink:

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

>>but it is a win win with OF due to the fact that you can share scores blah blah with android users of your app :wink:

Huh? Did I miss something? Is Corona’s Openfeint implementation now working on Android too? [import]uid: 5712 topic_id: 8097 reply_id: 29119[/import]

It seemed to be pretty straight forward. I did some testing for it and I was able to get my achievements unlocking in both OF and GC, just by following the advice in the OF dev site (mainly to do with mapping the OF identifiers to the GC identifiers in the .plist file, and setting up all my leaderboards and achievements in GC to mirror how I had them in OF).

I actually didn’t need to make any LUA code changes at all. All my OF calls just handled the GC as well.

In the long term I’d probably like to ditch OF and just use GC (I’m not building for Android yet, thats a headache I’m putting off for a while), but in the mean time this solution is fine.

Now if Apple would just get around to reviewing my game I could release the *expletive* thing!! [import]uid: 9428 topic_id: 8097 reply_id: 29130[/import]

Hi, guys,
I kept getting this message
“this game is not recognized by gamecenter”

though I’ve enabled gamecenter for my game in iTunes connect.
Any tips?

THX! [import]uid: 4992 topic_id: 8097 reply_id: 29363[/import]

Just out of curiosity, does a user have to sign in with OpenFeint in order to use Game Center?

This morning I started testing Popz and I didn’t have to sign in with OpenFeint for the GameCenter integration to work. I did of course have to sign in to GameCenter, so the exact chain of events was:

I launch app
OF screen appears, I decline
GC popup appears, I log in

Now I’m still unclear on how exactly all the integration points mesh together but I was planning to test that stuff this weekend.

ADDITION: oh wait when you guys talk of “signing in” to OpenFeint do you mean that you have to show the OF launch screen before using GameCenter? I declined it but I did see that screen. I do find that launch screen annoying, I don’t want that to be the first thing people see when they start up my app. [import]uid: 12108 topic_id: 8097 reply_id: 29220[/import]

Just trying to get this working. I have taken the sample code from the openfeint site for the .plist file, but (without trying to sound stupid) I enter the OF numerical key, and the text name I gave my leader board in gamecenter, is that correct? My openfeint side still seems to be working but Im getting no score in gamecenter.

Is the .plist file the only file I need to create / edit?

Also, do I remove the other entry for a leaderboard if I only have one?

Thanks

Gaz

EDIT: My .plist file looks like this
[blockcode]

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





Leaderboards



6 **** 4

Greatest Hunters




[/blockcode] [import]uid: 8699 topic_id: 8097 reply_id: 29461[/import]

I’ve just realised that Openfeint highscore are now not submitting. Im guessing its because I have something wrong somewhere. [import]uid: 8699 topic_id: 8097 reply_id: 29466[/import]

@gazjm : read my comment: right now you have to sign with OF but we will have a sep version of GC.

when we have GC by itself you will be able to do just that.

C [import]uid: 24 topic_id: 8097 reply_id: 29510[/import]

Thanks for the reply Carlos.

I am signing in with OF, it is now working ok, game center signs in, I go to gamecenter app and can see the sandbox leaderboard, but no data is sent to it when I get a high score. OF updates it’s leaderboard but GC doesn’t.

do I need the OFGameCenter.plist file at the moment? or does it just map my first OF leaderboard to my first GC leaderboard automatically?

sorry if this is simple to so but Ive got a brain freeze.

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

Gaz,

Mapping between OF and GC is done in the plist file. Other than that, everything is automatic.

KC [import]uid: 19297 topic_id: 8097 reply_id: 29538[/import]