Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How does cloud variables work around different users?
- A_Geeky_Jawa
-
100+ posts
How does cloud variables work around different users?
Lets say one person changes a cloud variable, will that also change for a different person?
Last edited by A_Geeky_Jawa (Dec. 10, 2016 07:44:42)
- J-Craft
-
77 posts
How does cloud variables work around different users?
It depends actually:
If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
For normal users, they can change cloud data.
If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
For normal users, they can change cloud data.
- Joshia_T
-
500+ posts
How does cloud variables work around different users?
Cloud variables are variables stored on the server, which means usual variables, lists, and everything is stored on your pc. Server changes means it changes for everyone in the universe.
- DadOfMrLog
-
1000+ posts
How does cloud variables work around different users?
Just to note that a project loaded by a New Scratcher does not make any connection to the Scratch Cloud servers, so will *not* see any values/changes from the cloud (only the values that were saved with the project). If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
This is easily demonstrated here: https://scratch.mit.edu/projects/21501896/
If you are a New Scratcher (or not signed in, or you are not connected to the ‘net, or Scratch Cloud is down) then the cloud variable in the project will remain zero (which is the value that was saved with the project).
But if you are a signed in as a Scratcher (and your ’net connection is working correctly, and Scratch Cloud is up) then you will see the cloud variable ‘flip’ from zero to one soon after the project finishes loading. (This is the value the cloud variable has in the cloud.)
Hope that makes sense!
Last edited by DadOfMrLog (Dec. 14, 2016 00:00:46)
- Joshia_T
-
500+ posts
How does cloud variables work around different users?
Doesn't it load the cloud vars but doesn't have the ability to change them?Just to note that a project loaded by a New Scratcher does not make any connection to the Scratch Cloud servers, so will *not* see any values/changes from the cloud (only the values that were saved with the project). If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
This is easily demonstrated here: https://scratch.mit.edu/projects/21501896/
If you are a New Scratcher (or not signed in, or you are not connected to the ‘net, or Scratch Cloud is down) then the cloud variable in the project will remain zero (which is the value that was saved with the project).
But if you are a signed in as a Scratcher (and your ’net connection is working correctly, and Scratch Cloud is up) then you will see the cloud variable ‘flip’ from zero to one soon after the project finishes loading. (This is the value the cloud variable has in the cloud.)
Hope that makes sense!
- deck26
-
1000+ posts
How does cloud variables work around different users?
Don't you think @DadOfMrLog will have tested the project both as a logged in user and non-logged in user?Doesn't it load the cloud vars but doesn't have the ability to change them?Just to note that a project loaded by a New Scratcher does not make any connection to the Scratch Cloud servers, so will *not* see any values/changes from the cloud (only the values that were saved with the project). If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
This is easily demonstrated here: https://scratch.mit.edu/projects/21501896/
If you are a New Scratcher (or not signed in, or you are not connected to the ‘net, or Scratch Cloud is down) then the cloud variable in the project will remain zero (which is the value that was saved with the project).
But if you are a signed in as a Scratcher (and your ’net connection is working correctly, and Scratch Cloud is up) then you will see the cloud variable ‘flip’ from zero to one soon after the project finishes loading. (This is the value the cloud variable has in the cloud.)
Hope that makes sense!
- TheLogFather
-
1000+ posts
How does cloud variables work around different users?
No, a project loaded by a New Scratcher doesn't connect to the cloud server at all, so they will not see any values from the cloud. (That's the basis of my Doesn't it load the cloud vars but doesn't have the ability to change them?New Scratcher Detector project – in fact, it's the *only* way I think could be possible to do such a detection.)
(The box that appears for a New Scratcher on loading a cloud-enabled project, saying “changes won't be saved”, is easy to misinterpret, I think. The statement only saying your own changes don't go to the cloud, and the lack of any statement about remote cloudvar changes, gives the impression that you can see the latter, i.e. that its a kind of one-sided connection. But really it's missing connection both ways – you cannot see anything from the cloud. Also, the second sentence (basically hinting that you cannot “use cloud data”) is too general for it to really clear up that misunderstanding.)
- Discussion Forums
- » Help with Scripts
-
» How does cloud variables work around different users?