Discuss Scratch

PintOfMilk
Scratcher
1000+ posts

sb2 and .zip JSON size limit

I now know that the size limit for Scratch is 2.5MB (JSON)
I converted my SB2 file to .Zip
I opened my game up it is 1 426 014 big (on 7-ZIP) however when it is compressed it is 159 952 big

Is it near 0.2MB or 1.4MB big on the JSON size
_nix
Scratcher
1000+ posts

sb2 and .zip JSON size limit

I'm not sure what you mean by “compressed”? It might be the case that the JSON file is not being minified by the 2.0 editor (i.e. it has unnecessary whitespace), so the file that is saved on Scratch's servers is bigger than it needs to be. I'm also fairly certain that JSON files themselves are stored on the Scratch servers just as text files, not compressed with something like zip.

art blog – My pronouns are they/them, btw. sparrows one word to the paragraph
PintOfMilk
Scratcher
1000+ posts

sb2 and .zip JSON size limit

_nix wrote:

I'm not sure what you mean by “compressed”? It might be the case that the JSON file is not being minified by the 2.0 editor (i.e. it has unnecessary whitespace), so the file that is saved on Scratch's servers is bigger than it needs to be. I'm also fairly certain that JSON files themselves are stored on the Scratch servers just as text files, not compressed with something like zip.
When I used the link to get a JSON of a file it was around 1.4MB.
Do you know anyway to increase it?
https://scratch.mit.edu/discuss/topic/293933/ I've added a suggestion.

Last edited by PintOfMilk (March 5, 2018 19:50:09)

Sigton
Scratcher
1000+ posts

sb2 and .zip JSON size limit

2.5MB isn't that small, my largest project is only 432KB.

Sigton

Rubiks Cube Personal Best: 9.73 seconds | 13,700+ posts

PintOfMilk
Scratcher
1000+ posts

sb2 and .zip JSON size limit

Sigton wrote:

2.5MB isn't that small, my largest project is only 432KB.

Sigton
Mine is 3.2MB and 1.3MB are scripts

Powered by DjangoBB

Standard | Mobile