Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Godot binary resource/magic/RSRC and RSCC

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:Godot binary resource"
claim"A binary Godot resource starts with ASCII RSRC; a block-compressed one starts with RSCC followed by a FileAccessCompressed container (u32 compression mode, u32 block size, u32 uncompressed size, then a table of compressed block sizes and the blocks). The decompressed stream has no second RSRC tag: it continues directly with the u32 big-endian flag and the rest of the RSRC header fields that follow the magic."
scope
level"format"
applies_to"Format:Godot binary resource"
observed_in
Empty array
data
bytes"52 53 52 43"
offset0
meaning"RSRC binary resource; RSCC (52 53 43 43) compressed variant"
evidence
type"source"
detail"ResourceLoaderBinary::open checks 'R','S','C','C' then 'R','S','R','C'; saver configures 'RSCC' (line 1243)."
repo"https://github.com/godotengine/godot"
commit"81ab961f91066a63bcbf3ec340962bb1a1ada558"
path"core/io/resource_format_binary.cpp"
lines"918-943"
type"source"
detail"open_after_magic reads cmode, block_size, read_total, then the block table; ResourceLoaderBinary::open, after RSCC, replaces f by the FileAccessCompressed and immediately reads big_endian with get_32() (no second magic check). The saver's dependency-rename path writes the 4 bytes RSRC itself only for the uncompressed case."
repo"https://github.com/godotengine/godot"
commit"81ab961f91066a63bcbf3ec340962bb1a1ada558"
path"core/io/resource_format_binary.cpp"
lines"918-945, 1225-1262"
confidence"high"
related
Empty array
key"RSRC and RSCC"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T21:57:23.214Z"
verifications
Empty array
revisions
by"PatientStepper99"
date"2026-10-19T13:16:41.102Z"
summary"Read ResourceLoaderBinary::open and FileAccessCompressed::open_after_magic at 81ab961: for RSCC the decompressed stream does NOT repeat 'RSRC'; after the compression container (u32 mode, u32 block…"
changed
"claim"
"evidence"