GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Google Play Games available in RC

adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee
edited October 2018 in News from the Dev Team

The new RC has been pushed with Google Play Games Services (GPGS) support for Leaderboards and Achievements. To take advantage of this you will have to set up things on Google's side, update your app, and publish with "Build RC".

Publishing now has checkboxes for Google Leaderboards and Achievements and a box for the GPGS App ID.

No documentation yet, but you should be able to figure most of it out.

Some notes:

  • Reset achievements is a NOOP. It's not possible via the Google API so that behavior will do nothing.
  • Google generates Achievement and Leaderboard IDs, so you will have to update your game to use those IDs.
  • Google's API doesn't let us update achievements by percentage. I think I can grab the achievement information for the game and correctly set "incremental" achievement, but the current release will send the percentage value directly to GPG. Great if your achievement has 100 increments, not so great if it doesn't. The next RC should have a fix. One step "unlockable" achievements should work fine, to unlock just set the achievement value to 100.
  • Also it IS possible to test without "publishing" your game settings in the GPG developer console. (You'll know what I mean when you start setting your stuff up). So if you're doing stuff doesn't seem to be working, check with the forums or DM me first. Don't try to publish your GPGS setup in the hopes that it will fix stuff. Testing should work before you "publish" as long as you list your account as a test account in Google's interface.

We'll have full docs before the "production" release of this feature. Until then, I'm gonna go back to coding to fix the incremental achievements problem. In the mean time, help each other out with setup and I'll check in to answer questions.

Enjoy!

Comments

  • HypnorabbitHypnorabbit SingaporePosts: 152Member, PRO

    That's brilliant thanks @adent42 I'll test it today.

  • AshumBesherAshumBesher Posts: 18Member

    I believe I've done everything right, but now when I'm testing my app I'm getting an error message:
    Unexpected error:Log tag "GooglePlay-GameServicesProvider" exceeds limit of 23 characters

  • freneticzfreneticz SwedenPosts: 677Member, PRO
    edited October 2018
  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee

    ugh... easy fix... in case you're wondering the tag it's complaining about is part of how Android logging code works. I've tagged debug log statements with "GooglePlayGameServicesProvider". I guess on lower API versions there was a limit to the log tag length (it wasn't a problem when I was developing). I'll updated the RC shortly.

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee

    Ah, it's not based on API version, it's that the error doesn't trigger in debug version and I had left some error logging in the system for the release version.

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee

    Okay, try again now. Issues should be worked out. Even had I not flubbed the logging code, it turns out the publishing server setup was a bit off. But now that's fixed and I was able to get a test game through the publishing server and doing the leaderboards and achievements thing.

    Resume Implementing!!!!

  • freneticzfreneticz SwedenPosts: 677Member, PRO
    edited October 2018

    Got this now, it say something about achievement but i only have leaderboard.

    This is after i got logged in on google games and created a player alias.

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee
    edited October 2018

    @freneticz It looks like the code to handle incremental updates assumes that achievements are active (which never threw an error before because I've been testing with both system enabled).

    I should have a fix by tomorrow, but for now you should be able to continue testing by checking Achievements to let the game continue. That will allow the code to initialize the Achievements system. In your case it just wouldn't do anything.

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee

    @freneticz thanks for pointing that out. It also reminded me that I needed put in the code required to get the Achievement Notifications to show. These builds take a while so I'll probably deploy that update tomorrow morning. Hopefully that will be the final RC for this feature!

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee
    edited October 2018

    Okay, RC update is up. Should fixes the issue @freneticz saw and show notifications on achievement unlock.

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee

    There's still some stuff missing, but this should hopefully be more helpful than not: http://help.gamesalad.com/gamesalad-cookbook/7-using-pro-features/7-google-play-games-services/

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee

    Oh also, something I saw on Google's site that may be of interest:

    If your game is primarily targeted towards children under 13, you cannot implement Google Play game services.

  • ArmellineArmelline Posts: 4,696Member, PRO

    Awesome @adent42, thanks for your time on this!

  • supernovagamessupernovagames Posts: 14Member, PRO

    I am having issues with this, leaderboards and achievements don't show. It logs into google play and I'm using the RC build.

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee
    edited February 22

    @supernovagames if you haven't already contacted support, PM me and I can see what's up. One thing to remember is to make sure you're using the correct signing key. An app signed with a different key than the one submitted when you registered the app on the Google Play site won't work.

  • stragstrag Posts: 520Member, PRO

    @adent42 I'm getting the following Alert on my newly published app. I have not implemented any Achievements. Is this something that's been recently added to the builds?

  • supernovagamessupernovagames Posts: 14Member, PRO

    Adent42, I sent you a PM a couple days ago. I will post it on here, since I have not heard anything back.

    I copied the signing certificate fingerprint (SHA1) from terminal and pasted it. I also checked the google game services game ID, were correct on publishing. The google play services login works and nothing else. The game shows up in google play with no leaderboards or achievements.

  • robertjacksonrobertjackson Posts: 4Member

    @strag said:
    @adent42 I'm getting the following Alert on my newly published app. I have not implemented any Achievements. Is this something that's been recently added to the builds?
    ">

    I was actually wondering about the same question. Having the same alert, and I don't know how to fix this.

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee

    @robertjackson can you send me the APK you submitted. I'm hoping it's not related to the actual code, but something in the app manifest that we need to disable during publishing.

  • stragstrag Posts: 520Member, PRO

    @strag said:
    @adent42 I'm getting the following Alert on my newly published app. I have not implemented any Achievements. Is this something that's been recently added to the builds?

    Just wondered @adent42 did you find anything regarding this issue?

  • adent42adent42 Posts: 1,273Key Master, Head Chef, Executive Chef, Member, PRO GameSalad Employee
    edited March 2

    Not yet. I need an actual APK to test, but from my logic, we don't call the achievements code unless we need it.

    @strag can you send me an APK with this problem?

  • stragstrag Posts: 520Member, PRO

    @adent42 just sent .apk via PM

  • blobblob Posts: 184Member, PRO
    edited March 2

    Oh boy! Sad to see how much the community has shrunk, due to the lack of man power invested in growing the actual GS engine and software features. :s

  • gizzi93gizzi93 Posts: 48Member, PRO

    @blob said:

    Oh boy! Sad to see how much the community has shrunk, due to the lack of man power invested in growing the actual GS engine and software features. :s

    I have to agree with you there!

  • NKBDLNKBDL Posts: 49Member, PRO

    I come here from time to time, but it's not like everyday thing. Hope that as they build this platform we get more users coming back. This is still one of the best 2D prototyping platforms out there!

Sign In or Register to comment.