GameCenter Error IOS6

Hey guys,

I noticed a problem with one of our latest games.

Since we updated to the latest xCode version with iOS6 and Corona SDK ( we were using buil 840 the stable one) we noticed a GameCenter error when we post the score tot he leaderboards.

in the xCode console it says:

Lua Runtime Error: lua_pcall failed with status: 6, error message is: GKInvalidArgumentException: A GKScore must contain an initialized value.

And all the players have the score = 0.

Anyone else noticed this error? [import]uid: 89239 topic_id: 32192 reply_id: 332192[/import]

Found the same problem on the Cocos2D forums:

http://www.cocos2d-iphone.org/forum/topic/41948 [import]uid: 89239 topic_id: 32192 reply_id: 128149[/import]

I did face this problem and solved it by storing the score in a local variable just before sending the GC request. [import]uid: 33275 topic_id: 32192 reply_id: 128150[/import]

It’s the same here but I still get the error…

s = "10000"  
  
gn.request("setHighScore",{localPlayerScore={category=leaderboard\_id,value=s},listener=h})  

[import]uid: 89239 topic_id: 32192 reply_id: 128151[/import]

Shouldn’t that be:

s = 10000

?
[import]uid: 50459 topic_id: 32192 reply_id: 128155[/import]

Hah!

Stupid mistake!

Yeah, that fixed it!

Thanks! :slight_smile: [import]uid: 89239 topic_id: 32192 reply_id: 128159[/import]

Found the same problem on the Cocos2D forums:

http://www.cocos2d-iphone.org/forum/topic/41948 [import]uid: 89239 topic_id: 32192 reply_id: 128149[/import]

I did face this problem and solved it by storing the score in a local variable just before sending the GC request. [import]uid: 33275 topic_id: 32192 reply_id: 128150[/import]

It’s the same here but I still get the error…

s = "10000"  
  
gn.request("setHighScore",{localPlayerScore={category=leaderboard\_id,value=s},listener=h})  

[import]uid: 89239 topic_id: 32192 reply_id: 128151[/import]

Shouldn’t that be:

s = 10000

?
[import]uid: 50459 topic_id: 32192 reply_id: 128155[/import]

Hah!

Stupid mistake!

Yeah, that fixed it!

Thanks! :slight_smile: [import]uid: 89239 topic_id: 32192 reply_id: 128159[/import]