Skip to content

NOTE

Most people shouldn't need to worry about this. This is for people implementing SE! extensions, and people working on compilers like seec.

SEE (Scratch Everywhere! Extension) ​

All strings are UTF-8 and all numbers are big endian.

Magic Strings ​

All .see files start with the magic string SE! EXTENSION (not null-terminated.)

Version Info ​

This section contains all info about versioning. It is made up of 3 bytes. The first byte is the version of this file format, the second byte is the major version of the API the extension was designed for, and the third byte is the minor version of the API the extension was designed for.

File Format Versions ​

  • 0: initial
  • 1: added Xbox to the platforms flag

API Versions ​

  • 0.1: initial

Core Extensions ​

The core extensions flag is made up of 1 byte that is either 0 if the extension is not a core extension, or 1 of the extension is a core extension. Core extensions allow creating blocks that are not tied to the specific extension ID.

Extension Info ​

The extension info section contains information about the extension. It is made up of 3 null-terminated strings in this order:

  • Extension ID
  • Extension Name
  • Extension Description

Permissions ​

The permissions section contains the necessary permissions the extension needs, it is made up of a single unsigned 16-bit integer.

  • 1st bit represents if the extension needs local file system access. This is what should be used the majority of the time.
  • 2nd bit represents if the extension needs root file system access. This is not recommended for most extensions.
  • 3rd bit represents if the extension needs internet access.
  • 4th bit represents if the extension needs access to inputs.
  • 5th bit represents if the extension needs access to rendering.
  • 6th bit represents if the extension has update functions that need to be called each frame.
  • 7th bit represents if the extension needs access to platform specific APIs (e.g. Amiibo or account information.)
  • 8th bit represents if the extension needs access to the runtime (e.g. sprite position, costume, or variables.)
  • 9th bit represents if the extension needs access to audio APIs.
  • 10th bit represents if the extension needs access to be able to communicate with other extensions.

Supported Platforms ​

The platforms section is a single unsigned 16-bit integer with its bits representing the platforms that the extension works on. Most extensions should support all platforms.

  • 1st bit: 3DS
  • 2nd bit: Wii U
  • 3rd bit: Wii
  • 4th bit: GameCube
  • 5th bit: Switch
  • 6th bit: PC
  • 7th bit: Vita
  • 8th bit: NDS
  • 9th bit: PS4
  • 10th bit: PSP
  • 11th bit: webOS
  • 12th bit: WASM
  • 13th bit: Xbox

Settings ​

The settings section allows custom extensions to provide modifiable settings available in the runtime's UI.

The section begins with a single byte for the number of settings available in the extension.

The rest of the section is made up of data for each setting. The size of these settings is not always the same (not even the same number of data types.) All settings start with a single byte repsenting the type of the extension, followed by 2 null-terminated strings, one for the ID of the setting, and another for the name of the setting. The name and ID is always followed by a default value, the size of which varies between types. Some types also have additional data.

Toggles ​

Toggles have the type of 0x12. Toggles' default value is a single byte with a 1 representing enabled and a 0 representing disabled.

Text ​

Text settings have the type of 0x63. Their default value is a null-terminated string. They also have another null-terminated string called the prompt which is what will be displayed in the on-screen keyboard when editing the text setting.

Sliders ​

Sliders have the type of 0x6E. Their default value is a 32-bit float. Sliders also have an additional three 32-bit floats in this order, slider max, slider minimum, and slider snap.

Blocks ​

The blocks section is actually split into two sub-sections, the block types section and the block IDs section.

Block Types ​

The block types section itself is null-terminated and is simply represented by 1 byte for each block which tells the runtime what type of block, each block is.

  • 0x1: Command
  • 0x2: Hat
  • 0x3: Event
  • 0x4: Reporter
  • 0x5: Boolean

Block IDs ​

After the block types is the block IDs. Each ID is a null-terminated string. There should be the same amount of IDs as types.

Lua Bytecode ​

Following everything else is simply just some compiled Lua bytecode (.luac).

This project is not affiliated with Scratch, the Scratch Team, or any of the supported platforms' parent companies or organizations.