I am getting problem, I can’t login on google play game services, When I start game it’s try to connect then suddenly start game, I can’t open achievement and leaderboard game working correct on simulator and mobile any idea, I correctly add app id in build.setting, I also add achievement and leaderboard id but still error any solution???
Hi @shakilhadir,
I think you’ll need to provide more details to receive assistance from the community or staff. We don’t know if you correctly included the plugin, and if you properly placed the “googlePlayGamesAppId” in the “android” table, according to the plugin documentation:
https://docs.coronalabs.com/plugin/gameNetwork-google/index.html
Furthermore, we don’t know how youare attempting to show achievements or leaderboards.
I urge you to read the documentation further…
https://docs.coronalabs.com/plugin/gameNetwork-google/init.html
https://docs.coronalabs.com/plugin/gameNetwork-google/request.html
https://docs.coronalabs.com/plugin/gameNetwork-google/show.html
Take care,
Brent
- This is an achievement that initiates when the score of the player is higher than ‘LOWERVALUE’ but lower than ‘UPPERVALUE’
if ((crdata.bestScore > LOWERVALUE) and (crdata.bestScore < UPPERVALUE)) then
gameNetwork.request(“unlockAchievement”,
{
achievement =
{
identifier = “ACHIEVEMENT ID HERE”
}
})
end
if ((crdata.bestScore > LOWERVALUE) and (crdata.bestScore < UPPERVALUE)) then
gameNetwork.request(“unlockAchievement”,
{
achievement =
{
identifier = “ACHIEVEMENT ID HERE”
}
})
end
I added plugins correctly I sign in gps correctly I can see leaderboards but no achievements up are code of two achievements which I add in the game, Actually I want in first achievement unlocked when the score of the player 10 and in second achievement unlocked when score reached 15 so I add values in codes…
if ((crdata.bestScore > 5) and (crdata.bestScore < 11)) then
gameNetwork.request(“unlockAchievement”,
{
achievement = ---------achievement No1
{
identifier = “xxxxxxxxxxxxx”
}
})
end
if ((crdata.bestScore > 11) and (crdata.bestScore < 16)) then
gameNetwork.request(“unlockAchievement”,
{
achievement = ----------------achievement No2
{
identifier = “xxxxxxxxxxx”
}
})
end
Everything is correct all plugins are correct in build.setting and all coding is perfect in main.lua, only problem in values I think I am doing something wrong, and one thing else I can’t see any achievement whether it is unlocked or locked otherwise if achievement are hidden or revealed player can see but I can’t see in my game all ides added correctly… Any Answer?
This is build.setting
settings =
{
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait”, }
},
excludeFiles =
{
– Include only the necessary icon files on each platform
iphone = { “Icon-*dpi.png”, },
android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },
},
–
– Android Section
–
android =
usesPermissions =
{
“android.permission.VIBRATE”,
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.ACCESS_COARSE_LOCATION”,
},
googlePlayGamesAppId = “12345678xxxxxx”,
},
},
Now I clearly briefed everything now plz guide me in which part of the code I am wrong…
Hi @shakilhadir,
I would suggest that you carefully check your logic. Is your code even getting to the request state, or is there some other non-GPGS related code issue that is blocking your requests from even happening, based on your variables and values and that “crdata” thing (which I have no idea what that is or how you use it)?
Best regards,
Brent
Hi @shakilhadir,
I think you’ll need to provide more details to receive assistance from the community or staff. We don’t know if you correctly included the plugin, and if you properly placed the “googlePlayGamesAppId” in the “android” table, according to the plugin documentation:
https://docs.coronalabs.com/plugin/gameNetwork-google/index.html
Furthermore, we don’t know how youare attempting to show achievements or leaderboards.
I urge you to read the documentation further…
https://docs.coronalabs.com/plugin/gameNetwork-google/init.html
https://docs.coronalabs.com/plugin/gameNetwork-google/request.html
https://docs.coronalabs.com/plugin/gameNetwork-google/show.html
Take care,
Brent
- This is an achievement that initiates when the score of the player is higher than ‘LOWERVALUE’ but lower than ‘UPPERVALUE’
if ((crdata.bestScore > LOWERVALUE) and (crdata.bestScore < UPPERVALUE)) then
gameNetwork.request(“unlockAchievement”,
{
achievement =
{
identifier = “ACHIEVEMENT ID HERE”
}
})
end
if ((crdata.bestScore > LOWERVALUE) and (crdata.bestScore < UPPERVALUE)) then
gameNetwork.request(“unlockAchievement”,
{
achievement =
{
identifier = “ACHIEVEMENT ID HERE”
}
})
end
I added plugins correctly I sign in gps correctly I can see leaderboards but no achievements up are code of two achievements which I add in the game, Actually I want in first achievement unlocked when the score of the player 10 and in second achievement unlocked when score reached 15 so I add values in codes…
if ((crdata.bestScore > 5) and (crdata.bestScore < 11)) then
gameNetwork.request(“unlockAchievement”,
{
achievement = ---------achievement No1
{
identifier = “xxxxxxxxxxxxx”
}
})
end
if ((crdata.bestScore > 11) and (crdata.bestScore < 16)) then
gameNetwork.request(“unlockAchievement”,
{
achievement = ----------------achievement No2
{
identifier = “xxxxxxxxxxx”
}
})
end
Everything is correct all plugins are correct in build.setting and all coding is perfect in main.lua, only problem in values I think I am doing something wrong, and one thing else I can’t see any achievement whether it is unlocked or locked otherwise if achievement are hidden or revealed player can see but I can’t see in my game all ides added correctly… Any Answer?
This is build.setting
settings =
{
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait”, }
},
excludeFiles =
{
– Include only the necessary icon files on each platform
iphone = { “Icon-*dpi.png”, },
android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },
},
–
– Android Section
–
android =
usesPermissions =
{
“android.permission.VIBRATE”,
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.ACCESS_COARSE_LOCATION”,
},
googlePlayGamesAppId = “12345678xxxxxx”,
},
},
Now I clearly briefed everything now plz guide me in which part of the code I am wrong…
Hi @shakilhadir,
I would suggest that you carefully check your logic. Is your code even getting to the request state, or is there some other non-GPGS related code issue that is blocking your requests from even happening, based on your variables and values and that “crdata” thing (which I have no idea what that is or how you use it)?
Best regards,
Brent