GTA San Andreas SCM

From XentaxWiki
Jump to: navigation, search

SCM


Format Specifications

ARCHIVE HEADER

uint16 {2}   - Unknown (2)
byte {1}     - Unknown (1)
uint32 {4}   - Filename Directory Offset
byte {1}     - Unknown
byte {X}     - Padding to the first file offset (43808)


FILENAME DIRECTORY

uint16 {2}   - Unknown (2)
byte {1}     - Unknown (1)
uint32 {4}   - Offsets Directory Offset
byte {1}     - Unknown
uint32 {4}   - Number Of Files [-1]
byte {24}    - null


// for each filename
char {24}    - Filename (null terminated)


OFFSETS DIRECTORY

uint16 {2}   - Unknown (2)
byte {1}     - Unknown (1)
uint32 {4}   - Batch Directory Offset
byte {1}     - Unknown
uint32 {4}   - First File Offset
uint32 {4}   - Unknown
uint32 {4}   - Number Of Files in this directory
uint32 {4}   - Unknown


// for each file in this directory
uint32 {4}   - File Offset


BATCH DIRECTORY

// These files all have offsets that start past the end of the archive
uint16 {2}   - Unknown (2)
byte {1}     - Unknown (1)
uint32 {4}   - Empty Directory 1 Offset
byte {1}     - Unknown


// for each file in this directory
uint32 {4}   - File Offset
uint32 {4}   - File Length
char {20}    - Filename (null terminated)


EMPTY DIRECTORY 1

uint16 {2}   - Unknown (2)
byte {1}     - Unknown (1)
uint32 {4}   - Empty Directory 2 Offset
byte {1}     - Unknown
uint32 {4}   - null


EMPTY DIRECTORY 2

uint16 {2}   - Unknown (2)
byte {1}     - Unknown (1)
uint32 {4}   - File Data Offset
byte {1}     - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown


FILE DATA

// for each file
byte {X}     - File Data

MultiEx BMS

Not written yet

Supported Programs