Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Squatnet |
Have been trying with no success for a couple of week now to get google play services working. There are a few github repositories out there but every time i try, evertything compiles and builds succesfully. The app runs the first time around (from one click deploy) and initalises the GPGS connection and attempts to login
In all versions (that work at least) the GPGS module immediately disconnects me and any subsequent attempts to load the app without doing an unintall and reinstall is met with
12-04 16:44:06.808 E/godot ( 5912): **ERROR**: Socket error: 111
12-04 16:44:06.808 E/godot ( 5912): At: drivers\unix\net_socket_posix.cpp:199:_get_socket_error() - Socket error: 111
12-04 16:44:06.809 E/godot ( 5912): **ERROR**: Connection to remote host failed!
12-04 16:44:06.809 E/godot ( 5912): At: drivers\unix\net_socket_posix.cpp:339:connect_to_host() - Connection to remote host failed!
12-04 16:44:06.810 E/godot ( 5912): Could not connect to remotefs: localhost:6010.
Modules tried :
GitHub - kloder-games/godot-gpgs: Godot Module for Google Play Game Services (issues with gradlew build / No callbacks received)
GitHub - vini-guerrero/godot-gpgs: Godot Module for Google Play Game Services (issues with gradlew build / immeditaely disconnected for GPGS)
GitHub - ClaudioEden/godot-GamePlayGoogleServices: Godot Game Engine module for Google Play Game Services (immediate disconnect and then app will not reopen)
GitHub - mani144/gpgs: Godot Game Engine module for Google Play Game Services (immediate disconnect and then app will not reopen)
I’m absolutely at a loss as to how to debug these issues further.
im currently using adb logcat -v time godot:* gpgs:* AndroidRuntime:* XXX:* *:S
and it really not providing much useful info.
Anyone have a working GPGS module?
as i know GoogleApiClient is deprecated , it changed to GoogleApi
will it affect ? i dont know, im not android expert
ruruarchy | 2020-01-08 07:06
I had the same problem, tried Kopfenheim’s and FrogSquare’s modules, none will compile
AdamA | 2020-01-30 00:54
I have this one (mostly) working with Godot 3.2:
GitHub - cgisca/PGSGP: Play Games Services plugin for Godot Game Engine - Android
I was having a problem where, when signing-in, a GPGS pop up appeared for me to accept their conditions and after “accept”, the popup would close and I would get a service error message (a callback withe error code).
I solved the problem when I enabled Google Drive API in Google API Console.
cgeadas | 2020-03-06 22:00
I am using https://github.com/cgisca/PGSGP.
It took two weeks to get this plug-in working in my game. The biggest challenge was getting the project set-up correctly on the Google Play Developer Console, Google Game Play Console, and Google APIs and Services. Frankly, I think Google makes it difficult to set-up just so they don’t get a bunch of junk apps in the Play Store.
I finally got it working by doing the following. First, follow the instructions in the plug-in README. Take note of the following if you are using other plug-ins in your game such as an AdMob plugin:
*Note 2: If you have already added other plugin that has meta-data android:name=“com.google.android.gms.version” declared inside it’s AndroidManifest, remove below lines from the android-pgs-plugin-> AndroidManifest.conf file. (Don’t forget to save file after removing below lines)
Also, you have to add the following two lines to res://android/build/gradle.properties:
android.useAndroidX=true
android.enableJetifier=true
Next, be sure to add the following APIs to your project in Google APIs & Services Console:
- Google Game Play Services
- Google Play Game Management
- Google Drive API
I was missing the Google Drive API which caused an error code 8 (“Internal Failure”) return from the sign-in call. It was frustrating because there are no clues to what is failing. There is nothing in the README that identifies the Drive API is needed. I finally found a clue in the Corona forums for a similar plug-in.
tx350z | 2020-04-14 14:21