Format:SCI resource files
| Developer | Sierra On-Line |
|---|---|
| Extensions | RESOURCE.MAP, RESOURCE.000, RESMAP.000, RESSCI.000, .p56 patches |
| Endianness | little |
| On this wiki | Facts · Code · Notes · Topics |
Sierra's SCI adventure engine resources: a resource map (RESOURCE.MAP, RESMAP.0xx) plus volumes (RESOURCE.000.., RESSCI.0xx), with per-version entry layouts, 5-bit resource types and compression methods; ScummVM distinguishes SCI0/1 early, SCI1 middle, KQ5 FM-Towns, SCI1 late, SCI1.1, SCI2 and SCI3 layouts.
Files
ScummVM (engines/sci/resource/resource.cpp, GPL, commit 98d8fda) looks for resource.map plus resource.0## volumes (SCI0 to SCI1.1), resmap.0## plus ressci.0## (SCI2 and later), resmap.pat/ressci.pat patch volumes, message.map/resource.msg and altres.map/altres.000. Patch files named by resource type (for example .p56, .v56) override volume contents.
Map versions and how ScummVM detects them
- Map ending in four
FFbytes: SCI0/SCI01 style (entries of 6 bytes: u16 id, u32 offset). If the last 7 bytes are all FF it is the KQ5 FM-Towns map (7-byte entries); otherwise the map is SCI0/SCI1-early if every volume number found in the entries exists, else SCI1 middle. - SCI1 / SCI1.1: a header of 3-byte directory entries (type byte, u16 offset), ending with type
0xFFpointing at the end of the file; entries after it are 6 bytes (SCI1 late) or 5 bytes (SCI1.1), told apart by whether the directory span is divisible by 6 or 5. Directory type below 0x80 marks SCI2/SCI2.1 maps.
Map entry (SCI0 / SCI1 early)
u16 id: bits 11-15 resource type, bits 0-10 resource number (number = id & 0x7FF); u32 offset: the top 6 bits (4 bits in SCI1 middle) are the volume number, the rest the offset in that volume.
Resource header in the volume
- SCI0 / SCI1 early / middle: u16 (type<<11 | number), u16 packed size (includes 4 header bytes, so stored data length is size - 4), u16 unpacked size, u16 compression.
- SCI1 late: u8 type, u16 number, u16 packed - 4, u16 unpacked, u16 compression.
- SCI1.1: u8 type, u16 number, u16 packed, u16 unpacked, u16 compression (9 bytes).
- SCI2 and later: u8 type, u16 number, u32 packed, u32 unpacked, u16 compression (13 bytes); SCI3 ignores the compression field (compressed when packed != unpacked).
Compression field
0 stored; 1 LZW (SCI0/01) or Huffman (later); 2 Huffman (SCI0/01) or LZW1 (later); 3 LZW1 view; 4 LZW1 pic; 18, 19, 20 DCL (PKWARE implode); 32 STACpack (SCI32). Decompressors are in decompressor.cpp.
Resource types
0 view, 1 pic, 2 script, 3 text, 4 sound, 5 memory, 6 vocab, 7 font, 8 cursor, 9 patch, 10 bitmap, 11 palette, 12 cdaudio (wave in SCI32), 13 audio, 14 sync, 15 message, 16 map, 17 heap, 18 audio36, 19 sync36, 20 translation; SCI2.1 reuses the numbers differently (3 animation, 5 etc, 18 chunk, 20 sync36 ... 22 robot, 23 VMD, 24 duck, 25 clut, 26 TGA, 27 ZZZ).
Tools
ScummVM (reader), SCI Companion, sciunpack.
Code & repositories
- https://github.com/scummvm/scummvm @
98d8fda924f4d469d1281a0747dc4385462a78c6· license: GPL-3.0
ScummVM (GPL-3.0): engines/scumm and engines/sci/resource readers for SCUMM and SCI resources
Tested on: source read, not run: source reading only · checked 2026-10-18; last activity 2026-10-18