.sb file: Difference between revisions
Appearance
Content deleted Content added
Mrcomputer1 (talk | contribs) m Fixed links |
|||
Line 19: | Line 19: | ||
=== contents === |
=== contents === |
||
A [http://wiki.scratch.mit.edu/wiki/Scratch_File_Format/Object_Table |
A [http://wiki.scratch.mit.edu/wiki/Scratch_File_Format/Object_Table object table] with the Stage as the root. All objects in the program are stored here as [http://wiki.scratch.mit.edu/wiki/Scratch_File_Format/References#Object_References references]. |
||
== See also == |
== See also == |
||
* [[.sb2 file]] |
* [[.sb2 file]] |
||
* [[Scratch (programming language)]] |
* [[Scratch (programming language)]] |
||
* [http://wiki.scratch.mit.edu/wiki/Scratch_File_Format_%281.4%29 |
* [http://wiki.scratch.mit.edu/wiki/Scratch_File_Format_%281.4%29 Scratch File Format (1.4) - Scratch Wiki] |
||
==References== |
==References== |
Revision as of 14:02, 20 January 2018
An .sb file is the file format used to store projects created in the Scratch programming language editor up to version 1.4.[1] sb is no longer used in the current version of Scratch and was replaced by the .sb2 file in Scratch 2.0.
File Structure
The .sb file is divided into four sections.
header
The 10-byte header contains the ASCII string 'ScratchV02' in versions higher than 1.2, and contains the string 'ScratchV01' in versions 1.2 and below.
infoSize
Encodes the length of the project's infoObjects. A four-byte long, 32-bit, big-Endian integer.
infoObjects
A dictionary-format data section. It contains the following keys:
- thumbnail: a thumbnail of the project's stage
- author: the username of the project's creator
- comment: the Project Notes
- history: save and upload log
- scratch-version: the version of Scratch used to save the file
contents
A object table with the Stage as the root. All objects in the program are stored here as references.
See also
References
- ^ "Scratch Wiki - .sb". 4 October 2015. Retrieved 7 November 2015.