Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey Dan, big fan of your work.

I seem to be having the same issue and this doesn't seem to be resolving the issue. I have it written like this; am I not calling the method inside the callback properly?

Thanks a lot.

LeaderboardCreator.UploadNewEntry(publicLeaderBoardKey, username, score, ((msg) => {

            LeaderboardCreator.ResetPlayer();

            GetLeaderboard();

        }));

Hello! You are calling it correctly, however, before getting the leaderboard you have to wait a certain amount of time, because after the reset - the player's new unique id needs to be fetched from the server to identify as a new player, and all of this does not happen instantly.

Thanks for reaching out.
I tried using the invoke function to add a delay between the reset and getting the leaderboard however my uploading entry data is still failing.

        LeaderboardCreator.UploadNewEntry(publicLeaderBoardKey, username, score, ((msg) => {

            LeaderboardCreator.ResetPlayer();

            Invoke("GetLeaderboard", 45f);

I updated the Unity package to include a callback argument in the ResetPlayer() function, so call the GetLeaderboard() method inside of it to fully await the reset process.

Thanks once again. I installed the new package and re-imported it into the scene but it is still failing. Am I not calling it correctly in the callback?

 LeaderboardCreator.UploadNewEntry(publicLeaderBoardKey, username, score, ((msg) => {

            LeaderboardCreator.ResetPlayer(() => {

            GetLeaderboard();

            });

        }));

    }

}

I have the same issue.

I tried to do it on the callback, but the upload of the score in itself is the one failing.

Maybe we are not getting how this is supposed to work.

Here is my code


Hey, I released a new update where this should be fixed if you toggle off the new option named "Unique Usernames".