I’m testing the unlockAchievement function in Game Center with the following code:
[lua] achievement = {
identifier=‘allchannels’,
percentComplete=100,
showsCompletionBanner=true,
}
gameNetwork.request(‘unlockAchievement’, {achievement=achievement})[/lua]
I get the following error in the device console:
12-01-21 3:50:01 PM UIKitApplication:com.zamtools.cobble[0x3652][46796] Error: gameNetwork/Game Center achievement must have a string for the key 'identifer'
12-01-21 3:50:01 PM UIKitApplication:com.zamtools.cobble[0x3652][46796] Lua Runtime Error: lua\_pcall failed with status: 2, error message is: unlockAchievement for gameNetwork/Game Center could not convert your table to a GKAchievement object. Please verify you supplied the correct fields and value types.
As far as I can tell, the identifier IS a string. Is this a bug or did I just do something wrong? [import]uid: 52771 topic_id: 20752 reply_id: 320752[/import]