Discuss Scratch

LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

In my game scratch but Roblox you can sign in, and create usernames and passwords. the code adds it to the list, however, if this item wasn't added by me while I was editing the game, it wont save once you go back to the game, therefore deleting that account. How do I fix this?

My game to reference off of: https://scratch.mit.edu/projects/751416517/
GIitchInTheMatrix
Scratcher
1000+ posts

How Do I Make A UserName And Password Saving System?

First, become a Scratcher, than you need to use cloud variables, which are stored in the server. Lists are reset when you leave the project.
LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

Im just posting on my alt, Im a scratcher on my main, and will be a scratcher here in like 2 days.
GIitchInTheMatrix
Scratcher
1000+ posts

How Do I Make A UserName And Password Saving System?

Than follow that tutorial with your main, the encoding part in particular. Note, freely typing in cloud variables and encoding isn’t allowed, there has to be some limits

Last edited by GIitchInTheMatrix (Nov. 10, 2022 16:09:12)

LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

what tutorial? I dont see one
GIitchInTheMatrix
Scratcher
1000+ posts

How Do I Make A UserName And Password Saving System?

LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

ok thanks
EggDOG_MyNAME--Jeff
Scratcher
100+ posts

How Do I Make A UserName And Password Saving System?

There is also a 256 character limit in cloud variables. However, if you were to use turbowarp.org then you will be able to store tens of thousands of characters in the cloud variables. However, the cloud variables are reset often, as they would take up all of the space in the servers.

If you want a user's data to be saved, I suggest using save codes, since they don't require cloud variables and can be considerably long.
LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

Thanks, but im trying to avoid using save codes, as it would require me to save every singles game data, (I plan to add a lot) which would then not necessarily be easy to save, rather than just keeping your data under your username, which if I am able to fix this problem, I should be able to do.
EggDOG_MyNAME--Jeff
Scratcher
100+ posts

How Do I Make A UserName And Password Saving System?

I guess there is no harm in trying, but at some point the space will mostly likely run out.
LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

Ok, thank you, though I hope it works.
Jareddddddd
Scratcher
1000+ posts

How Do I Make A UserName And Password Saving System?

LukeL245992 wrote:

Thanks, but im trying to avoid using save codes, as it would require me to save every singles game data, (I plan to add a lot) which would then not necessarily be easy to save, rather than just keeping your data under your username, which if I am able to fix this problem, I should be able to do.
you can actually encrpyt the data inside the save/load variable. Take basically any save code for example. You probably can read it, with some knowledge of the game, but then you can scramble it, segment it to become much less human-friendly.
Ex
a = hwhhws
b = hb2ba2
c = 92912c
so on. As long as all the scrambles are the same length, you can always detect when a string starts and ends. Ill make an example project.
LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

Is there any way to “create” a cloud list? for example storing data on the cloud with variables and sending it to a list so you can sign in once you want to play? Also, I'm a scratcher on this account now
Loganmcc04
Scratcher
100+ posts

How Do I Make A UserName And Password Saving System?

LukeL245992 wrote:

Is there any way to “create” a cloud list? for example storing data on the cloud with variables and sending it to a list so you can sign in once you want to play? Also, I'm a scratcher on this account now
You could remix a cloud list project and continue from there. Make sure you give credit to the creators though.
deck26
Scratcher
1000+ posts

How Do I Make A UserName And Password Saving System?

But are you aware that each project only has 10 cloud variables of max 256 digits each? Encoding a username will normally need 2 digits per character so this does limit things. A save code is much less limited and I don't understand your comment about having to ‘save every singles game data’. Which method is best is up to you but you do need to be aware of the cloud data limits.
LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

So would I be able to encode data into a cloud variable, then turn it back into normal data and place it into the list once a player plays? Also, having “the data of every game” is that I'm making a Roblox parody game, so you will be able to play multiple things. Except for the things like platformers, they will need to save your data and just keeping basic settings for you not even playing the game yet I will need to store, so do you know the limit to save codes, and how far they can go before they cannot work anymore?
deck26
Scratcher
1000+ posts

How Do I Make A UserName And Password Saving System?

Since you can export an entire list there is no real limit to save codes since that method is an option. Of course you can convert cloud data into a list but it sounds to me as if you have too much data per player to really make this an option. How many digits would you need per player to save all the data for them?
LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

I would need a maximum of 37 digits per player, but it would probably average at 22. Also ,Is there any way to get more than 10 cloud variables?

Last edited by LukeL245992 (Nov. 11, 2022 15:20:29)

GIitchInTheMatrix
Scratcher
1000+ posts

How Do I Make A UserName And Password Saving System?

LukeL245992 wrote:

I would need 37 digits per player. Is there any way to get more than 10 cloud variables?
Nope. Try using ScratchAttach and a 3rd party server.

Last edited by GIitchInTheMatrix (Nov. 11, 2022 15:11:05)

LukeL245992
Scratcher
12 posts

How Do I Make A UserName And Password Saving System?

ok

Powered by DjangoBB