Hello,
I have super strange problem at my hands. I have two games in app store which both are having game center leaderboards in use.
In one game, I had originally three leadboards for levels 1-3 plus few other.
All of those are working just fine. Scores are getting updated and when I show the leaderboards, all scores are visible.
however, I added one more level few weeks ago and created another leaderboard for that. Exactly as for the three other levels. Uses same code and everything.
When I look at the scores in that leaderboard from my game, it remains empty. No results.
If I manage the scores through iTunes Connect and view the scores inside this leaderboard, those are there.
Now this same issue is with my other game which I added lot of new leaderboards around the same time I added this fourth one in the second game. None of those show any results within the game. Again in iTunes Connect, I can see the results going in just fine.
This game has achievements in use and those again are working perfectly. So nothing wrong with setting up the game network.
below is the code how I show the leaderboard. targetLeaderboard is a variable set when user clicks certain level scores icon.
local function showLeaderboards( event ) if ( system.getInfo("platform") == "Android" ) then gameNetwork.show( "leaderboards" ) else gameNetwork.show( "leaderboards", { leaderboard = { category = targetLeaderboard } } ) end return true end
and code how scores are updated
gameNetwork.request( "setHighScore", { localPlayerScore = { category=level.category, value=level.highscore }, listener = requestCallback } )
where I removed the real category naming and highscore logic and just pseudo that to level.category and level.highscore.
So, I am out of ideas where to check next.
Why “older” leaderboards show scores properly and “newer” ones don’t?
All tips are welcome.
-Teemu-