Discuss Scratch

ratchetyclank
Scratcher
100+ posts

How do I make a cloud saving system?

I want to make a system where it saves a user's process then when they open the project again the progress will be be there
footsocktoe
Scratcher
1000+ posts

How do I make a cloud saving system?

ratchetyclank wrote:

I want to make a system where it saves a user's process then when they open the project again the progress will be be there

Exactly how you do it would depend on what the project was and what you were saving, but however you do it some cloud variables will be used.
ratchetyclank
Scratcher
100+ posts

How do I make a cloud saving system?

footsocktoe wrote:

ratchetyclank wrote:

I want to make a system where it saves a user's process than when they open the project again the progress will be be there

Exactly how you do it would depend on what the project was and what you were saving, but however you do it some cloud variables will be used.
I want it to save their coins(also a variable) so when they get back they will have the same amount as they had before, to start off
Scratch-Minion
Scratcher
1000+ posts

How do I make a cloud saving system?

You will need to save the users name as well as the number of coins.
As cloud data can only hold numbers you will need to encode their user names into numbers (roughly corresponding to letters of the alphabet, but with extra characters for numbers, _, - etc) to store them, then decode them when you retrieve them.

You can use an existing cloud list engine or cloud data engine.
See the wiki https://wiki.scratch.mit.edu/wiki/Cloud_Data which refers to two example engines https://scratch.mit.edu/projects/22003344/ and https://scratch.mit.edu/projects/10096959/
MineLox92Videos
Scratcher
100+ posts

How do I make a cloud saving system?

if <[Users? v] contains (username) ?> then 


replace item (1 v) of [Save v] with (Coins) // Supposing item 1 is the coin file.
else
add (Coins) to [Save v]
end

I might be wrong.

Last edited by MineLox92Videos (Aug. 6, 2017 18:26:03)

TheArcadeGuy
Scratcher
100+ posts

How do I make a cloud saving system?

MineLox92Videos wrote:

if <[Users? v] contains (username) ?> then 


replace item (1 v) of [Save v] with (Coins) // Supposing item 1 is the coin file.
else
add (Coins) to [Save v]
end

I might be wrong.
Unless there is going to be cloud data decoding scripts above your if/else script, yes you would be wrong. Lists are NOT saved in the cloud, as they are local only value that can be edited, but not saved.

For @ratchetyclank
The whole cloud list topic is very simple, once you get to learn it, especially since you are only trying to encode usernames and coin values. To read up about it, view this wiki page, https://wiki.scratch.mit.edu/wiki/Simple_Username_Cloud_List

The wiki shows a Case sensitive cloud list engine, which isn't essential, and is a lot more complex to code, so a much simpler cloud list could be made. If you would like, I can help you with coding the actual list (I've made many cloud lists before). I can go over the scripts needed (if you want) in this topic (or I could just make a cloud list that you can use).

(0 .0)
- TheArcadeGuy
-Fornax-
Scratcher
100+ posts

How do I make a cloud saving system?

https://scratch.mit.edu/projects/117383829/ This project was made on my old acc, which has a cloud list.If u use it, plz credit @tommy_100
TheArcadeGuy
Scratcher
100+ posts

How do I make a cloud saving system?

-Fornax- wrote:

https://scratch.mit.edu/projects/117383829/ This project was made on my old acc, which has a cloud list.If u use it, plz credit @tommy_100
Hello, your cloud list seems to be quite messy and is formatted to fit your raffle project. This would require almost an entire rewrite of the scripts, which would make it complicated for @ratchetyclank.

I will post some simple cloud list scripts soon.


Last edited by TheArcadeGuy (Aug. 7, 2017 05:58:04)

-Fornax-
Scratcher
100+ posts

How do I make a cloud saving system?

TheArcadeGuy wrote:

-Fornax- wrote:

https://scratch.mit.edu/projects/117383829/ This project was made on my old acc, which has a cloud list.If u use it, plz credit @tommy_100
Hello, your cloud list seems to be quite messy and is formatted to fit your raffle project. This would require almost an entire rewrite of the scripts, which would make it complicated for @ratchetyclank.

I will post some simple cloud list scripts soon.


all i was saying was to ask @Tommy_100 because he made one that worked for me. I doesn't mean this guy has to use mine x)
MineLox92Videos
Scratcher
100+ posts

How do I make a cloud saving system?

TheArcadeGuy wrote:

MineLox92Videos wrote:

if <[Users? v] contains (username) ?> then 


replace item (1 v) of [Save v] with (Coins) // Supposing item 1 is the coin file.
else
add (Coins) to [Save v]
end

I might be wrong.
Unless there is going to be cloud data decoding scripts above your if/else script, yes you would be wrong. Lists are NOT saved in the cloud, as they are local only value that can be edited, but not saved.

For @ratchetyclank
The whole cloud list topic is very simple, once you get to learn it, especially since you are only trying to encode usernames and coin values. To read up about it, view this wiki page, https://wiki.scratch.mit.edu/wiki/Simple_Username_Cloud_List

The wiki shows a Case sensitive cloud list engine, which isn't essential, and is a lot more complex to code, so a much simpler cloud list could be made. If you would like, I can help you with coding the actual list (I've made many cloud lists before). I can go over the scripts needed (if you want) in this topic (or I could just make a cloud list that you can use).

(0 .0)
- TheArcadeGuy
My bad.
santafemodeltrains
Scratcher
1 post

How do I make a cloud saving system?

This is @TheArcadeGuy, I have the list on this account.

Last edited by santafemodeltrains (Aug. 7, 2017 16:42:30)

TheArcadeGuy
Scratcher
100+ posts

How do I make a cloud saving system?

Here is the Cloud List: https://scratch.mit.edu/projects/170687176/

I posted it on my old account. I made it to fit your game and all you need to do is to put the cloud list sprite in your backpack and then drag it into your project. If you have anymore questions, just ask me!

Last edited by TheArcadeGuy (Aug. 8, 2017 02:23:46)

Jcoder988
Scratcher
45 posts

How do I make a cloud saving system?

Question:
How do you make a save code but adding with money + name + customers + checkouts + level + xp
I'm making a shop manager game you see.

define Jcoder9888
say [I am a coder] for (2) secs
say [I am famous] for (2) secs
say [Follow me!] for (2) secs
Kraken_Games
Scratcher
100+ posts

How do I make a cloud saving system?

Jcoder988 wrote:

Question:
How do you make a save code but adding with money + name + customers + checkouts + level + xp
I'm making a shop manager game you see.

define Jcoder9888
say [I am a coder] for (2) secs
say [I am famous] for (2) secs
say [Follow me!] for (2) secs

Please don't necropost or blockspam.

Create your own topic and more people will come to help.
Bookmaster51
Scratcher
100+ posts

How do I make a cloud saving system?

I have been searching for the correct way to make a save system where when people enter my game, they will automatically receive all of their data.
Thanks!
codeman1044
Scratcher
1000+ posts

How do I make a cloud saving system?

No need to thank a topic from 2017 though. Please avoid necroposting.
SpinningCube
Scratcher
100+ posts

How do I make a cloud saving system?

a simple solution would be to generate a string of text that contains save data within it, as an alternative.

However, a full cloud system requires:
- a text encoder and decoder
- a cloud list system
- storing the username in the cloud list along with all the data
codeman1044
Scratcher
1000+ posts

How do I make a cloud saving system?

Please don't necropost.
xXsurvivalistXx
Scratcher
17 posts

How do I make a cloud saving system?

When I looked online, it says that to save your game, create a cloud variable, then on the backdrop, add the
 set [ (☁ cloud variable) v] to [whatever u want to save] 
. After that, you place a comment saying when the game stops then click this and save. I might be wrong because when I tried to save my progress, it wont save.

Last edited by xXsurvivalistXx (Aug. 27, 2019 00:54:25)

Powered by DjangoBB