Turok

From XentaxWiki
Jump to: navigation, search

11K, 22K

  • Format Type : Archive
  • Endian Order : Little Endian
  • Date Posted : Dec. 22, 2005

Format Specifications

// ARCHIVE HEADER

uint32 {4}   - Number Of Files
uint32 {4}   - File Data Length


// FILES DIRECTORY

// for each file
uint32 {4}   - File Offset (relative to the start of the file data)
uint32 {4}   - File Length


uint32 {4}   - Directory End Tag


//FILENAME DIRECTORY

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


// FILE DATA

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

MultiEx BMS Script

ImpType SFileSize ;
Get FILENUM Long 0 ;
Get DATASIZE Long 0 ;
SavePos DIRSTART 0 ;
Set FDIRSTRT Long FILENUM ;
Math FDIRSTRT *= 8 ;
Math FDIRSTRT += 16 ;
GoTo EOF 0 ;
SavePos DATASTRT 0 ;
Math DATASTRT -= DATASIZE ;
Math DATASTRT += 1 ;
GoTo DIRSTART 0 ;
For X = 1 To FILENUM ;
Get FOFFSET Long 0 ;
Math FOFFSET += DATASTRT ;
SavePos FSIZEX 0 ;
Get FSIZE Long 0 ;
SavePos NEXTFILE 0 ;
GoTo FDIRSTRT 0 ;
Get FNAME String 0 ;
SavePos FDIRSTRT 0 ;
Log FNAME FOFFSET FSIZE 0 FSIZEX ;
GoTo NEXTFILE 0 ;
Next X ;

Supported by Programs