Discuss Scratch

A_Geeky_Jawa
Scratcher
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)

awesome-llama
Scratcher
1000+ posts

How does cloud variables work around different users?

Yes.
J-Craft
Scratcher
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.
Joshia_T
Scratcher
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.
A_Geeky_Jawa
Scratcher
100+ posts

How does cloud variables work around different users?

Ok thanks
DadOfMrLog
Scratcher
1000+ posts

How does cloud variables work around different users?

J-Craft wrote:

If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
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).

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
Scratcher
500+ posts

How does cloud variables work around different users?

DadOfMrLog wrote:

J-Craft wrote:

If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
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).

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!

Doesn't it load the cloud vars but doesn't have the ability to change them?
deck26
Scratcher
1000+ posts

How does cloud variables work around different users?

Joshia_Tanumihardja wrote:

DadOfMrLog wrote:

J-Craft wrote:

If the user changing the cloud variable is a New Scratcher, then it will not change. However, they can see other's changes.
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).

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!

Doesn't it load the cloud vars but doesn't have the ability to change them?
Don't you think @DadOfMrLog will have tested the project both as a logged in user and non-logged in user?
TheLogFather
Scratcher
1000+ posts

How does cloud variables work around different users?

Joshia_Tanumihardja wrote:

Doesn't it load the cloud vars but doesn't have the ability to change them?
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 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.)

Powered by DjangoBB