No, I just cleared Player Prefs manually. The error then seemed not to appear again after playing the game a few times. Maybe it just was my internet connection? Or Maybe not.
DavidTurull
Creator of
Recent community posts
I have this game I am making and I want an input name field panel to pop up on the GameOver screen only when the player achieves a higher score than the previous uploaded score. Of course if there is no personal entry uploaded previously I just want the score to be uploaded. I tried doing it this way to enable the input username panel:
public class UIGameOver : MonoBehaviour { [SerializeField] TextMeshProUGUI scoreText; [SerializeField] GameObject inputPlayerPanel; ScoreKeeper scoreKeeper; private void Awake() { scoreKeeper = FindObjectOfType<ScoreKeeper>(); } private void Start() { scoreText.text = "You Scored:\n" + scoreKeeper.GetScore(); Leaderboards.Laser_Defender.GetPersonalEntry(HighScoreEntry); } void HighScoreEntry(Entry entry) { int score = scoreKeeper.GetScore(); if (score > entry.Score) { inputPlayerPanel.SetActive(true); } } }
And here is the submit score code:
public void SubmitScore() { SetLeaderboardEntry(inputPlayerName.text, scoreKeeper.GetScore() ); Debug.Log("Player name: " + inputPlayerName.text); Debug.Log("Score: " + scoreKeeper.GetScore()); }
After clearing PlayerPrefs, I tried this code got a Bad Web Request:Should I have used local variables in my code before the Personal Entry was defined or something else?
Should I have used the Leaderboard Search query instead?
I am having trouble figuring out how UpdateEntryUserName is used. I don't know much about C# and it would be helpful if you could provide a example scenario and script where you might use UpdateEntryUserName and how it is different from UploadNewEntry. You don't have UpdateEntryUserName in your demo scene for some reason.
I tried the directions you gave exactly but Unity complained that version 3.0 of Newtonsoft Json was not compatible with the version of Unity I was using (2021.3.26f1). I then decided to remove the "@3.0" portion of "com.unity.newtonsoft-json@3.0" that you provided and Unity was able to install the latest version of Newtonsoft Json which is apparently at the time of this post 3.2.1. Just thought I would let you know.
I got these errors in the console (see screenshot below) immediately after selecting your template. I was using a Windows 11 version 21H2 laptop with Unity version 2020.3.37 LTS version and I downloaded the version 2.2 of your template. I made a video if you want to see it.I don't know how bad leaked allocations are but I thought I would post this comment just in case.
Apparently according to the comments you are supposed to throw the magnet at a pipe and the pipe is supposed to suck it up. But I was not able to get the pipe to do that for some reason. I did try to throw the magnet in to the pipe a few times and then I got frustrated and gave up. This was on the very first level. Apparently you can click on a button that says "Back to Hub" when you pause the game before you even have seen the hub for the first time. So when I gave up on unlocking the door on the tutorial level, I clicked on the button named Back to Hub (which took me to the hub level) to see if I could enter any levels and I couldn't throw the magnet to enter any other level. How do you aim a magnet so that it sucked up by a pipe? do you need to increase particle field sucking up effect?
Edit: after a few trys and reading a few comments, I realized I needed to change the polarity of the magnet but throwing a magnet into a pipe still feels a bit clunky. And if you manage to throw the magnet into a pipe you didn't intend to throw it into in the hub world there doesn't seem to be any way to get it back.
Also, what does the reset button actually reset programmatically? because I got stuck on this level
and when I pressed the reset button the reset button pressing animation played but the scene wasn't reloaded for some reason and if I wanted to re-attempt the level it seems that I would have to exit to the hub and deal with the clunky hub world design and then go back it the level to try again. (At least I thought that was what I had to do but after opening and closing the game a few times I managed to see the reset level function actually work)
Also, after opening and closing the game a few times I realized that your game starts from level zero each time. Maybe you could implement a function to save the game progress when you quit or something similar.
I tried playing your game, but I couldn't figure out the controls and your Launcher gave the error message "Launcher is experiencing connection issues, would you like to keep trying?" and clicking yes only brought up the message again and clicking no brought up a Game Launcher that also had trouble connecting to the internet.