I am trying to remove the OpenFeint code from my game and replace it with GameCenter code. To do this, I need to change the code for submitting leader board high score values from this:
[lua]openfeint.setHighScore{ leaderboardID=“123456”, score=gamestate.score, displayText=“Highscore” }[/lua]
to this:
[lua]gamecenter.request( “setHighScore”,{ localPlayerScore = { category="???", value=gamestate.score }, })[/lua]
My problem is that I don’t know what to provide for the category value. I have two leader boards: “arcade” and “challenge”. Both leader boards have (in iTunes Connect) a “Reference Name” and a “Leaderboard ID”. For example, my arcade leader board has reference name “arcade” and ID “321”.
The Corona documentation for the above function is: http://developer.coronalabs.com/reference/index/game-network/gamenetworkrequest
The code example it provides is:
[lua]gameNetwork.request( “setHighScore”,
{
localPlayerScore = { category=“com.appledts.EasyTapList”, value=25 },
listener=requestCallback
})[/lua]
It states:
“‘category’ must be a string that matches the name of the board you want to register the score with as entered on iTunes Connect.”
What I don’t understand is what the category value should be. Should it be the “reference name” or the “leaderboard id”? Am I just naming my leader boards in an odd way? [import]uid: 8271 topic_id: 35148 reply_id: 335148[/import]
thanks [import]uid: 8271 topic_id: 35148 reply_id: 140035[/import]