Openfeint offline support

Please add to the list of OpenFeint features wanted. Offline support. Thanks guys!!

This is what is one their help files:

OpenFeint version 2.2 has high score support for users that do not agree to join the OpenFeint community.
Define all the leaderboards for your application.
Go to the Offline section in the developer dashboard, and click Download
Add the downloaded file openfeint_offline_config.xml into your project.
Anytime you modify your leaderboard definitions you must download a new configuration file to get the changes.

If the user does agree to join the OpenFeint community, when a score is submitted or an achievement is unlocked while offline it is stored on their device and the next time they play online these will be sent to the OpenFeint server automatically.

When offline they can also view their achievements and/or top 10 personal high scores.
Achievements and latest high score reached while playing on another device are sent to current device they are playing on.

Changes to leaderboard or achievement definitions are automatically synchronized to the device. [import]uid: 8192 topic_id: 4683 reply_id: 304683[/import]

FYI: This is already supported. [import]uid: 11024 topic_id: 4683 reply_id: 14843[/import]

How do you implement it? It says to download the xml into your project. [import]uid: 8192 topic_id: 4683 reply_id: 14844[/import]

I just leave that file in the root directory and it works. [import]uid: 11024 topic_id: 4683 reply_id: 14847[/import]

Awesome. Thank you so much. That works. [import]uid: 8192 topic_id: 4683 reply_id: 14848[/import]

Just to clarify, does this mean I can save highscores and achievements locally for all users by using OpenFeint (including those who choose not to use OpenFeint when game first launches)?

I was rolling my own local highscore and achievements but if I can use OpenFeint then it will obviously save a wee bit of time.

Thanks

Paul [import]uid: 7863 topic_id: 4683 reply_id: 15909[/import]

@mediakitchen. I am pretty sure that it works as you describe but I need to test it more. On the other hand people will still have the impression that you force them to use openfeint since to check their scores they will need to open openfeint. So I don’t suggest it.

There are really easy leaderboard codes in the code exchange. It will take you 30 minutes to 1 hour to understand them and implement them. I currently use both and I wouldn’t do any other way.

MikeHart posted this awesome scorelist

http://developer.anscamobile.com/forum/2010/05/16/another-local-score-framework

Use that instead much better than forcing people to go through openfeint if they don’t want to.

PS make sure your (numberOfEntries) in the scList fairly big to accomodate for expansion. If say you limit it to 10 and then you have an updated of your app with 11 entries it will crash. I have mine to a few hundred then I can structure it as i want and it’s always open for expansion. [import]uid: 8192 topic_id: 4683 reply_id: 15911[/import]

Thanks amigoni

Yes good point. I was thinking the offline openfeint somehow saved highscores and achievements locally without the person signing up to OpenFeint. Guess that was a wrong assumption:) I was thinking I didn’t have to open the openfeint screen to retrieve local high score data but guess that would require a corona api.

Anyway I am currently saving a single high score value on the device using the code Mike Hart posted. I am also implementing saving local achievements which I currently have about 30 of. I am also using some code that was provided on the corona site. Out of interest, when you suggest making the number of entries in scList fairly big, is this to store multiple high scores for one player (i.e one device) or is it supposed to allow different people to play the game on one device and allow them to save their individual scores and nicknames?

Thanks

Paul

[import]uid: 7863 topic_id: 4683 reply_id: 15912[/import]

With regards the offline support of OpenFeint, when I create a new build of my game and when asked if I want to use OpenFeint I choose not to. When the game is over, I see a message appear at the top of the screen along the lines of “New highscore - saving locally”.

Does this mean that even though I have chosen not to use OpenFeint, OpenFeint has saved my score locally? If so, then can I retrieve this locally saved highscore to display in my game?

I did download the “openfeint_offline_config-2.xml” file and placed this in the same location as my main.lua file.

[import]uid: 7863 topic_id: 4683 reply_id: 15913[/import]

You can really use them for whatever you want. Multiple players with different profiles is definately an option. [import]uid: 8192 topic_id: 4683 reply_id: 15936[/import]