Read Leaderboard Integer not working in 4.9

Using 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.

No errors in logcat either…

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!

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 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.

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:

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:

Here is my “projectname”.Build.cs file. I had to add the two lines to get play services and admob working in my game.

// 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");
	}
}

Any help is appreciated. It is really frustrating that this is not working. Thank you for helping!

Please let me know if you need any more information.

[I forgot to add the build log file.][1]

54445-buildlog.txt (859 KB)

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

From logcat after adding my new leaderboard with name Highscores:

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

And from the build log file I get this:

LogModuleManager:Warning: ModuleManager: Unable to load module 'OnlineSubsystemGooglePlay' because the file 'C:/Program Files/Epic Games/4.9/Engine/Binaries/Win64/' was not found.

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?

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.

Hi. Have you had the 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!!!