Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Easy Achievements and Leaderboards - Engage your players

Discussion in 'Assets and Asset Store' started by GleyGames, Jun 2, 2018.

  1. jasa23

    jasa23

    Joined:
    Oct 26, 2018
    Posts:
    7
    Hello, trying to implement, but I am not having luck. Firstly Ive tried with googleplaygame splugin version 0.10 and it did not work. Ive tried troubleshooting all the steps i could find on the forum or elsewere and it didnt work. I ended even publishing the to the public as its mentioned that internal test doesnt work? and for the internal beta and alpha testing i couldnt get it to accept me as a tester. I then read somewhere that the newest 0.10 version of googleplaygame plugin is buggy and ive tried with the older 0.9.64 build. Image 1 from the 0.10 googleplaygame plugin, and the other 2-3 are from the older 0.9.64 version. This is the error I am getting. Image 2 is with apk and the 3rd is .aab. Although they were released on an internal test track, so could this be the issue? Any help would be highly appreciated as I am stuck.

    Thank you :)
     

    Attached Files:

    • 1.png
      1.png
      File size:
      421.3 KB
      Views:
      318
    • 2.png
      2.png
      File size:
      257.2 KB
      Views:
      306
    • 3.png
      3.png
      File size:
      175.2 KB
      Views:
      309
  2. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    It looks like your instalation is not correct, you have some class not found exceptions.
    Resolving android libraries might help you.
    If you write an e-mail at gley.assets@gmail.com we will send you a complete project with google play hames already integrated.
     
  3. jasa23

    jasa23

    Joined:
    Oct 26, 2018
    Posts:
    7
    Hello,
    I've think i got the leaderboards working, but for now it only works for me? As in only my name appears on the leaderboard. Ive created a new one, and the new one does not seem to work. What i did since last time was just restarting computer as android sdk was messing with the compilation, but i then figured out that without compression the google play services worked as expected, hence my name on the leaderboard. But since adding another leaderboard and force resolving the android libraries it not longer appears to be working. This is what I am getting in the logcat. Are leaderboards and achievements always this finicky? Thank you for your help.
     

    Attached Files:

    • 4.png
      4.png
      File size:
      359.4 KB
      Views:
      287
  4. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Your error says that you have an SQL lite database error, Why do you have a point inside your score?. Maybe the type of score you are trying to submit is not compatible with the settings from Google Play.
    Please send me your test link and add gley.mobi@gmail.com as a tester to be able to test myself your leaderboards and see why is not working.
    Thank you!
     
  5. jasa23

    jasa23

    Joined:
    Oct 26, 2018
    Posts:
    7
    Thank you :D, the game is released https://play.google.com/store/apps/details?id=com.notprofessional.swifttap hopefully it works the same..? Should be version 1.6.2
     
  6. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    I do not know when your score is submitted to watch exactly what happens exactly then.
    But in one leaderboard i can submit the score and in another one is not visible. Please verify your leaderboads IDs
    Also my highscore is now 4 and the app does not sumbitted it. The submitted score is 3. Please double check your submission process.

    Please build only our test scene, add that build to testing and see what errors do you get in there.


    Also note that your instruction screen cannot be closed, I had to restart the app to get rid of it :)
     
  7. jasa23

    jasa23

    Joined:
    Oct 26, 2018
    Posts:
    7
    Thank you, i will take a look into it. Yes i know about the instruction page its due to rendering outside safe area.
    Another question: when i initialize both ads or googleplayservices, if i initialize them on the Main Menu scene would i then ahve to reinitialize them on the Play scene? or once they are initialized do they stay active even if scenes are switched? Because right now I am only initializing them on the Main Menu scene and it seems to be working for ads, and then once the game completes the the game over windows is triggered the scores are submitted.
    Edit: Checking now the leaderboards they seem to be submitted, but yes the total score still does not seem to be working :/ I'll check the IDs

    Thank you
     
  8. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    You just have to call initialize only once at the beginning of your game. The plugins will do all the necessarily stuffs they need to work all over your game after that, even if the scenes are switched.
     
  9. siumanchun

    siumanchun

    Joined:
    Apr 7, 2013
    Posts:
    44
    Hi ! Please Add Leaderboards For Steam !
    Ťhank You !
     
  10. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Our plugin is for mobile games so steam leaderboards are beyond the scope of the plugin.
    Sorry
     
  11. MusicaRoca

    MusicaRoca

    Joined:
    Aug 11, 2019
    Posts:
    5
    Hi,
    thanks for this cool plugin. It really saves time .
    A question, the achievements are displayed correctly.

    Only the leaderboards do not show scores.
    The return value is true.
    Does the leaderboard only appear after a certain moment?
     
  12. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Make sure your Google Play profile is public, otherwise you won`t see yourself in leaderboards.

    If that is not the case I need more informations about your issue.
    Thank you!
     
  13. MusicaRoca

    MusicaRoca

    Joined:
    Aug 11, 2019
    Posts:
    5


    Hi,
    Thank you for your prompt reply.
    In other games, I appear in the leaderboards.

    Code (JavaScript):
    1.  
    2. at = 1 (ScoreWorldOne) // Leaderboard Nummer
    3. scEr = 7170 // Score
    4.  
    5. GameServices.Instance.SubmitScore(scEr, allLeaderboards[at], ScoreSubmitted);
    6.  

    Edit:
    Found the bug. Perfect asset
     
    Last edited: Jun 2, 2020
  14. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    We are glad you managed to fix your issue.
     
  15. benardomc

    benardomc

    Joined:
    Jun 5, 2020
    Posts:
    1
    I have followed step by step the guides you have on YouTube but when I install the game and tap the "logging button" nothing happens... The button gets coloured which means it has been pressed but then nothing happens... I'm afraid I have made something wrong o there is something I have missed. Could I contact you via e-mail? I would really appreciate if you helped me. Thank you!
     
  16. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello, you can contact me on any support channels you find on Asset Store page but first try the following:
    Make sure you downloaded your app from Google Play using a test account, otherwise the login will always fail.
    Make sure there are no white spaces before or after your appID inside settings window.
    Make sure to do a Force Resolve of your android libraries.
    Also it might be some problems with your SHA1 fingerprint, please red this:
    https://stackoverflow.com/questions/19622603/there-is-no-linked-app-associated-with-this-client-id

    Hope this will help you fix your issue.
     
  17. thendricks

    thendricks

    Joined:
    Aug 14, 2012
    Posts:
    48
    I am also having this issue
     
  18. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Please read the post above
     
  19. thendricks

    thendricks

    Joined:
    Aug 14, 2012
    Posts:
    48
    Hi. I've followed every step in the Google play documentation and I've followed the post above. I'm still not getting any sign window.
     
  20. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Please send me an e-mail with your invoice number at gley.assets@gmail.com
    Also please make a build with our test scene, upload it on Google Play, add me as a tester using gley.mobi@gmail.com and send me your test link to be able to debug your app.
    Thank you!
     
  21. thendricks

    thendricks

    Joined:
    Aug 14, 2012
    Posts:
    48
    Do you know if Google Play Services supports Unity 2020?
     
  22. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    As far as I know it supports Unity 2020
     
  23. thendricks

    thendricks

    Joined:
    Aug 14, 2012
    Posts:
    48
    Okay. I'll try do this but I'm very busy right now.
     
  24. cratica

    cratica

    Joined:
    Dec 11, 2016
    Posts:
    55
    Couple of issues using iOS. I did get my game to the point where it is now showing and submitting high scores to one leaderboard (for Level 1) which is great! However, I cannot for the life of me get Gamecenter to show the other 3 leaderboards I have added for the other levels. I have set them up the same way as Level 1, but only the first leaderboard will show up.

    Also, once the other leaderboards show up, how can I show a specific leaderboard, not all of them or the default one?

    This is for iOS, NOT android.

    Thank you.
     
  25. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    From our documentation:
    //this method will display a single Leaderboard, only works on Google Play GameServices.Instance.ShowSpecificLeaderboard(LeaderboardNames.yourLeaderboardName);

    So for iOS Unity does not offer the possibility to show a specific leaderboard, we are sorry but we cannot help you with this issue.

    Due to this issue, we can offer you a refund. If you want that please send us an e-mail at gley.assets@gmail.com with your invoice number and we will offer you a refund.
     
  26. Seiryu33

    Seiryu33

    Joined:
    Dec 22, 2014
    Posts:
    35
    Hi. I recently downloaded the plugin but nothing is working. I followed the tutorial to the letter and none of the buttons works. I checked and triple checked my settings and everything is correct. When I install it on my device, it shows the Play Games but fails to log me in and I can't load my Leaderboards. I've gone back and forth with it for almost a month. I'm using Unity 2018 3.1.0 and the most recent version of the Google Play Games plugin. What am I missing?
     
  27. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Too release the game I recommend to use the LTS version of Unity 2018. Also make sure you downloaded your app from Google Play with a testing account.

    To be able to see your error please do a debug directly on the device as shown here:


    The most common issue it that your app is not associated with your client ID, more info here:
    https://stackoverflow.com/questions/19622603/there-is-no-linked-app-associated-with-this-client-id

    Or incorrect app ID:
    https://stackoverflow.com/questions...y-configured-to-use-google-play-game-services
     
  28. RebelBinary

    RebelBinary

    Joined:
    Aug 12, 2015
    Posts:
    11
    You could change or write new functionality to display stats for the last month, week or day within the plugin. The default is all time.

    @GleyGames Also I'm noticing the screenwriter is displaying debug messages (and not checking debug flag like in other scripts) and there is no way to turn it off, or maybe I'm missing something.
     
  29. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    For debug references our asset creates a gameobject in the scene, maybe unity failed to delete that object called Debug Messages Holder.
    If the problem persists can you provide more details?
     
  30. Carwashh

    Carwashh

    Joined:
    Jul 28, 2012
    Posts:
    746
    This is incorrect.

    I released a game in 2019, using GleyPlugins, and can open directly to whatever leaderboard I want - I checked today, on iOS14, and it still works.

    The Unity API says it will too (tho these could be out of date....): https://docs.unity3d.com/ScriptRefe...ter.GameCenterPlatform.ShowLeaderboardUI.html


    [Edit: Infact..
    I've just got it working, with GleyPlugins, in a project at work. I think we're on the latest version of Gley.
    ]
     
    Last edited: Mar 1, 2021
  31. rotub

    rotub

    Joined:
    Jun 23, 2019
    Posts:
    4
    I have just updated to 1.5.1 and my login for leaderboard no longer works for Android (not testing iOS at this stage)

    In unity I get my login success/fail message based on login response but on device in beta testing I do not see either and leaderboard doesn't show.

    Can someone advise? I'm banging my head now hours later
     
  32. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Please try to force resolve your android libraries.
    Also to get more information about what happens you can debug your app directly on device. Please check this video:


    The most common issues are the following:
    https://stackoverflow.com/questions/19622603/there-is-no-linked-app-associated-with-this-client-id
    https://stackoverflow.com/questions...y-configured-to-use-google-play-game-services

    If you still have issues I will need more information from you to be able to help you.
     
  33. rotub

    rotub

    Joined:
    Jun 23, 2019
    Posts:
    4
    Thanks for the reply! I will try the above and report back <3

    EDIT: It works! Force resolving the android libraries seems to have been what was required. Thank you!!!
     
    Last edited: Apr 4, 2021
    GleyGames likes this.
  34. AnMill

    AnMill

    Joined:
    Sep 5, 2018
    Posts:
    8
    Hi! Is there a way to get ID of my user from the Game Center after successful login with this plugin?
    I just want to use that for iOS/Android auth only and assign the ID to the user on my backend
     
  35. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,

    Currently that is not supported,
     
  36. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    132
    Im getting the error

    Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.games.PlayGames

    Not sure what part of the setup I might have gotten wrong, Ive definitely imported all the needed plugins/sdks, and I believe I followed all the instructions in the tutorial videos.

    Could you point me in the right direction ?

    I have tried both resolve and force resolve to no avail.
     
  37. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    What Google Play Games SDK version do you use in your project?
     
  38. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    132
    Im using the newest, v11.01
     
  39. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Okay. It is a reported bug on GoogleServices SDK v11.01: after force resolve there are 2 warnings and the login doesn't work properly, reference: https://github.com/playgameservices/play-games-plugin-for-unity/issues/3145.

    For a successful sign in on Android I strongly recommend you to use a SDK version that works- GoogleServices SDK v10.14 (https://github.com/playgameservices/play-games-plugin-for-unity/releases/tag/v10.14)
    We are going to release a tutorial video on that, but until now check these steps for a clean delete of the Google Play Game Services SDK and reimport another version:
    1.back up your project
    2.delete the imported GPGS SDK's files and/or folders (be careful if you have multiple google SDKs inside). Normally the files are inside these folders:

    3.delete UseGooglePlayGamePlugin (capture) inside the Player Settings window

    4.import the package version you wish

    Join Discord for a more rapid answer. https://discord.gg/7eSvKKW
     
  40. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    132
    Thanks, Ill do that and report back :)
     
  41. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    132
    Ok im now getting this error:

    "
    Error:
    Attribute meta-data#com.google.android.gms.games.APP_ID@value value=(\619873815109) from [:unityLibrary:GameServicesManifest.plugin] AndroidManifest.xml:12:13-42
    is also present at [:unityLibrary:GooglePlayGamesManifest.androidlib] AndroidManifest.xml:20:13-46 value=(\u003619873815109).
    Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:10:9-12:45 to override.
    "

    The "tools:replace="android:value" solution doesn't seem to be working
     
  42. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
  43. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello everyone,

    For those who still struggle to replace the Google SDK version 11.01, here is a newly released tutorial in order to help you with your apps. It also shows how to solve the errors you guys asked me above.
    Don't be shy and support the video with a like if it brings at least a bit of light at the end of the tunnel.
     
  44. LE-Peter

    LE-Peter

    Joined:
    Sep 15, 2020
    Posts:
    42
    I've followed the video, but I'm still getting this error
    When I select /Assets/Plugins/Android/GooglePlayGamesManifest.androidlib the inspector is blank, I'm unable to do the deselect of platforms shown in the video.

    I'm on the latest version of the plugin (1.5.7?) and using Unity 2021.3.9
     
  45. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    You can entirely delete that folder and your error will go away.
     
  46. Steviebops

    Steviebops

    Joined:
    Apr 9, 2013
    Posts:
    132
    If I delete that folder, or leave it unchecked, I get an error saying "Resource 'xml/network_security_config' not found in Android manifest.
     
  47. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,

    May you confirm that you
    1.pressed Force resolved the Android dependencies
    2.followed the tutorial min 03:05, deselect all the platforms and pressed Save like in the video?
    If not, please do that first.

    In this case you have already done ALL the steps above and it does not work, we recommend you to:
    3.try reimport the Google package and follow the tutorial
    4.teh error you send may be due to the fact you deleted something needed. Therefore, send the exact same steps you took to reproduce your error and to better understand your scenario (via email gley.assets@gmail.com). Please include your invoice number.
    5.join Discord channel and ask about your issue, maybe someone else encountered the same issue and is willing to share.

    Have a great day!
     
    Steviebops likes this.
  48. Starbox

    Starbox

    Joined:
    Sep 17, 2014
    Posts:
    436
    Hi,

    System & tool: MacOS 12.5, Unity 2021 11f1, Playmaker.
    The 1.4.28 version has an issue for the leaderboards. When pressing 'Save' (to create or modify the manifest file), I get this:

    Code (CSharp):
    1. DirectoryNotFoundException: Could not find a part of the path "/Users/.../Assets /GleyPlugins/GameServices/Plugins/Android/GameServicesManifest.plugin/AndroidManifest.xml".
    A space is inserted right after 'Assets' and just before '/GleyPlugins' in the {rootfolder}'s string path. Any idea how I can quickly solve this?

    EDIT: OK I corrected the issue. Instead of manually looking for the right script in Vs I should have double clicked on the error. It was on line 484 of GamesServicesSettingsWindow.cs:

    Code (CSharp):
    1.             File.WriteAllText($"{Application.dataPath} /{rootWithoutAssets}/Plugins/Android/GameServicesManifest.plugin/AndroidManifest.xml", text);
    Right after {Application.dataPath}, remove the blank. Then it will be possible to save the Game Services settings in the manifest file.
     
    Last edited: Mar 14, 2023
  49. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello! We have never encountered that error, neither we could erproduce with your steps.
    May you please
    1.confirm you force resolved the dependencies like in my video?

    2.send us a demo project in which you encountered that error? We would be truly grateful to examine further when the issue happens.
    gley.assets@gmail.com

    Join discord if you want to stay closer to the community around the package: https://discord.com/invite/7eSvKKW
     
  50. Starbox

    Starbox

    Joined:
    Sep 17, 2014
    Posts:
    436
    Is that an automated response because it seems to seriously miss the point, being that whoever typed the code simply inserted a blank space in a line.