Discuss Scratch

robotninja001
Scratcher
100+ posts

Cloud variables being janky and resetting when the page is refreshed

Many, MANY times when i've tried to add cloud variables (eg. highest score, fastest time, etc) the cloud variables act like normal variables. I made sure they only store numbers and not letters, but they still act like regular variables. Whenever i get a new high score in my own game, stop the project, and refresh the page the variable resets. How do i fix this recurring problem????????
The_Cool_Test_Alt
Scratcher
100+ posts

Cloud variables being janky and resetting when the page is refreshed

Try renaming the variables. If the issue persists, it is not your fault. Scratch's cloud variables are notoriously buggy.

As a side note, I am reporting this to be moved to bugs and glitches for that exact reason.
medians
Scratcher
1000+ posts

Cloud variables being janky and resetting when the page is refreshed

The_Cool_Test_Alt wrote:

Try renaming the variables. If the issue persists, it is not your fault. Scratch's cloud variables are notoriously buggy.

As a side note, I am reporting this to be moved to bugs and glitches for that exact reason.
Also, cloud variables are currently down for everyone
https://scratch.mit.edu/discuss/topic/838318/
omar99887
Scratcher
26 posts

Cloud variables being janky and resetting when the page is refreshed

robotninja001
Scratcher
100+ posts

Cloud variables being janky and resetting when the page is refreshed

omar99887 wrote:

well check https://clouddata.scratch.mit.edu/
it says 502 Bad Gateway
dave3m
Scratcher
500+ posts

Cloud variables being janky and resetting when the page is refreshed

robotninja001 wrote:

they still act like regular variables. Whenever i get a new high score in my own game, stop the project, and refresh the page the variable resets.

The reason for this behaviour is that they are acting like ‘normal variables’ while the cloud server is down. Whenever you save your project, it saves whatever values your cloud variables have at that time.

Any updates that you attempt to make to your cloud variables will be stored locally in the project while it is running, but will never be saved to the cloud. As a result, the project appears to work until the point that you close it. If you haven't re-saved the project, those updates to the cloud variables will be lost.

When you reload the project, it will be unable to load any data from the server for your cloud variables. Instead, it will have reloaded whatever values they had when you last saved the project. This is why your cloud variables are ‘reset.’


Unfortunately, we don't know when the cloud server will be restored. The Scratch Team has typically been silent about this problem, sometimes for months, until the server quietly comes back at some point. It is quite frustrating to not have the team acknowledge this repetitive problem or provide any updates. When the server comes back up, your cloud variables may or may not work. Once the server is back up, if your cloud variables still don't work you can try renaming the variables to re-register them.

We have to wait until it is back up, however.

Powered by DjangoBB