I’m looking into implementing Google Play Game Services leaderboards and achievements using daily build 1148, and the first thing I did was to add lines in build.settings, but immediately the simulator is giving me issues:
- As per the documentation ( http://docs.coronalabs.com/daily/plugin/gameNetwork-google/ ) I added the following to my build.settings:
[lua]
settings =
{
android =
{
googlePlayGamesAppId = “xxxxxxxxxxx” – I added my Google Play Games App Id here
},
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“CoronaProvider.gameNetwork.google”] =
{
– required
publisherId = “com.coronalabs”,
},
},
}
[/lua]
As soon as I added the above to my build.settings, my landscape game shows up in portrait on simulator (Mac).
- If I comment out the googlePlayGamesAppId line, the orientation returns to normal (i.e., it appears in landscape as it should), but then I get popup alert that says:
This project requires certain plugins to run properly.
Do you wish to download these plugins for the simulator?
If I click on Download button, it gives me an error message:
Error: A plugin could not be downloaded.
If you are sure you are requiring the correct plugin please contact support.
com.coronalabs/CoronaProvider.gameNetwork.google
Is this an issue with the daily build 1148, or is it a bug that’s been around? Or… is there something else I need to add that would clear this up? Without this issue fixed, I don’t think I can proceed with implementing Google Play Game Services…
BTW, will there be a sample file for implementing Google Play Game Services leaderboards and achievements? I looked for it in CoronaSDK/SampleCode/GameNetwork folder, but I did not find it there.
Naomi