Discuss Scratch

Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

EVERYBODY, PLEASE READ THIS ENTIRE THING TO FULLY UNDERSTAND IT
These blocks would be used to download items to a new page on the scratch servers or the user’s computer. Examples: the value of variables, the values of lists, or text. Uses are: can be used to download files from an operating system simulator, can save game data and not lose progress, and other things. And these files will be locked to the user who download/ uploaded them so they can’t be used to make chat rooms or as a replacement for cloud variables. And so scratch doesn’t lag, it will transmit data 256 bytes a 1 tenth of a second. This is equivalent to the speed that cloud variables update.
download variable [ v] to [ v]
Lock file [ v] to []
download list [ v] to [ v]
download text [] to [ v]
upload file [ v] from [ v]
(upload file [ v] from [ v])
<file type is [ v]>
(file count uploaded to [ v])
(count of [ v] files on [ v])
(file [ v])
<file [ v] uploaded to [ v]?>
<file [ v] downloaded to [ v]?>
Edit: Thanks for replying to comments for me guys!

Last edited by Red_Firework (July 3, 2021 16:30:49)

The_Agent_J
Scratcher
100+ posts

New Blocks: Download blocks

May you please tell me where it gets saved? If it gets saved into the computer's files then no support because people can use it to download NSFS/W stuff onto your computer, if there is a section that would be added to scratch that would file everything that you saved/downloaded the support, as it can really help big platformers and other things you want to save.
dhuls
Scratcher
1000+ posts

New Blocks: Download blocks

You can't import videos into Scratch so the download video block shouldn't exist.
IMO, only the download text block would be a good idea, since the others can simply be downloaded by viewing inside.
CreatorBN
Scratcher
100+ posts

New Blocks: Download blocks

dhuls wrote:

You can't import videos into Scratch so the download video block shouldn't exist.
IMO, only the download text block would be a good idea, since the others can simply be downloaded by viewing inside.
Agree.
offtopic Also I just left this page and suddenly somebody comments on it, that was fast
b7_
New Scratcher
62 posts

New Blocks: Download blocks

This could be used to install malware and computer viruses. It would have to be a button and not a block, so that the project couldn't go like this:
when green flag clicked
download (computerirus.png)
CreatorBN
Scratcher
100+ posts

New Blocks: Download blocks

b7_ wrote:

This could be used to install malware and computer viruses. It would have to be a button and not a block, so that the project couldn't go like this:
when green flag clicked
download (computerirus.png)
Agree, I was worried for that too.
Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

The_Agent_J wrote:
May you please tell me where it gets saved? If it gets saved into the computer's files then no support because people can use it to download NSFS/W stuff onto your computer, if there is a section that would be added to scratch that would file everything that you saved/downloaded the support, as it can really help big platformers and other things you want to save.
In that case, I think only the download variables, lists, and text blocks should be implemented. And as in reply to your question, I was planning to download it to the user's computer, but I think your idea of saving the files to a new page of scratch is better.
The_Agent_J
Scratcher
100+ posts

New Blocks: Download blocks

Red_Firework wrote:

The_Agent_J wrote:
May you please tell me where it gets saved? If it gets saved into the computer's files then no support because people can use it to download NSFS/W stuff onto your computer, if there is a section that would be added to scratch that would file everything that you saved/downloaded the support, as it can really help big platformers and other things you want to save.
In that case, I think only the download variables, lists, and text blocks should be implemented. And as in reply to your question, I was planning to download it to the user's computer, but I think your idea of saving the files to a new page of scratch is better.
Alright, full support then. I feel like it would be really useful.
Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

The reason I came up with this idea was I'm making a o.s. simulator, and I'm trying to give it functional saving. Currently it encodes and saves the data to the cloud. This would help me a lot because I could save the user's files to scratch and there wouldn't be limited people with access to files.
dhuls
Scratcher
1000+ posts

New Blocks: Download blocks

One question. If there's download blocks shouldn't there be upload blocks?
download [filename.txt] [contents]::custom-arg // Plain Text Only, stored in a special location 
set [foo v] to (upload [filename.txt]::custom-arg)
Maybe the location could be
Windows: %USERPROFILE%\Documents\Scratch Downloads
%USERPROFILE% is usually C:\Users\
macOS: $HOME/Documents/Scratch Downloads
$HOME is usually /Users/
linearlemur
Scratcher
500+ posts

New Blocks: Download blocks

You should have a preview of what's going to be downloaded, and a confirmation box.
Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

linearlemur wrote:

You should have a preview of what's going to be downloaded, and a confirmation box.
What exactly do you mean?
dhuls
Scratcher
1000+ posts

New Blocks: Download blocks

Red_Firework wrote:

linearlemur wrote:

You should have a preview of what's going to be downloaded, and a confirmation box.
What exactly do you mean?
It would show the contents of what's about to be downloaded, and a yes or no option.
badilreal
Scratcher
100+ posts

New Blocks: Download blocks

there should be an nsfw scanner before putting an image to save
dhuls
Scratcher
1000+ posts

New Blocks: Download blocks

badilreal wrote:

there should be an nsfw scanner before putting an image to save
It would be better to just limit this to plain text. Also, an image scanner would take a lot of time to implement and it could be easily worked around (splitting it into multiple images, low res, etc.).
DJUmbreon2
Scratcher
100+ posts

New Blocks: Download blocks

Red_Firework wrote:

These blocks would be used to download items to a new page on the scratch servers or the user’s computer. Examples: the value of variables, the values of lists, or text. Uses are: can be used to download files from an operating system simulator, can save game data and not lose progress, and other things. And these files will be locked to the user who download/ uploaded them so they can’t be used to make chat rooms or as a replacement for cloud variables. And so scratch doesn’t lag, it will transmit data 256 bytes a 1 tenth of a second. This is equivalent to the speed that cloud variables update.
download variable [ v] to [ v] :: list
Lock file [ v] to [] :: list
download list [ v] to [ v] :: list
download text [] to [ v] :: list
upload file [ v] from [ v] :: list
(upload file [ v] from [ v] :: list)
<file type is [ v] :: sensing>
(file count uploaded to [ v] :: sensing)
(count of [ v] files on [ v]:: sensing )
(file [ v] :: list)
<file [ v] uploaded to [ v]? :: list >
<file [ v] downloaded to [ v]? :: list >
Where the h3ll will everything go!
Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

DJUmbreon2 wrote:

Red_Firework wrote:

These blocks would be used to download items to a new page on the scratch servers or the user’s computer. Examples: the value of variables, the values of lists, or text. Uses are: can be used to download files from an operating system simulator, can save game data and not lose progress, and other things. And these files will be locked to the user who download/ uploaded them so they can’t be used to make chat rooms or as a replacement for cloud variables. And so scratch doesn’t lag, it will transmit data 256 bytes a 1 tenth of a second. This is equivalent to the speed that cloud variables update.
download variable [ v] to [ v] :: list
Lock file [ v] to [] :: list
download list [ v] to [ v] :: list
download text [] to [ v] :: list
upload file [ v] from [ v] :: list
(upload file [ v] from [ v] :: list)
<file type is [ v] :: sensing>
(file count uploaded to [ v] :: sensing)
(count of [ v] files on [ v]:: sensing )
(file [ v] :: list)
<file [ v] uploaded to [ v]? :: list >
<file [ v] downloaded to [ v]? :: list >
Where the h3ll will everything go!
You can choose between the user's computer or the scratch servers (the ones that host this website).
Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

Hello, I’m just making this post to bump up my topic.

Last edited by Red_Firework (June 16, 2021 15:55:18)

Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

Red_Firework wrote:

Hello, I’m just making this post to bump up my topic.
Red_Firework
Scratcher
100+ posts

New Blocks: Download blocks

Bump

Powered by DjangoBB