Also, not sure where to post this, but there are a couple of errors in the Game Center add-ons:
this:
static const luaL_Reg gamecenterLibs[] =
{
{"enabled", gamecenter_enabled},
{"showLeaderboards", gamecenter_showLeaderboards},
{"showAchievements", gamecenter_showAchievements},
{"showAchievements", gamecenter_submitScore},
{"showAchievements", gamecenter_submitAchievement},
{NULL, NULL}
};
should be this:
static const luaL_Reg gamecenterLibs[] =
{
{"enabled", gamecenter_enabled},
{"showLeaderboards", gamecenter_showLeaderboards},
{"showAchievements", gamecenter_showAchievements},
{"submitScore", gamecenter_submitScore},
{"submitAchievement", gamecenter_submitAchievement},
{NULL, NULL}
};
and the documentation shows gamecenter.enabled as being a boolean, but it is actually a function that returns a boolean
finally, in the function showGameCenterWithConfigurationBlock, nothing done to codeaController seems to work, e.g. setting paused to YES followed by a print of that value shows it is still NO, and it never presents the view controller, so achivements/leaderboards never come up