This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-22 08:01:33

TheSalamander
Scratcher
Registered: 2009-11-23
Posts: 16

File Sizes

I was thinking of running a minimalist competition for my students (along the lines of J4K but with scratch).

I went to see how large an empty scratch file is and a .sb with one sprite (a single pixel) called a, with a blank background, also called a, with filename a.sb is a staggering 38 KB!

Any idea why?

Thanks in advance

Offline

 

#2 2011-05-22 08:22:43

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: File Sizes

The saving system works by taking all the project info and dumping it in the header, and then taking all the objects (with their scripts) and adding them to the file.

The stage counts as an object and actually takes up loads of space.

Offline

 

#3 2011-05-22 13:18:50

TheSalamander
Scratcher
Registered: 2009-11-23
Posts: 16

Re: File Sizes

Ah right, is there any way of reducing the amount of space needed?

So if I were to run a competition, what would you recommend as an upper limit on filesize (They are allowed compression tools)?

Also, how come I was able to take an old project and get rid of all the images and sounds (leaving the code) and saved it as 26KB? Surely it would logically be larger than an empty file as it had about 8 sprites with code?


Thanks a million  smile

Offline

 

Board footer