Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Android GOOGLE gamecenter support - Page 6 — Gideros Forum

Android GOOGLE gamecenter support

12346»

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Just uploaded, thank you for reminding.
  • The version no hasn't changed?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    Well honestly I've updated the files on Gaming Lib but it seems it was not actually affected by it, because it used the version of GameHelper lib that had a fix.

    So decided not to raise an update about it, sorry :)
  • gimgim Member
    Is there any plan to support APIs to retrieve access_token et al. for 3rd party services? (like as facebook plugin)
  • ar2rsawseenar2rsawseen Maintainer
    If most of the services support it, then sure.
    If you know anything about Google Play or Gamekit or GameCircle point me to the link and I can implement it

    Which also give me another idea, of having Facebook under Gaming interface :)
  • Speaking of facebook, is there a way using Gideros of uploading a screenshot with a post (not just linking a url of a screenshot)? - I want facebook to store it.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    Not exactly with a post, you can post image to album, but you may also add text to it, so it appears as a post, but image will be in the album
    You can then retrieve its id and link in other posts
  • I've noticed though that normally when you post (as a human) you can attach an image. Is that possible with Facebooks api yet?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    There is this thing called staging, where you can upload images to facebook and then retrieve ID for it to use in other requests as post to wall.

    I will look more into it.

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • Thanks. An internal command or an example to simplify things would be ideal for posting screen grabs at action points, etc...
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • ar2rsawseenar2rsawseen Maintainer
    unfortunately staging seem to only work with open graphs= objects (we are not there yet) and does not work with posts to feed, you may only use link to post pics there :(
  • no problem. :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • AnhTuanAnhTuan Member
    Hi,
    Any news about supporting multiplayers on both iOS and Android?
  • ar2rsawseenar2rsawseen Maintainer
    I'm actually looking more in other direction as https://www.nextpeer.com/
    much cleaner and easier to use api and works for both ios and Android.

    As originally Google Play multiplayer did not work out for me. It had been updated tremendously so I might give another shot to it.

    Even more ambitious thing would be to create a Multiplayer interface working with different frameworks as AdsInterface, but thats just me dreaming for now :)
  • @ar2rsawseen wow never noticed nextpeer before.

    Do you want to build a plugin for it, Arthur?
    have fun with our games~
    http://www.nightspade.com
  • @ar2rsawseen do you have a plan to release source code for current version of Google Play service Plugin?
  • ar2rsawseenar2rsawseen Maintainer
    @ar2rsawseen yep when I come up with an app idea to test it :)

    @AnhTuan plain Google Play service is available on github:
    https://github.com/ar2rsawseen/GiderosGooglePlay
  • totebototebo Member
    edited June 2014
    I'm also having trouble with GameHelper.java. When I use the one from here http://giderosmobile.com/labfiles/GiderosGooglePlay.zip the app doesn't compile.

    When I use one I found here https://github.com/playgameservices/android-samples/blob/master/BasicSamples/libraries/BaseGameUtils/src/main/java/com/google/example/games/basegameutils/GameHelper.java the app compiles fine but I get these errors when I try to require "googleplay":
    06-04 22:32:05.480: E/AndroidRuntime(25536): FATAL EXCEPTION: main
    06-04 22:32:05.480: E/AndroidRuntime(25536): Process: com.totebo.nobrakes, PID: 25536
    06-04 22:32:05.480: E/AndroidRuntime(25536): java.lang.NullPointerException: Null options are not permitted for this Api
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.google.android.gms.internal.fq.b(Unknown Source)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.google.android.gms.common.api.GoogleApiClient$Builder.addApi(Unknown Source)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.giderosmobile.android.plugins.googleplaygame.GameHelper.createApiClientBuilder(GameHelper.java:286)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.giderosmobile.android.plugins.googleplaygame.GameHelper.setup(GameHelper.java:319)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.giderosmobile.android.plugins.googleplaygame.GGooglePlay$2.run(GGooglePlay.java:200)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.os.Handler.handleCallback(Handler.java:733)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.os.Handler.dispatchMessage(Handler.java:95)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.os.Looper.loop(Looper.java:136)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at java.lang.reflect.Method.invokeNative(Native Method)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at java.lang.reflect.Method.invoke(Method.java:515)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    06-04 22:32:05.480: E/AndroidRuntime(25536): 	at dalvik.system.NativeStart.main(Native Method)
    Is there a preferred GameHelper.java out there, or any other way I can get this working? As I mention here http://giderosmobile.com/forum/discussion/4972/google-play-on-android#Item_1, the game crashes as soon as I try to access Google Play.

    Niclas

    My Gideros games: www.totebo.com
  • ar2rsawseenar2rsawseen Maintainer
    Hello @totebo
    most probably Google Play Service was once again updated without backwards compatibility, will check it out ;)
  • totebototebo Member
    edited June 2014
    Thanks @ar2rsawseen! After some solid debugging, the Android crash dialogue is starting to bug me a tiny bit. If it helps I can send source files?

    Niclas
    My Gideros games: www.totebo.com
  • totebototebo Member
    Just in case I removed the app from Google Play and set it up from scratch again. Same issue.
    My Gideros games: www.totebo.com
  • totebototebo Member
    Here is the error I get with the GameHelper.java from http://giderosmobile.com/labfiles/GiderosGooglePlay.zip.
    errors1.png
    960 x 906 - 124K
    errors2.png
    960 x 906 - 108K
    My Gideros games: www.totebo.com
  • ar2rsawseenar2rsawseen Maintainer
    yep yep, those are changes in Google Play framework, will update tonight ;)
  • totebototebo Member
    edited June 2014
    Great news. Thanks!

    Is that likely to solve the crash issue?
    My Gideros games: www.totebo.com
  • ar2rsawseenar2rsawseen Maintainer
    New Google Play plugin version pushed to Github and uploaded to Gideros Labs (I think I have forgot to change the version number in Gideros, so simply download the package again from the Labs) ;)
  • totebototebo Member
    Downloaded and replaced src. Although it now compiles without errors the crash remains. If I'm the only one with this issue, it stands to reason I've messed up somewhere. :)

    This looks suspicious: "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.". Full log below. As far as I know, all the references to Google Play Services Lib are there.
    06-05 23:12:56.545: E/GooglePlayServicesUtil(5859): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
    06-05 23:12:56.545: E/AndroidRuntime(5859): FATAL EXCEPTION: main
    06-05 23:12:56.545: E/AndroidRuntime(5859): Process: com.totebo.nobrakes, PID: 5859
    06-05 23:12:56.545: E/AndroidRuntime(5859): java.lang.NullPointerException: Null options are not permitted for this Api
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at com.google.android.gms.internal.fq.b(Unknown Source)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at com.google.android.gms.common.api.GoogleApiClient$Builder.addApi(Unknown Source)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at com.giderosmobile.android.plugins.googleplaygame.GameHelper.createApiClientBuilder(GameHelper.java:286)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at com.giderosmobile.android.plugins.googleplaygame.GameHelper.setup(GameHelper.java:319)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at com.giderosmobile.android.plugins.googleplaygame.GGooglePlay$2.run(GGooglePlay.java:200)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at android.os.Handler.handleCallback(Handler.java:733)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at android.os.Handler.dispatchMessage(Handler.java:95)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at android.os.Looper.loop(Looper.java:136)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at android.app.ActivityThread.main(ActivityThread.java:5001)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at java.lang.reflect.Method.invokeNative(Native Method)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at java.lang.reflect.Method.invoke(Method.java:515)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    06-05 23:12:56.545: E/AndroidRuntime(5859): 	at dalvik.system.NativeStart.main(Native Method)
    My Gideros games: www.totebo.com
  • totebototebo Member
    Things tried:

    - Reinstall google-play-services_lib
    - Triple check dependencies, AndroidManifest.xml, changes to main Activity, Google's online docs
    - Remove and set up game again on Google Play Developer Console
    - Sign with both debug and production SHA1 keys
    - Google anything to do with this issue

    Still crashing as soon as I mention require "googleplay". What am I missing?
    My Gideros games: www.totebo.com
  • ar2rsawseenar2rsawseen Maintainer
    Sorry, currently I don't know if I'm doing something wrong, or there was an additional bug in GameHelper, submitted the issue to them:
    https://github.com/playgameservices/android-samples/issues/78

    In the mean time created a fix and uploaded both to the Labs and Github ;)

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • totebototebo Member
    Never before have I been so pleased to see a Google login prompt.

    (*)
    My Gideros games: www.totebo.com
  • SinisterSoftSinisterSoft Maintainer
    @ar2rsawseen Did you update the gaming lib too?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
Sign In or Register to comment.