I have a question about google play game services…i tried a lot of tutorials such as http://coronalabs.com/blog/2013/06/25/tutorial-introducing-google-play-game-services/ and https://github.com/coronalabs/plugins-sample-gameNetwork-google and it doesn’t do anything it keeps saying that my app unfortunately has stopped…i write the gameNetwork.init(“google”) on main.lua and the login button on menu.lua…i also published my app and i create the game services on google developers but i am waiting to publish the game services…how i can solve the problem? Maybe its stupid question but i am still learning and i need help…thank you
Any messages in your console log?
See: http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/
Hello Rob, thank you for your responce, i have tried the debbuging but i can’t connect my device with the adb logcat it just waiting for my device to connect and i don’t know why because i put my device on developer mode…i think the problem is on the gameNetwork.init(“google”) because sometimes when i press the log in button it doesn’t doing anything and when i try different way it stops my app. Do i have to put the init on the main.lua just once and then all the other like show leaderboard and buttons on different scenes?
Where you do the init and where you call the leaderboards and such where ever you need them.
You need to get to the log file. You can get apps to install on the device that will show you the log, but if you hope to track down devices errors, using adb logcat is the way to go.
Rob
I put the init on the main.lua and the leaderboards i create a button on my menu.lua so when i push the button to show me the leaderboard. Also i create another button on my game when you finished your game to submit your score. I dont know why i cant connect with gpgs… I ll also try again to connect my device to check for errors…
Hello Rob, thank you for your help i found the problem and its everythink ok now thanks again.
How did you solve it Louis, right now I’m facing a similar problem so your help would be appreciated.
Regards
Hello cronos256 i solved my problem by doing this:
On my build.settings i saw the following sample
settings =
{
android =
{ <–
googlePlayGamesAppId = “123456789012”, – Your Google Play Games App Id <—
}, <–
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“CoronaProvider.gameNetwork.google”] =
{
– required
publisherId = “com.coronalabs”,
supportedPlatforms = { android = true }
},
},
}
My problem it was that i put brackets -> "{ }"on my googlePlayGamesAppId . U don’t have to put the brackets on your AppID the brackets are only for the "android = " I don’t know if we have the same problem but i hope i helped you.
Any messages in your console log?
See: http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/
Hello Rob, thank you for your responce, i have tried the debbuging but i can’t connect my device with the adb logcat it just waiting for my device to connect and i don’t know why because i put my device on developer mode…i think the problem is on the gameNetwork.init(“google”) because sometimes when i press the log in button it doesn’t doing anything and when i try different way it stops my app. Do i have to put the init on the main.lua just once and then all the other like show leaderboard and buttons on different scenes?
Where you do the init and where you call the leaderboards and such where ever you need them.
You need to get to the log file. You can get apps to install on the device that will show you the log, but if you hope to track down devices errors, using adb logcat is the way to go.
Rob
I put the init on the main.lua and the leaderboards i create a button on my menu.lua so when i push the button to show me the leaderboard. Also i create another button on my game when you finished your game to submit your score. I dont know why i cant connect with gpgs… I ll also try again to connect my device to check for errors…
Hello Rob, thank you for your help i found the problem and its everythink ok now thanks again.
Do we need to publish both apps and gpgs to make them work?
Right now im in beta testing, but i cant get anything works.
I used https://github.com/coronalabs/plugins-sample-gameNetwork-google as well.
I see no error on adb logcat, nor any response from device.
Any advice please…
No you don’t have to publish your app and your gpgs to work. You have to check on beta testing that everythink working fine and then publish your app and your gpgs. Make sure that your google email address is on beta testing. Also check your build.settings if you have the same problem that i had…
Thanks louis. The snippet of build.settings you posted earlier is the correct one right? I believe mine is fine.
I found that i run older version, maybe it didnt support game center yet. Its from 2013.
After i install the last build 2014.2189, it seem to work.
But now i have to change lots of code to readjust everything. And try the game center again afterwards. Oh my…
Well anyway i thank you.
How did you solve it Louis, right now I’m facing a similar problem so your help would be appreciated.
Regards
Hello cronos256 i solved my problem by doing this:
On my build.settings i saw the following sample
settings =
{
android =
{ <–
googlePlayGamesAppId = “123456789012”, – Your Google Play Games App Id <—
}, <–
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“CoronaProvider.gameNetwork.google”] =
{
– required
publisherId = “com.coronalabs”,
supportedPlatforms = { android = true }
},
},
}
My problem it was that i put brackets -> "{ }"on my googlePlayGamesAppId . U don’t have to put the brackets on your AppID the brackets are only for the "android = " I don’t know if we have the same problem but i hope i helped you.
Do we need to publish both apps and gpgs to make them work?
Right now im in beta testing, but i cant get anything works.
I used https://github.com/coronalabs/plugins-sample-gameNetwork-google as well.
I see no error on adb logcat, nor any response from device.
Any advice please…
No you don’t have to publish your app and your gpgs to work. You have to check on beta testing that everythink working fine and then publish your app and your gpgs. Make sure that your google email address is on beta testing. Also check your build.settings if you have the same problem that i had…