Discuss Scratch

MrNanners
Scratcher
100+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

This is probably not advanced, so I'll be short.
I just need the numbers:
1. Costume limit?
2. Pen stamp limit?
3. Max characters in a normal variable?
4. Max characters in item of a list?
5. Max items in list?
6. Max integer limit? I discovered it: 2^1024 is the highest number
7. Max game file size? (.sb3)
8. Max costume file size? (say I load a 1250kb file using Turbowarp's HD Upload feature, will it work on Scratch?)
9. Max sound file size?
10. Max number of sounds?
I can't use the Wiki so I cant get the numbers from there.
Thanks

Last edited by MrNanners (Jan. 14, 2022 22:53:59)


That's about it, see yah.
My best and most helpful projects:
Savable Games Engine | Plants Vs. Zombies | Competitive Clicker Game
As a kid, John Lennon, member of the most successful band in history, the Beatles, said, “When I grow up, I want to be happy.” The teachers around him said that he didn't understand the question, but young John said that {the teachers} didn't understand life.
dhuls
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

1. theoretically infinite, but you would probably reach the project.json limit
2. infinite
3. idk, join block limit is 10240 i think
4. idk
5. 200,000
6. i think it's 1.7976931348623157e+308, as that's the max integer in js
7. technically 318GB, see this
8. 10MB (10,240KB)
9. same as 8
10. same as 1
note: 1, 7, 8, 9, and 10 don't apply to the offline editor.

Last edited by dhuls (Jan. 14, 2022 22:14:47)

kccuber
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

1. I don't think there is a costume limit.
2. No pen stamp limit either
3. 10,240 characters [citation needed]
4. same as variable
5. 200,000
6. i think you can search “double precision floating point max limit” on google to get a better idea
7. 5MB for the project.json (rename .sb3 to .zip and extract to find out). I think the entire project limit is something very high and as such you probably won't exceed it.
8. 10MB
9. Also 10MB
10. I don't think there's a set limit, but too many will probably crash the editor with a bluescreen.


Made using Nord Theme & Inkscape
Flowermanvista
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

kccuber wrote:

3. 10,240 characters [citation needed]
This is no longer true - IIRC there isn't actually a hard limit on how long the maximum output of the join block is anymore, and the practical limit is very, very large. (source)

Add a SPOOKY SKELETON to your project!

The Scratch 3 Project Save Troubleshooter - find out why your project won't save

ST, Please Add A Warning When A Size Limit Is Exceeded

My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
Chiroyce
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

MrNanners wrote:

1. Costume limit?
Definitely less than 150,000 costumes.
MD5 hash length is 32, project.json limit is 5,000,000, so 5,000,000/32 = ~156,000

MrNanners wrote:

10. Max number of sounds?
Same as above.

MrNanners wrote:

8. Max costume file size?
10MB.







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
SansStudios
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

1. Costume limit?
None. In my experience, projects with >200 complex vector costumes can crash lower-ended computers.
3. Max characters in a normal variable?
None. However, if your project JSON is larger than 5mb, it wont save so don't make a variable 36 million characters long.
4. Max characters in item of a list?
See above
10. Max number of sounds?
Depends on the computer. This project has like 30 full length songs, and it crashes chromebooks but works fine on other computers.

scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
Chiroyce
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

SansStudios wrote:

Depends on the computer. This project has like 30 full length songs, and it crashes chromebooks but works fine on other computers.

70MB of just assets is probably why it crashed…







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
SansStudios
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

Chiroyce wrote:

SansStudios wrote:

Depends on the computer. This project has like 30 full length songs, and it crashes chromebooks but works fine on other computers.

70MB of just assets is probably why it crashed…

Jeez… never checked the requests log

There's probably some lesson here…

scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
Maximouse
Scratcher
1000+ posts

Can't use Scratch Wiki, google is unclear, I just need a few numbers :)

MrNanners wrote:

6. Max integer limit? I discovered it: 2^1024 is the highest number
2^1024 is the largest integer that can be represented, but another limit is typically more important.


This is Maximouse's signature. Learn more about signatures.

Powered by DjangoBB