7 Studios FS

From XentaxWiki
Jump to: navigation, search

FS

This format appears to first have been used in the Fantastic 4 game and was later used with slight modification in The Sopranos: Road to Respect. The differences per game are marked in red below.


Format Specifications

// FILE DATA

// for each file
byte {X}     - File Data
byte {X}     - Padding to a multiple of 2048 bytes (using (byte)255)


// FILENAME DIRECTORY

char {4}     - String Header (STR )
uint32 {4}   - Filename Directory Length


// for each file
char {X}     - Filename
byte {1}     - null Filename Terminator


byte {0-3}   - null Padding to a multiple of 4 bytes


// DIRECTORY

char {4}     - Directory Header (DIR )
uint32 {4}   - Directory Length


// for each file
uint32 {4}   - Compressed Size (if compSize=0, the file is not compressed)
uint32 {4}   - File Offset [*2048]
uint32 {4}   - File Length
uint32 {4}   - Filename Offset (relative to the start of the filename directory) (Fantastic 4) or Filename CRC32/BZIP (The Sopranos)


// ARCHIVE FOOTER

char {4}     - End Header (END )
uint64 {8}   - null (Appears to be a uint32 {4} for some versions of Fantastic 4)
uint32 {4}   - Filename Directory Offset
byte {X}    - null (X = 28 for Fantastic 4 or 24 for The Sopranos)
uint32 {4}   - Filename Directory Offset

MultiEx BMS

Not written yet

Notes and Comments

  • Uses ZLib Compression

Supported Programs

Games

The following games are known to use this format: