Carmageddon TDR2000

From XentaxWiki
Revision as of 02:52, 16 May 2005 by WATTO (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Choose archive extension:

PAK + DIR


Format Specifications

// for each file

char {X}     - Filename (read until byte=8)
uint32 {4}   - Offset
uint32 {4}   - Size


MultiEx BMS Script

Not written yet

Notes and Comments

  • The *.dir file has the directory, the *.pak file has the file data
  • To determine the filename, do the following
String filename = readByte();
while (readByte() != (byte)8){
  filename += readByte();
  }


Explaination: Each character of the filename is split over 2 bytes, with each 2nd byte determining when to stop. When the 2nd byte is 8, stop. Otherwise, add the next byte to the filename

Compatible Programs