Discuss Scratch

UnscrambledEgg
Scratcher
100+ posts

Prevent lists from resetting

Hi guys, is it possible to prevent a list from resetting after I leave a project and rejoin it? Thank you.
SpyCoderX
Scratcher
1000+ posts

Prevent lists from resetting

What do you mean? If you save the project, all variables and lists should be saved as well.
Norse7
Scratcher
100+ posts

Prevent lists from resetting

SpyCoderX wrote:

What do you mean?
Yes, I agree, some more detail would be nice.
UnscrambledEgg
Scratcher
100+ posts

Prevent lists from resetting

SpyCoderX wrote:

What do you mean? If you save the project, all variables and lists should be saved as well.
Well, if a player adds a new item to the list, leaves the project and goes back to the project (like deleting the tab, making a new one and going back to the project) then the variable wouldn't be the same as what they set. It resets.
Fluffygamer_
Scratcher
1000+ posts

Prevent lists from resetting

UnscrambledEgg wrote:

(#4)

SpyCoderX wrote:

What do you mean? If you save the project, all variables and lists should be saved as well.
Well, if a player adds a new item to the list, leaves the project and goes back to the project (like deleting the tab, making a new one and going back to the project) then the variable wouldn't be the same as what they set. It resets.
it's the principe of a variable. However, you can use cloud variables for this ! To create a clou variable, there is an option in the new variable menu :

(my scratch is put to french but it's the same as english)

However, remember that cloud variables can only store numbers, not letters or symbols.
To use them, there are a lot of tutorials on youtube.
--CHA0S--
Scratcher
100+ posts

Prevent lists from resetting

You could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.
UnscrambledEgg
Scratcher
100+ posts

Prevent lists from resetting

https://scratch.mit.edu/projects/995823775/
This is the project which I speak of, it already uses cloud variables.

Fluffygamer_ wrote:

UnscrambledEgg wrote:

(#4)

SpyCoderX wrote:

What do you mean? If you save the project, all variables and lists should be saved as well.
Well, if a player adds a new item to the list, leaves the project and goes back to the project (like deleting the tab, making a new one and going back to the project) then the variable wouldn't be the same as what they set. It resets.
it's the principe of a variable. However, you can use cloud variables for this ! To create a clou variable, there is an option in the new variable menu :

(my scratch is put to french but it's the same as english)

However, remember that cloud variables can only store numbers, not letters or symbols.
To use them, there are a lot of tutorials on youtube.
UnscrambledEgg
Scratcher
100+ posts

Prevent lists from resetting

--CHA0S-- wrote:

You could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.
This is hackable though
Malicondi
Scratcher
1000+ posts

Prevent lists from resetting

UnscrambledEgg wrote:

This is hackable though
So are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
Fluffygamer_
Scratcher
1000+ posts

Prevent lists from resetting

Malicondi wrote:

(#9)

UnscrambledEgg wrote:

This is hackable though
So are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.
MineTurte
Scratcher
1000+ posts

Prevent lists from resetting

Fluffygamer_ wrote:

Malicondi wrote:

(#9)

UnscrambledEgg wrote:

This is hackable though
So are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.
Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).
Fluffygamer_
Scratcher
1000+ posts

Prevent lists from resetting

MineTurte wrote:

(#11)

Fluffygamer_ wrote:

Malicondi wrote:

(#9)

UnscrambledEgg wrote:

This is hackable though
So are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.
Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).
It's not dangerous at all to make it, so I don't understand why ?
MineTurte
Scratcher
1000+ posts

Prevent lists from resetting

Fluffygamer_ wrote:

MineTurte wrote:

(#11)

Fluffygamer_ wrote:

Malicondi wrote:

(#9)

UnscrambledEgg wrote:

This is hackable though
So are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.
Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).
It's not dangerous at all to make it, so I don't understand why ?
I mean teaching people how to edit the JSON file
--CHA0S--
Scratcher
100+ posts

Prevent lists from resetting

UnscrambledEgg wrote:

--CHA0S-- wrote:

You could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.
This is hackable though
Not if you expose their username and not allow the process to continue if the username of the code doesn’t equal the players username
MineTurte
Scratcher
1000+ posts

Prevent lists from resetting

--CHA0S-- wrote:

UnscrambledEgg wrote:

--CHA0S-- wrote:

You could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.
This is hackable though
Not if you expose their username and not allow the process to continue if the username of the code doesn’t equal the players username
You can just change the username in the code _skull_
UnscrambledEgg
Scratcher
100+ posts

Prevent lists from resetting

Malicondi wrote:

UnscrambledEgg wrote:

This is hackable though
So are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
Interesting, I'll do that
Fluffygamer_
Scratcher
1000+ posts

Prevent lists from resetting

MineTurte wrote:

(#13)

Fluffygamer_ wrote:

MineTurte wrote:

(#11)

Fluffygamer_ wrote:

Malicondi wrote:

(#9)

UnscrambledEgg wrote:

This is hackable though
So are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.
Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).
It's not dangerous at all to make it, so I don't understand why ?
I mean teaching people how to edit the JSON file
I wasn't gonna teach it

Powered by DjangoBB