Hi everybody,
I want add one leaderboard to my simple game by using gpgs plugin from Google. So I read
- gpgs.* — Google Play Games Services on Corona documentation page
- From The Blog: Google Play Games Services update, and how to use snapshots,
- Setting Up Google Play Games Services
I do everthing what they write what must be done to gpgs works. After my first try I get error with license key. I figure out that just need add code to build.settings file
usesPermissions = { --"android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE" },
Today I get message on console
PluginSync: plugin com.coronalabs/plugin.gpgs needs to be updated for platform win32-sim to build number: 2906 11:22:37.124 PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.gpgs/2016.2906/win32-sim/plugin.gpgs.zip
I download and unzipped plugin.gpgs.zip file and put it project folder. Next to main.lua file. Again this was suprise for me because nowhere is wrote about this kind situation but I was able to install my app succesful.
Now I getting message from console after debugging
adb logcat Corona:v \*:s --------- beginning of /dev/log/system --------- beginning of /dev/log/main V/Corona (12333): \> Class.forName: network.LuaLoader V/Corona (12333): \< Class.forName: network.LuaLoader V/Corona (12333): Loading via reflection: network.LuaLoader I/Corona (12333): Platform: ORION\_97 / ARM Neon / 4.2.2 / PowerVR SGX 544MP / OpenGL ES 2.0 build 1.10@2379759 / 2016.2992 / polski | PL | pl\_PL | pl V/Corona (12333): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona (12333): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona (12333): Loading via reflection: CoronaProvider.licensing.google.LuaLoader I/Corona (12333): WARNING: licensing.init() was already called for google. V/Corona (12333): \> Class.forName: plugin.gpgs.LuaLoader V/Corona (12333): \< Class.forName: plugin.gpgs.LuaLoader V/Corona (12333): Loading via reflection: plugin.gpgs.LuaLoader I/Corona (12333): Error: could not read scores from highscore.json . I/Corona (12333): \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* I/Corona (12333): Init error message: Google Play Services require an update
Last message comes from init event. I don’t know what I have to do now to my app start working properly. Any suggestions?
I add more information because I want to share it with community. Sorry for my english
build.settings settings = { orientation = { default = "portrait", }, android = { supportsScreens = { smallScreens = true, normalScreens = true, largeScreens = true, xlargeScreens = false, }, minSdkVersion = "10", googlePlayGamesAppId = "1821585445450778", usesPermissions = { --"android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE" }, }, build = { neverStripDebugInfo = false }, plugins = { ["plugin.gpgs"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, }
config.lua local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio \>= 1.5 and 800 or math.floor( 1200 / aspectRatio ), height = aspectRatio \<= 1.5 and 1200 or math.floor( 800 \* aspectRatio ), scale = "letterBox", fps = 30, imageSuffix = { ["@2x"] = 1.3, }, }, license = { google = { key = "MIIBIjANBgkqhkiGwLQeHlRpFMpgdfnsFwxNaT3oxEsh2dha0Qmup/zAPrwIDAQAB", policy = "serverManaged", }, }, }
I’m using free version of Corona SDK build 2016.2992.
The app tested on tablet with Android 4.2.2 and Games Play app version 3.9.08 updated today. The Google Play Games Services plugin activated in marketplace.
After updated Google Play Services from 8.7.03 to 10.0.84 I don’t get error message but gpgs still seems not work.