Game Center - Wrong score submitted

Hello,

I don’t know it this question should be directed towards Corona or Openfeint…

In my game, I have a leaderboard where I keep track of fastest times (in seconds).

An example: if a game takes 150.235 seconds to complete, this score is sent to an open feint leader board. In open feint it display correctly… it says: 150.235 seconds.

However, in Game Center I have my leader board set up to Fixed Point (3 Decimals). But when the score is submitted through open feint, it displays 0.150 seconds.

I read somewhere that you have to multiply your score by a 1000 to get game center to display the correct score. But I’m guessing that when I multiply by a 1000 and submit it, the wrong score will appear in open feint but the correct score will appear in game center.

How can I fix this?

thanks… [import]uid: 82552 topic_id: 16994 reply_id: 316994[/import]

Did you know that there is a displayable and an actual score?
So convert the seconds into an integer and submit where as for the display set it to the 150.xxx whatever it was.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 16994 reply_id: 63769[/import]

Right! :slight_smile: I did know that… Just didn’t think about using it like that in this case :). I have it set to just display the same number…

Thanks! That’s an easy fix :slight_smile: [import]uid: 82552 topic_id: 16994 reply_id: 63770[/import]

I noticed another problem with the scores…

Since they are time based, I have the leader boards setup with descending order. So the lowest time is ranked #1.

But when I want to send a faster time, it doesn’t work. And if I check my leader board directly after sending, it says “oops, an error occurred”… Do I have to check “Allow worse scores”? Since the time number is smaller if it is faster… I thought having it at “descending order” would be enough… [import]uid: 82552 topic_id: 16994 reply_id: 63776[/import]

a small clue…

score = 1 --This is the highest score
postscore = 100 - score --This is now 99 sorted above the rest

so for any other score upto 99,

score = 98
postscore = 100-98

will sort and cater for your needs

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 16994 reply_id: 63777[/import]

Huh, what?

So first I submit a score of 144.345 seconds. But for my second attempt I submitted 38.700 seconds.

In the leader board settings:

  • Descending sort order
  • When checked, the highest score gets ranked #1. When unchecked, the lowest score is ranked #1
    When I have unchecked that box, you would expect that the first score would get replaced by the second score, since that is lower…

I don’t understand your method of subtracting the score from 100? :slight_smile: [import]uid: 82552 topic_id: 16994 reply_id: 63780[/import]

That is *not* a solution, it is a clue, since I do not know what your lowest score and the highest score can be in integers.

You need to give it a thought, because till you do not think on the solution, you will keep coming back with questions.

have a long hard think on this method if it works for you, you’ve got it resolved… otherwise, the forums are always there and there are plenty of other opinions and solutions too.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 16994 reply_id: 63781[/import]

I fixed it by checking the box “Allow Worse Scores” in the Leaderboard configuration… :slight_smile: It works perfectly now… I think… [import]uid: 82552 topic_id: 16994 reply_id: 63799[/import]