Easy Achievements and Leaderboards - Engage your players

Thanks for your reply, your answer worked - I was wondering why it doesn’t say exactly that in your documentation here? http://gley.mobi/documentation/Gley-GameServices-Documentation.pdf

I’m not a really experience developer so I might have missed some syntax but I thought this was made for absolute beginners, which I’m not (at least)

In any case, I have another problem, during build (I’m building with Gradle because I’m using another plugin, Adincube, and they require Gradle building) I hit an error that I’ve not seen before using this plugin, so I assume it has something to do with it. Please assist!! Thank you!!

The attribute meta-data#com.google.android.gms.games.APP_ID@value=\ in :GooglePlayGamesManifest.plugin collides with another value
(See the Console for details)
CommandInvokationFailure: Gradle build failed.
/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-4.2.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleDebug"
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:187
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:94
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

The documentation says this:

GameServices.Instance.LogIn(UnityAction<bool> LoginComplete = null);

That means that this method needs to have an optional parameter (by default is null) that needs to be of type UnityAction (any method that has a parameter of type bool).

If our documentation looked like this(as you suggested):

GameServices.Instance.LogIn(LoginComplete);

You would have no clue about what that LoginComplete parameter means and it will be impossible for you to guess what you should put there.

We never said anywhere that this plugin is for absolute beginners and no coding knowledge is required. We just said that we have a step by step tutorial that can be followed even by beginners.
We are currently working at a complete game integration of this plugin but it is not ready yet.

About your other question:
Please make sure that the GooglePlayGamesManifest.plugin is disabled. See the screenshot bellow:
3903907--332449--plugin.PNG

You can also delete that folder entirely, it is not required.

If you still have that error search all your manifest files for this line:
com.google.android.gms.games.APP_ID
you should have that only once in all your manifest files.

Okay, I’m currently using

GameServices.Instance.LogIn();

As you’ve mentioned above.

Then I went to that location you described in my project - how do I open up my inspector to get to those manifest.plugin import settings? This is what I see:

And if I deleted GooglePlayGamesManifest.plugin, attempts to build get me an error that reference that folder?

Thanks for your support!

First of all that GooglePlayGamesManifest.plugin should be inside Android folder. Probably you moved it outside by mistake.
And to select it you have to select Android folder on the left and GooglePlayGamesManifest.plugin on the right. Like this:

3910168--333241--selectFolder.PNG

Hello,
We just released a major update of the our asset and we are glad to announce that now our asset supports Playmaker actions so if you own a copy of Playmaker no coding is required for implementation.

Here is a step by step tutorial on Playmaker integration:

I have a problem. when I run the application on the mobile phone … do not log in google … already tried several possible solutions … my code sdh1 is correct … I added the testers. the game is published in the alpha. and still do not make connections … bought your asset. but the problem remains even after redoing all your video two times … what is up?? I do not know what to do anymore

when I click the login button. nothing happens.

Hello
Please check the log on your device and see what error do you get when you press the login button. If nothing happen you will get some debug messages.
Let us know about the error you are getting and we can help you.

Is there functionality to reset achievements?

Hello,
If your achievement was published it cannot be reset.
Please check the official Google documentation for more details:
https://developers.google.com/games/services/common/concepts/achievements

Hello, i’m pretty much a noob at developing and i’m having some issues. For one I can’t seem to get the leaderboard or achievements buttons in my game to work, they do nothing when pressed. Also every time I click on the restart button it logs into google play every time. Will you be able to help with this?

Hello,

We have a step by step integration tutorial that might help test if your achievements and leaderboards work:

https://www.youtube.com/watch?v=hYA9vrn7jzE

To stop logging in every time you restart your game you can check if user is already logged in and call the login method only if it is not, like this:

if(GameServices.Instance.IsLoggedIn()==false)
{
     GameServices.Instance.LogIn();
}

To show your leaderboards you have to call this method:

GameServices.Instance.ShowLeaderboadsUI();

To show your achievements list you have to call this method:

GameServices.Instance.ShowAchievementsUI();

Yes, I wish to be able to reset achievement progress prior to publishing in order to test them more than once.
In the Google Play Console under Game Services you can reset each one manually one-by-one, but a simple method call from inside the app to reset them all would be extremely useful.

It would also be useful for iOS achievements (other plugins I have used include this functionality). I’m am investigating moving over to your plugin because it takes care of both iOS and Android achievements, and noticed the ability to reset achievement progress is missing.

Thank you for your interest, but for now that feature is not available in our plugin. If you require that feature than our plugin it is not for you.
We will consider including such feature in our plugin in the future but for now we cannot help you with this. We are sorry.

Trying to debug why on Android it keeps coming back as a failed log in, set up seems okay. Followed the trouble shooting guide. Is there a way to debug or get an error code from the Failed log in attempt?

Hello,
Please make sure your app is downloaded from google play, and you are a tester for your app.
To debug you app you can use Monitor(located in Tools folder) from the Android SDK.
Let us know if you need more assistance.

Hi Gley Games could you also show how to write submitting score to leaderbord
GameServices.Instance.SubmitScore(long score, LeaderboardNames leaderboardName,
UnityAction<bool, GameServicesError> SubmitComplete = null); this code is giving error, I am new to programming thats why i am struggling to make it work

Hello,
Leaderboard names should be an enum that is generated when you add your leaderboard names to our Settings window. Please check this tutorial:

https://www.youtube.com/watch?v=UhISu9ChKCE

Hello, I have purchased the plugin recently. I have followed all the steps in the document. But I am not able to login to Google Play Games. When the login process begins, Google’s UI pops up indicating that it connects to Play Games. However, when the process ends, login attempt callback returns success=false. And there is no error message about the reason for the failure. I have confirmed all of these steps:

  • the google play app id is not correct
  • you are not a tester
  • you should download your app from google play from alpha or beta test first time you test your game services
  • your app is not signed with the same key as one from the store
  • your Game Services from google account are not published.

still can’t get it to work.

A piece of extra information is that I set up your plugin with the required id’s and everything was fine. But when I exported the project into Android Studio, the Play Games plugin complained that it’s not setup correctly . So I have filled the Play Games form with the required data (I have attached a picture of this). Could this have led to a conflict between your plugin and the Play Games plugin? Thanks in advance…

Hello,
You do not need to fill up that Play Games plugin window, it will not be used at all.
The best way to debug your app is to connect your android device to android monitor and read the logs directly from device, you will get the full error messages there. They are not available into Unity to display them on your screen.

Another common issue is that you SHA1 fingerprint does not match the one from the store, please see this thread on how to fix that:
https://stackoverflow.com/questions/19622603/there-is-no-linked-app-associated-with-this-client-id

If you are not able to fix or debug your app, please add us as a tester, e-mail: gley.mobi@gmail.com and send us your test link and we will connect our device to monitor and tell you what is your error, but you can do this on your own.

Thanks for the reply. I will check this out and reinform you.