@Pesk92 (Pesk92) posted a new topic, subject "Read Leaderboard Integer not working in 4.9". It read:

   Using google play services leaderboard. It works to write to the leaderboard and to view the leaderboard, but no matter what I do when using the read leaderboard interger node in blueprint it will fail and fire the On Failure event.
    
    It was working in 4.8.3.

So @Pesk92 (Pesk92) replied

    No errors in logcat either…

@Samantha_Sutton (Samantha Sutton) replied

    Hey Pesk92,
    
    Could you please provide some additional information or screenshots for us to work off of? Are you working out of version 4.9.0 Preview 3? Are you using GitHub or obtaining the Editor through the Epic Games Launcher? Are there any errors when you're simply playing within the editor? Are you able to reproduce this on a new project template?
    
    Looking forward to hearing back from you, thanks!

Then @Pesk92 (Pesk92) said

    Hey.  
    Thanks for the reply. I won't be on my normal pc until Sunday so won't be able to give screenshots or do more testing before then.  
    I am on 4.9.0 preview 3 downloaded through epic games launcher.  
    In the editor the leaderboards won't work since it isn't on android(Is it supposed to work in editor with google play services?).  
    Reproducing on a new project would mean I would have to make a new game on play store console and add leaderboards to that project which would be lengthy.
    
    I have the read leaderboard integer node after the show external login ui node. Read leaderboard integer node is connected to the on success node on external login ui node. I also have the read leaderboard integer another place in the game before it saves the game and that fails as well.  
    It will always execute what I put on the on failure branch after the node and the score won't update. All other leaderboard and achievement related stuff works perfect. Just the reading that isn't working.
    
    Sorry about the bad explanation. I'll give you some screenshots on sunday or monday which will make things clearer about my setup.
    
    I see that there is a flush leaderboards node which I'm not using. Am I supposed to be using this? It doesn't seem to be used in the tappychicken example.

@Pesk92 (Pesk92) replied

    Hi again. Here is some extra information and screenshots. I get this on a fresh install of unreal engine 4.9 preview 3 on windows 10 installed through the epic games launcher.
    
    My blueprint at begin play:
    
    54430-blueprint.png1920×1080 286 KB
    
    As you can see there is a Create Moves HUD event being executed if the Read Leaderboard Integer fails. You can see this HUD appearing in my video below. You can also see that it isn't updating the xp score from the leaderboard. The video is recorded of a first run after installing it on my device and it is supposed to update the xp from the leaderboard. It was working in 4.8.3. Writing to the leaderboard works, and as you can see in the movie, showing the leaderboard also works perfectly. It is only the Read Leaderboard Integer that stopped working which is strange.
    
    [Here is the video of starting the game after a fresh install.][2]
    
    Here are my android settings:
    
    54441-androidsettings.png1920×1080 163 KB
    
    54442-androidsdksettings.png1920×1080 106 KB
    
    Here is my “projectname”.Build.cs file. I had to add the two lines to get google play services and admob working in my game.
    [code] 
        // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
        
        using UnrealBuildTool;
        
        public class Hanoitest : ModuleRules
        {
        	public Hanoitest(TargetInfo Target)
        	{
        		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
                	PrivateDependencyModuleNames.Add("OnlineSubsystemGooglePlay");
                	PrivateDependencyModuleNames.Add("AndroidAdvertising");
        	}
        }
        
    [/code]
    
    Any help is appreciated. It is really frustrating that this is not working. Thank you for helping!

Then @Pesk92 (Pesk92) said

    Please let me know if you need any more information.

Then @Pesk92 (Pesk92) said

    I forgot to add the build log file.

So @Pesk92 (Pesk92) replied

    I now tried making a new leaderboard on google play services and add that to my game. That will fail entirely, I can't even open the leaderboard in game.

After which, @Pesk92 (Pesk92) added

    From logcat after adding my new leaderboard with name Highscores:
    [code] 
        08-17 18:03:32.421  27888-29192/? E/Volley﹕ [14622] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/games/v1/leaderboards/Highscores?language=en_GB
        08-17 18:03:32.425  27888-32317/? E/LeaderboardAgent﹕ Unable to retrieve leaderboard Highscores
        08-17 18:03:32.426  27888-32317/? E/LeaderboardAgent﹕ No instance found for leaderboard Highscores for PUBLIC and ALL_TIME
    [/code]

So @Pesk92 (Pesk92) replied

    And from the build log file I get this:
    [code] 
        LogModuleManager:Warning: ModuleManager: Unable to load module 'OnlineSubsystemGooglePlay' because the file 'C:/Program Files/Epic Games/4.9/Engine/Binaries/Win64/' was not found.
    [/code]

So @Pesk92 (Pesk92) replied

    Now the highscores leaderboard is working with showing it and writing to it, but still can't read from it. The problem was that the editor does not update the defaultengine.ini when I add a new leaderboard for some reason so I had to add it manually.
    
    Are there any updates on this issue?

So @Pesk92 (Pesk92) replied

    I have decided to go back to 4.8.3, where it works flawlessly.  
    Hope you manage to sort this out before the official release of 4.9.  
    If you find a solution or there is something extra you need to do in 4.9 I appreciate it if you post it here.  
    Thanks.

To which @silverfish1000 (silverfish1000) replied

    Hi. Have you had the chance to solve the problem? I'm having 0 score on my leader board as well. Except for one thing on some phones and tablets the Score Text it self is not showing. In editor Score Text works good or if I lunch the game on the phone and also on my friends older phone the score shows fine minus the leader board which still shows 0…Any kinda help would be appreciated. Thank you. Nice game you have!!!


{'source': 'discourse', 'url': 'https://forums.unrealengine.com/t/read-leaderboard-integer-not-working-in-4-9/328553', 'title': 'Read Leaderboard Integer not working in 4.9', 'views': 678, 'has_accepted_answer': True, 'word_count': 1006, 'like_count': 0, 'reply_count': 12, 'participant_count': 3, 'posts': 13, 'tags': 'question leaderboard', 'author': '@Pesk92 (Pesk92)', 'participants': '@Pesk92 (Pesk92), @Samantha_Sutton (Samantha Sutton), @silverfish1000 (silverfish1000)', 'image_url': [None], 'created_at': '2015-08-13T14:13:56.000Z', 'last_posted_at': '2018-09-04T08:04:39.000Z'}