home *** CD-ROM | disk | FTP | other *** search
/ Quake++ for Quake / Quake++.iso / header.txt < prev    next >
Encoding:
Text File  |  1996-09-20  |  1.0 KB  |  14 lines

  1. Spec for ID1.PAK included in the Quake DM test version
  2. ---------------------------------------------------------------------------
  3. The ID1.PAK is really only all the seperate files bunched together and
  4. indexed. So, the specification is as follows:
  5. offset(byte) What?
  6. ---------------------------------------------------------------------------
  7. 0x00-0x03 Just a header. "PACK" or 0x50 0x41 0x43 0x4b 
  8. 0x04-0x07 The 32-bit offset to the file entries from the beginning of the .PAK file. 
  9. 0x08-0x0b The length of the entries. Each entry is 0x40 chars (bytes) long, so this corresponds to length/0x40 entries. 
  10. Each entry consists of:
  11. 0x00-0x37 0x38 chars (bytes) for filename w/ path. Note that this is the path from the directory your quake executable lives in, AND that the directory separators are / rather than \. The path is null-terminated. 
  12. 0x38-0x3b 32-bit offset to the start of the file. 
  13. 0x3c-0x3f Length of the file in chars (bytes). 
  14. ---------------------------------------------------------------------------