Discuss Scratch

MeIzAwezomeDede
Scratcher
1000+ posts

What happens if I exceed the 5mb .json limit?

I've been working on a project for 3 months now, and I decided to look at the .json file size. Should I be looking at the “compressed size” or just “size?” Assuming that I should be looking at “size,” this means I hardly have any room left to add blocks into my project which is not a good thing.
As far as I'm aware though, if I do exceed the 5mb limit it only prevents me from uploading/saving the project on Scratch but I can still work on the project using TurboWarp's offline editor, but that's still an option I'd want to avoid since I really want to upload the project to Scratch.

Also, another thing, I haven't even added half the stuff I want to yet so I don't know if its possible to not reach the limit (which means trying to optimize code to use the least amount of blocks as possible won't do much in the long run (although its fairly optimized already))
Flowermanvista
Scratcher
1000+ posts

What happens if I exceed the 5mb .json limit?

MeIzAwezomeDede wrote:

Should I be looking at the “compressed size” or just “size?” Assuming that I should be looking at “size,” this means I hardly have any room left to add blocks into my project which is not a good thing.
You should look at “size”.

MeIzAwezomeDede wrote:

As far as I'm aware though, if I do exceed the 5mb limit it only prevents me from uploading/saving the project on Scratch but I can still work on the project using TurboWarp's offline editor, but that's still an option I'd want to avoid since I really want to upload the project to Scratch.
This is correct.

Also, @Vadik1 made a project.json compressor that can reduce its size pretty substantially. You can find that here.

Last edited by Flowermanvista (May 9, 2022 14:23:06)

MeIzAwezomeDede
Scratcher
1000+ posts

What happens if I exceed the 5mb .json limit?

Flowermanvista wrote:

Also, @Vadik1 made a project.json compressor that can reduce its size pretty substantially. You can find that here.
Alright, I'll have to check that link out when I get home from school (since Github is blocked on School computers) and I'll have to say what the size has compressed to later
I'm also assuming after the .json size is compressed, I'll be able to upload the compressed version back onto Scratch (again, unable to look at the link yet so I don't know if that is true or not)
Thanks
MeIzAwezomeDede
Scratcher
1000+ posts

What happens if I exceed the 5mb .json limit?

Welp, it only decreased the file size by 1mb. This sounds good, but with this size I'm gonna end up hitting the .json limit later on anyways. I guess that means I'm switching the project over to TurboWarp, which is a shame since now I can't upload the project to Scratch. (Although it might be possible to create a project with a link to a github page of my game, which I think would be allowed, but I would need to figure out how github works first)

Powered by DjangoBB