Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

.stknds File Format Specified

This specification is valid for SN versions <= 423.

:: warning The .stknds format is compressed when saved and decompressed when loaded to reduce its file size. It is compressed and decompressed using the GZIP compression and decompression algorithms with a buffer size of 4096. The following information assumes that the .stknds file is in its uncompressed state.

::

Metadata

Data TypeVersionsBuildsDescription
32-bit signed int big-endianAnyAnyStick Nodes version number
32-bit signed int big-endian>=401AnyBuild number
32-bit signed int big-endianAnyAnyA = Length of project name (prob causes weird behavior or error if length of project name length is <= 0)
sequence with size of A of text bytesAnyAnyProject name

Options

Data TypeVersionsBuildsDescription
8-bit unsigned byte>=401>=16Is YouTube short boolean
8-bit unsigned byte>=244AnyWatermark enabled boolean
32-bit signed int big-endian>=220AnyB = Length of watermark text (watermark text bytes are not read if this is <= 0)
sequence with size of B of text bytes>=220AnyWatermark text
32-bit signed int big-endian>=220AnyWatermark color. See Color for more information.
32-bit signed int big-endianAnyAnyFPS
32-bit signed int big-endian>=176AnyNumber of tweened frames
8-bit unsigned byte>=127AnyHas shown loop message boolean
8-bit unsigned byte>=113AnyHas shown panning mode message boolean
8-bit unsigned byteAnyAnyHas shown tweening mode message boolean
8-bit unsigned byte>=220AnyHas shown magnifier message boolean
8-bit unsigned byteAnyAnyTweening enabled boolean
8-bit unsigned byte>=127AnyIs loop boolean
8-bit unsigned byte>=140 && < 200Any[empty byte]

Unique IDs

Probably used to keep track of the last assigned unique ID(?)

Data TypeVersionsBuildsDescription
32-bit signed int big-endianAnyAnyUnique figure ID
32-bit signed int big-endian>=176AnyUnique textfield box ID
32-bit signed int big-endian>=300AnyUnique movieclip ID
32-bit signed int big-endian>=300AnyFrames container UID

Fonts

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=400AnyC = Number of fonts to check if loaded? Does NOT include the default font. Should be equal to whatever the greatest index of all loaded fonts is.
sequence with size of C of 8-bit unsigned bytes (booleans)>=400AnyLoaded fonts booleans. See font booleans reference for the order of the booleans. Do NOT write a boolean for font index 0 (the default font)

Hidden Stickfigure Library IDs

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=300AnyD = Number of hidden stickfigure library IDs
sequence with size of D of 32-bit signed int big-endian>=300AnyHidden stickfigure library IDs

Hidden Movieclip Library IDs

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=300AnyE = Number of hidden movieclip library IDs
sequence with size of E of 32-bit signed int big-endian>=300AnyHidden movieclip library IDs

Hidden Sprite Library IDs

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=400AnyF = Number of hidden sprite library IDs
sequence with size of F of 32-bit signed int big-endian>=400AnyHidden sprite library IDs

ID Conversion Maps

Data TypeVersionsBuildsDescription
ID Conversion Maps>=300AnySee ID Conversion Maps for more information.

Background Image

Data TypeVersionsBuildsDescription
8-bit unsigned byte>=140 && <400AnyBackground image enabled boolean
8-bit unsigned byte>=140 && <170AnySome boolean related to bg image scaling? Something vaguely related to being strict 1920x1080 when false and scaling to canvas width and height when true?
32-bit float big-endian>=170 && <400AnyScale background image x
32-bit float big-endian>=170 && <400AnyScale background image y
32-bit signed int big-endian>=140 && <400AnyW = Background image width
32-bit signed int big-endian>=140 && <400AnyH = Background image height
sequence with size of (W * H) of RGB888>=140 && <400AnyImage data

Stickfigure Library

Data TypeVersionsBuildsDescription
32-bit signed int big-endianAnyAnyG = Number of stickfigures in library
sequence of size G of Stickfigure HeaderAnyAnySee Stickfigure Header for more information.

Stickfigure Header

Data TypeVersionsBuildsDescription
32-bit signed int big-endianAnyAnyH = Length of stickfigure name
sequence with size of H of text bytesAnyAnyStickfigure name
Stickfigure DataAnyAnySee Stickfigure Data for more information.

Sound Library

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=160AnyI = Number of sounds
sequence with size of I of Sound Header>=160AnySee Sound Header for more information.

Sound Header

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=160AnyJ = Length of sound name
sequence with size of J of text bytes>=160AnySound name

Sprite Library

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=400AnyK = Number of sprites
sequence with size of K of Sprite Header>=400AnySee Sprite Header for more information

Sprite Header

Data TypeVersionsBuildsDescription
8-bit unsigned byte>=400Anyif 1:
L = sprite group source
else if 0:

L = sprite source
32-bit signed int big-endian>=400AnyM = Length of sprite name
sequence with size of M of text bytes>=400AnySprite name
if L == sprite group source:
Sprite Group Library Data
else if L == sprite source:
Sprite Library Data
>=400AnySee Sprite Group Library Data or Sprite Library Data for more information.

Movieclip Library

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=300AnyN = Number of movieclips
sequence with size of N of Movieclip Header>=300AnySee Movieclip Header for more information.

Movieclip Header

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=300AnyO = Length of movieclip name
sequence with size of O of text bytes>=300AnyMovieclip name
Movieclip Library Data>=300AnySee Movieclip Library Data for more information.
32-bit signed int big-endian>=300AnyMovieclip UID

Frames

Data TypeVersionsBuildsDescription
32-bit signed int big-endianAnyAnyP = Number of frames in project
sequence of Frame of length PAnyAnySee Frame for more information.

Auto Camera

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=237AnyQ = Number of auto-cams
sequence with size of Q of Auto Camera>=237AnySee Auto Camera for more information.

Session Save Data

Data TypeVersionsBuildsDescription
Session Save Data>=251AnySee Session Save Data for more information.

Movieclip Cache

Data TypeVersionsBuildsDescription
32-bit signed int big-endian>=319AnyR = Number of cached movieclips
sequence with size of R of Cached Movieclip>=319AnySee Cached Movieclip for more information.