Discuss Scratch

ForumHelperNanoPiex
Scratcher
500+ posts

.scratch

There should be a .scratch ending tag like gifs. Using our coding knowledge we will make this happen.
Want to join? Go here: dooopdeeeeeedooooooooooo

Last edited by ForumHelperNanoPiex (Aug. 17, 2021 23:46:00)

-gge
Scratcher
1000+ posts

.scratch

the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already exist

what would the .scratch tag even do
hello_smile
Scratcher
1000+ posts

.scratch

It would be a gTLD.
dhuls
Scratcher
1000+ posts

.scratch

.scratch already exists. It's used for projects made in Pre-1.0 versions of Scratch (14Feb04-27Jul06).
-gge
Scratcher
1000+ posts

.scratch

hello_smile wrote:

It would be a gTLD.

ForumHelperNanoPiex wrote:

There should be a .scratch ending tag like gifs
it's a file format probably
confusing
e
sdiuasfrhwe7s9ur9wer
ForumHelperNanoPiex
Scratcher
500+ posts

.scratch

-gge wrote:

the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already exist

what would the .scratch tag even do
It would show that something was made on Scratch!

hello_smile wrote:

It would be a gTLD.
Nope, it's a new ending tag, for scratchers, by scratchers.

dhuls wrote:

.scratch already exists. It's used for projects made in Pre-1.0 versions of Scratch (14Feb04-27Jul06).
Correct, but it's quite hard to use that for today's projects.

-gge wrote:

hello_smile wrote:

It would be a gTLD.

ForumHelperNanoPiex wrote:

There should be a .scratch ending tag like gifs
it's a file format probably
confusing
e
sdiuasfrhwe7s9ur9wer
That's the word.
Sheep_maker
Scratcher
1000+ posts

.scratch

File extensions can be anything; they're only determined by convention. Sometimes this leads to conflicts, like .ts being used both for video and TypeScript

Using file extensions to determine the file type was originally a Windows convention, I think; Unix prefers using magic bytes at the start of the file, and the web uses MIME types. But most computers made for the common user now use file extensions to determine the icon and default application to use probably because it's easier than having developers have to register their magic bytes for every platform, and also some files types are essentially the same but are intended to be read by different programs (for example, .svg in an image viewer, but .html in a browser, or .zip in a unzipping program, but .sb3 in the Scratch Desktop Editor, etc.)
dhuls
Scratcher
1000+ posts

.scratch

ForumHelperNanoPiex wrote:

-gge wrote:

the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already exist

what would the .scratch tag even do
It would show that something was made on Scratch!
That's what .sb .sb2 .sb3 .sprite .sprite2 and .sprite3 already do.
-gge
Scratcher
1000+ posts

.scratch

ForumHelperNanoPiex wrote:

It would show that something was made on Scratch!
the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already do that
what purpose would this serve
ForumHelperNanoPiex
Scratcher
500+ posts

.scratch

-gge wrote:

ForumHelperNanoPiex wrote:

It would show that something was made on Scratch!
the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already do that
what purpose would this serve
It would bind all of those together.
ForumHelperNanoPiex
Scratcher
500+ posts

.scratch

NOW ON GitHub!
Sheep_maker
Scratcher
1000+ posts

.scratch

I made a .scratch file; here's a download link that downloads a zip, which contains the .scratch file.
dhuls
Scratcher
1000+ posts

.scratch

ForumHelperNanoPiex wrote:

-gge wrote:

ForumHelperNanoPiex wrote:

It would show that something was made on Scratch!
the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already do that
what purpose would this serve
It would bind all of those together.
That would only cause errors, especially since 2.0 and 3.0 can't read .sprite files, and while 0.x and 1.x might think they are 0.x projects, they might be 3.0 projects, and cause errors.
Also, there's no distinction between projects and sprites.
Sheep_maker
Scratcher
1000+ posts

.scratch

dhuls wrote:

ForumHelperNanoPiex wrote:

-gge wrote:

ForumHelperNanoPiex wrote:

It would show that something was made on Scratch!
the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already do that
what purpose would this serve
It would bind all of those together.
That would only cause errors, especially since 2.0 and 3.0 can't read .sprite files, and while 0.x and 1.x might think they are 0.x projects, they might be 3.0 projects, and cause errors.
Also, there's no distinction between projects and sprites.
iirc Scratch doesn't use the file name to distinguish between .sb, .sb2, and .sb3. It tries to unzip it, and if it's successful, it tries to validate the project.json as an .sb3, and if the validation fails, it tries validating it as an .sb2; if it's not unzippable, then it'll try loading it as an .sb.

Presumably, this can be extended for the sprite files. Apparently .sprite3 files and .sprite2 files are the same as their project file counterparts except they have a sprite.json file instead of project.json. I would assume that a .sprite and .sb file can also be distinguished from each other.

Edit: package.json -> project.json; yes, Node has exerted its influence on me

Last edited by Sheep_maker (Aug. 20, 2021 04:18:55)

kccuber
Scratcher
1000+ posts

.scratch

Sheep_maker wrote:

package.json

Sheep_maker wrote:

package.json
Did you mean project.json? when u too into node apps and stuff and say package.json by mistake
hello_smile
Scratcher
1000+ posts

.scratch

If you are on Windows, add .scratch to the file extension list that .sb3 is in with regedit. Then, .scratch will work. Then use regex to rename every .sb3 to .scratch .
ScratchCatHELLO
Scratcher
1000+ posts

.scratch

y tho
ForumHelperNanoPiex
Scratcher
500+ posts

.scratch

ScratchCatHELLO wrote:

y tho

ForumHelperNanoPiex wrote:

-gge wrote:

the .sb, .sb2, .sb3, .sprite, .sprite2, and .sprite3 tags already exist

what would the .scratch tag even do
It would show that something was made on Scratch!

hello_smile wrote:

It would be a gTLD.
Nope, it's a new ending tag, for scratchers, by scratchers.

dhuls wrote:

.scratch already exists. It's used for projects made in Pre-1.0 versions of Scratch (14Feb04-27Jul06).
Correct, but it's quite hard to use that for today's projects.

-gge wrote:

hello_smile wrote:

It would be a gTLD.

ForumHelperNanoPiex wrote:

There should be a .scratch ending tag like gifs
it's a file format probably
confusing
e
sdiuasfrhwe7s9ur9wer
That's the word.
ScratchCatHELLO
Scratcher
1000+ posts

.scratch

why not just use an existing format
ScratchCatHELLO
Scratcher
1000+ posts

.scratch

an editor that could edit any format would be cool, if that’s what you mean

Powered by DjangoBB