How to handle game leaderboards for multiple Openfeint accounts.

Since we don’t have any way to query Openfeint to get the current signed on account, we can’t maintain a scores database for the different players. So if multiple players use one iPad, how does your game handle scoring the different leaderboards?

Here is what I will try, is this correct?

I will just take every winning score and post it to the Openfeint leaderboard. Openfeint knows who is signed on and will compare the submitted score to that player’s current leaderboard score. If the submitted score is higher, the leaderboard is updated, if not the leaderboard is not changed. So this will work to keep each player’s leaderboard score separate from the others without any further action by me, right?

My game’s database will just keep the overall game high score for reporting, not the individual player’s high scores.

I’m guessing that unlocking achievements can be handled the same way. I will try to test this out soon. [import]uid: 23636 topic_id: 23312 reply_id: 323312[/import]

When you submit scores to Openfeint, same with achievements, it will just go off whichever user is logged in. Openfeint shouldn’t change the score if the same user submits a lower score, no.

Openfeint dashboard has option for changing users so I can’t see any of this being a problem.

Does that make sense or did I miss something here? [import]uid: 52491 topic_id: 23312 reply_id: 93467[/import]

Thanks Peach. That’s what I assumed, but I just wanted to run it past someone else to make sure there wasn’t a problem that I didn’t know about.

Just to be clear, each time an achievement is reached I’ll unlock it. Depending on who is signed on, this could be for the first time or could be a repeat of an achievement unlocked in a prior game. If it is a repeat, I’m assuming there is no unwanted side effect. [import]uid: 23636 topic_id: 23312 reply_id: 93525[/import]

I am using the gameNetwork functions of Corona SDK. I was testing how things worked when I did not have an Internet connection. I get the window shown in the attached image. If I touch the X in the top right corner, the dialog is dismissed and the program continues. If I touch the red Continue offline button, nothing happens. Is this a Corona bug or an Openfeint bug?

[import]uid: 23636 topic_id: 23312 reply_id: 93650[/import]

Hrm, I haven’t had to deal with this before but I think it may be solved by adding the offline config file to your project. In Openfeint dashboard there is an option to download it.

Could you try that and let me know results, please? :slight_smile: [import]uid: 52491 topic_id: 23312 reply_id: 93675[/import]

Peach,

I do have the offline config file in my project. But I think it may have been a timing problem. I went back to recreate the problem to detail the sequence which caused it, and I can’t get the problem to occur now. So lets ignore it. Thanks for your reply.
[import]uid: 23636 topic_id: 23312 reply_id: 93872[/import]

No worries; perhaps some info took a little while to propagate on OF site.

Glad it appears to be working now in any case :slight_smile: [import]uid: 52491 topic_id: 23312 reply_id: 94025[/import]