Interstate ZFS

From XentaxWiki
Jump to: navigation, search

ZFS


Format Specifications

char {4}     - Header (ZFSF)
uint32 {4}   - Version (1)
uint32 {4}   - Unknown (16)
uint32 {4}   - Number Of Files in each directory (100)
uint32 {4}   - Total Number Of Files in the archive
uint32 {4}   - null
uint32 {4}   - Unknown (28)

// for each directory

uint32 {4}   - Next Directory Offset (null for the last directory)


// for each file in this directory
char {16}    - Filename (null)
uint32 {4}   - File Offset
uint32 {4}   - File ID (incremental stating from 0)
uint32 {4}   - Length
uint32 {4}   - Hash?
uint32 {4}   - null


if (the last directory){
byte {X}     - null padding to fill up the directory - ie. up to (numFilesInEachDir*36 + 4)
}


byte {X}     - File Data (for the files in this directory)


MultiEx BMS Script

Not written yet

Notes and Comments

  • The archive is stored in directory chunks of 100 files, each with their own directory. So you need to read the directory for 100 files, then skip to the next directory.

Compatible Programs

Other Games

These games also use this file format

  • Interstate '76
  • Interstate '82