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

#1 2009-06-24 06:44:39

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Help with encoding of .sb files

I am not not that good at smalltalk, so I would like like to know how are these files stored and read.

Offline

 

#2 2009-06-24 14:35:46

lxt
Scratcher
Registered: 2008-07-11
Posts: 27

Re: Help with encoding of .sb files

The specs are available on the website, but are slightly out of date - see here:

http://scratch.mit.edu/forums/viewtopic.php?id=18497

Information is stored in an 'object store', a series of objects with interconnecting references. The .sb file is split up into three main parts - the header, the info object store (things like the author, a thumbnail of the project, scratch version information, etc), and the data object store (everything else - blocks, scripts, images, sound, etc).

Offline

 

Board footer