Discuss Scratch

974625sdn
New Scratcher
28 posts

Update on Cloud variables

rosiechicken wrote:

I want to have more than ten cloud variables in a project.
no.
Gravitation
Scratcher
100+ posts

Update on Cloud variables

Forgive my ignorance, but what is the status of cloud strings and lists?
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

Gravitation wrote:

Forgive my ignorance, but what is the status of cloud strings and lists?
Yeah, same. I'd like to know when I can create more advanced projects with cloud data.
SilverEagle
Scratcher
500+ posts

Update on Cloud variables

All I want is cloud strings, lists, and no limit in each project.
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
Firedrake969
Scratcher
1000+ posts

Update on Cloud variables

cwrivera99 wrote:

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
You can already encode negative numbers w/o the dash
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

Firedrake969 wrote:

cwrivera99 wrote:

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
You can already encode negative numbers w/o the dash
I'm not going to use it for negative numbers. I know how to encode them. I just want to use the - symbol to create separated strings. It's my special data storage format.
TM_
Scratcher
1000+ posts

Update on Cloud variables

But you also can already encode seperate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

TM_ wrote:

But you also can already encode seperate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
I'm looking to separate numbers from other numbers, not letters from other letters. Although I think I've found a different way of doing it- I'm gonna use binary code.

Last edited by cwrivera99 (Oct. 23, 2013 17:03:17)

Nathanator1416J
Scratcher
100+ posts

Update on Cloud variables

cwrivera99 wrote:

TM_ wrote:

But you also can already encode separate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
I'm looking to separate numbers from other numbers, not letters from other letters. Although I think I've found a different way of doing it- I'm gonna use binary code.
This is kind of inefficient, isn't it???? You could just do what he said, and encode using two digit numbers, or if you want small code, use unary with ending zeros (Then keep looping through the 1s till you find an end 0, then find that item in a list of characters (Or numbers, all the same), and repeat until you're finished decoding the variable. But binary??? Not only does it not have high compression ratios, its code would have to read each binary code, and convert it to decimal so you could calculate what character of the string you wanted.

Last edited by Nathanator1416J (Oct. 23, 2013 22:46:58)

19f8361
Scratcher
500+ posts

Update on Cloud variables

cwrivera99 wrote:

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
yes
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

Nathanator1416J wrote:

cwrivera99 wrote:

TM_ wrote:

But you also can already encode separate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
I'm looking to separate numbers from other numbers, not letters from other letters. Although I think I've found a different way of doing it- I'm gonna use binary code.
This is kind of inefficient, isn't it???? You could just do what he said, and encode using two digit numbers, or if you want small code, use unary with ending zeros (Then keep looping through the 1s till you find an end 0, then find that item in a list of characters (Or numbers, all the same), and repeat until you're finished decoding the variable. But binary??? Not only does it not have high compression ratios, its code would have to read each binary code, and convert it to decimal so you could calculate what character of the string you wanted.
I said I didn't need letters. I just need numbers.

Last edited by cwrivera99 (Oct. 23, 2013 22:56:23)

19f8361
Scratcher
500+ posts

Update on Cloud variables

cwrivera99 wrote:

Nathanator1416J wrote:

cwrivera99 wrote:

TM_ wrote:

But you also can already encode separate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
I'm looking to separate numbers from other numbers, not letters from other letters. Although I think I've found a different way of doing it- I'm gonna use binary code.
This is kind of inefficient, isn't it???? You could just do what he said, and encode using two digit numbers, or if you want small code, use unary with ending zeros (Then keep looping through the 1s till you find an end 0, then find that item in a list of characters (Or numbers, all the same), and repeat until you're finished decoding the variable. But binary??? Not only does it not have high compression ratios, its code would have to read each binary code, and convert it to decimal so you could calculate what character of the string you wanted.
I said I didn't need letters. I just need numbers.
can't do letters, will set to 0
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

19f8361 wrote:

cwrivera99 wrote:

Nathanator1416J wrote:

cwrivera99 wrote:

TM_ wrote:

But you also can already encode separate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
I'm looking to separate numbers from other numbers, not letters from other letters. Although I think I've found a different way of doing it- I'm gonna use binary code.
This is kind of inefficient, isn't it???? You could just do what he said, and encode using two digit numbers, or if you want small code, use unary with ending zeros (Then keep looping through the 1s till you find an end 0, then find that item in a list of characters (Or numbers, all the same), and repeat until you're finished decoding the variable. But binary??? Not only does it not have high compression ratios, its code would have to read each binary code, and convert it to decimal so you could calculate what character of the string you wanted.
I said I didn't need letters. I just need numbers.
can't do letters, will set to 0
You can do letters using a double encoding system.
Nathanator1416J
Scratcher
100+ posts

Update on Cloud variables

cwrivera99 wrote:

Nathanator1416J wrote:

cwrivera99 wrote:

TM_ wrote:

But you also can already encode separate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
I'm looking to separate numbers from other numbers, not letters from other letters. Although I think I've found a different way of doing it- I'm gonna use binary code.
This is kind of inefficient, isn't it???? You could just do what he said, and encode using two digit numbers, or if you want small code, use unary with ending zeros (Then keep looping through the 1s till you find an end 0, then find that item in a list of characters (Or numbers, all the same), and repeat until you're finished decoding the variable. But binary??? Not only does it not have high compression ratios, its code would have to read each binary code, and convert it to decimal so you could calculate what character of the string you wanted.
I said I didn't need letters. I just need numbers.
still, it could be done more efficiently. For example, a format like:
———————————————————————————————————–
9 | 09 | 1 | 12
Parse Key | Data block | If 2, then end of number. | Data block
So no 0 beginnings | | If 3, then end of list |
———————————————————————————————————–

—————————————————————————————————-
| 2 | 07 | 3 |
| If 2, then end of number | Data block | If 2, then end of number |
| If 3, then end of list | | If 3, then end of list |
—————————————————————————————————

So that the final inputted number into the cloud var is: 9091122073
Representing the number list of 912 and 7

See how simpler it could be???

Last edited by Nathanator1416J (Oct. 23, 2013 23:18:14)

cwrivera99
Scratcher
500+ posts

Update on Cloud variables

Nathanator1416J wrote:

cwrivera99 wrote:

Nathanator1416J wrote:

cwrivera99 wrote:

TM_ wrote:

But you also can already encode separate strings That's how my high-score-list in seesaw balance works. In my method i use lists, which are used to code and encode. the list has less than 100 items, so always 2 numbers are joined to one and then it looks for this item. But when you have a 00 you can't encode it to the sing which is in the 0th item of the list. So it knows, when there is a 00, it has to be something new
I'm looking to separate numbers from other numbers, not letters from other letters. Although I think I've found a different way of doing it- I'm gonna use binary code.
This is kind of inefficient, isn't it???? You could just do what he said, and encode using two digit numbers, or if you want small code, use unary with ending zeros (Then keep looping through the 1s till you find an end 0, then find that item in a list of characters (Or numbers, all the same), and repeat until you're finished decoding the variable. But binary??? Not only does it not have high compression ratios, its code would have to read each binary code, and convert it to decimal so you could calculate what character of the string you wanted.
I said I didn't need letters. I just need numbers.
still, it could be done more efficiently. For example, a format like:
———————————————————————————————————–
9 | 09 | 1 | 12
Parse Key | Data block | If 2, then end of number. | Data block
So no 0 beginnings | | If 3, then end of list |
———————————————————————————————————–

—————————————————————————————————-
| 2 | 07 | 3 |
| If 2, then end of number | Data block | If 2, then end of number |
| If 3, then end of list | | If 3, then end of list |
—————————————————————————————————

So that the final inputted number into the cloud var is: 9091122073
Representing the number list of 912 and 7

See how simpler it could be???
I didn't get that… Can you put it in scratchblocks?
Firedrake969
Scratcher
1000+ posts

Update on Cloud variables

cwrivera99 wrote:

Firedrake969 wrote:

cwrivera99 wrote:

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
You can already encode negative numbers w/o the dash
I'm not going to use it for negative numbers. I know how to encode them. I just want to use the - symbol to create separated strings. It's my special data storage format.
Then package them with a maximum length!

Though I agree… or use spaces or dots (.) or something. However, as I understand, multiple - or . or " ' are considered strings.
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

Firedrake969 wrote:

cwrivera99 wrote:

Firedrake969 wrote:

cwrivera99 wrote:

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
You can already encode negative numbers w/o the dash
I'm not going to use it for negative numbers. I know how to encode them. I just want to use the - symbol to create separated strings. It's my special data storage format.
Then package them with a maximum length!

Though I agree… or use spaces or dots (.) or something. However, as I understand, multiple - or . or " ' are considered strings.
Spaces or periods don't work. ONLY numbers are accepted- no exceptions.

Define [String] Contains Unaccepted Characters?
Delete (all v) of [AcceptChar v]
Set [Counter v] to [0]
Repeat (10)
Add (Counter) to [AcceptChar v]
Change [Counter v] by (1)
End
Set [Output v] to [False]
Set [Counter v] to [0]
Repeat (Length of (String))
Change [Counter v] by (1)
If <Not <[AcceptChar v] Contains (Letter (Counter) of (String))
Set [Output v] to [True]
End
End

Last edited by cwrivera99 (Oct. 24, 2013 00:14:13)

Nathanator1416J
Scratcher
100+ posts

Update on Cloud variables

cwrivera99 wrote:

Firedrake969 wrote:

cwrivera99 wrote:

Firedrake969 wrote:

cwrivera99 wrote:

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
You can already encode negative numbers w/o the dash
I'm not going to use it for negative numbers. I know how to encode them. I just want to use the - symbol to create separated strings. It's my special data storage format.
Then package them with a maximum length!

Though I agree… or use spaces or dots (.) or something. However, as I understand, multiple - or . or " ' are considered strings.
Spaces or periods don't work. ONLY numbers are accepted- no exceptions.

Define [String] Contains Unaccepted Characters?
Delete (all v) of [AcceptChar v]
Set [Counter v] to [0]
Repeat (10)
Add (Counter) to [AcceptChar v]
Change [Counter v] by (1)
End
Set [Output v] to [False]
Set [Counter v] to [0]
Repeat (Length of (String))
Change [Counter v] by (1)
If <Not <[AcceptChar v] Contains (Letter (Counter) of (String))
Set [Output v] to [True]
End
End
by the way, this is what I meant:
http://scratch.mit.edu/projects/13543102/
cwrivera99
Scratcher
500+ posts

Update on Cloud variables

Nathanator1416J wrote:

cwrivera99 wrote:

Firedrake969 wrote:

cwrivera99 wrote:

Firedrake969 wrote:

cwrivera99 wrote:

SilverEagle wrote:

All I want is cloud strings, lists, and no limit in each project.
That's asking a lot, especially since cloud data is still being tested. All I want is to be able to do is to encode negative numbers using the dash character (-). This may seem like a small step, but I plan to do MUCH more than encode negative numbers with this character… I'm going to use it to create separated strings.
You can already encode negative numbers w/o the dash
I'm not going to use it for negative numbers. I know how to encode them. I just want to use the - symbol to create separated strings. It's my special data storage format.
Then package them with a maximum length!

Though I agree… or use spaces or dots (.) or something. However, as I understand, multiple - or . or " ' are considered strings.
Spaces or periods don't work. ONLY numbers are accepted- no exceptions.

Define [String] Contains Unaccepted Characters?
Delete (all v) of [AcceptChar v]
Set [Counter v] to [0]
Repeat (10)
Add (Counter) to [AcceptChar v]
Change [Counter v] by (1)
End
Set [Output v] to [False]
Set [Counter v] to [0]
Repeat (Length of (String))
Change [Counter v] by (1)
If <Not <[AcceptChar v] Contains (Letter (Counter) of (String))
Set [Output v] to [True]
End
End
by the way, this is what I meant:
http://scratch.mit.edu/projects/13543102/
Oh, okay. But I already made my project.

Powered by DjangoBB