I'm working on integrating OF in a game and I want to get the rank of the score I just submitted (using [OFHighscoreService submitScore]). I don't want the best rank the user has. (the leaderboard allows multiple entries)
How would I get that information?
__________________ My Games: My Blog 13" Macbook Air 1.7Ghz Core i5, 4GB DDR3, Intel HD Graphics 3000 iPhone 4S - PSPGo - 3DS - Wii - PS3 - 360
I believe OF stores scores locally too so they can queued for submission later or when the user is not online. I used this to submit awards because otherwise it would cause a stutter in the game doing it in realtime.
Maybe you could access the locally stored scores or perhaps store them yourself in NSUserDefaults?
I believe OF stores scores locally too so they can queued for submission later or when the user is not online. I used this to submit awards because otherwise it would cause a stutter in the game doing it in realtime.
Maybe you could access the locally stored scores or perhaps store them yourself in NSUserDefaults?
If you have any success please let us know.
Not quite what I wanted, I wanted to store all the submitted scores and give the user his rank (for the game he just played) at the end of each game
__________________ My Games: My Blog 13" Macbook Air 1.7Ghz Core i5, 4GB DDR3, Intel HD Graphics 3000 iPhone 4S - PSPGo - 3DS - Wii - PS3 - 360
Why can't you use [OFHighScoreService getPage: then? It will give you a list of scores in the callback which you can check against the username and tell what rank they're at.
Why can't you use [OFHighScoreService getPage: then? It will give you a list of scores in the callback which you can check against the username and tell what rank they're at.
The problem I'm having is that OpenFeint doesn't allow you to have more than one score per user in the leaderboard (it replaces the other score when you submit a new one). That right there makes what I wanted to do impossible
__________________ My Games: My Blog 13" Macbook Air 1.7Ghz Core i5, 4GB DDR3, Intel HD Graphics 3000 iPhone 4S - PSPGo - 3DS - Wii - PS3 - 360
Of course you're right it only actually stores your highest score but if you get the leaderboard you could calculate what it's rank would be based on the other scores.
Of course you're right it only actually stores your highest score but if you get the leaderboard you could calculate what it's rank would be based on the other scores.
I guess that's a solution.... I'll look into it
__________________ My Games: My Blog 13" Macbook Air 1.7Ghz Core i5, 4GB DDR3, Intel HD Graphics 3000 iPhone 4S - PSPGo - 3DS - Wii - PS3 - 360