Skip to content
This repository was archived by the owner on Sep 4, 2018. It is now read-only.

DIR table

FallingBullets edited this page Mar 11, 2013 · 5 revisions

The DIR table (TID 0xE86B1EEF) contains a record for each file/blob that has been compressed. Both the DIR record and the QFS header are dependent on the index version.

  • index version 7.0: <DIR<TGI:12><size:4>:16>
  • index version 7.1: <DIR<TGII:16><size:4>:20>

QFS compression

QFS is the compression algorithm used on blobs within DBPF archives. Each file/blob that has been compressed has a QFS header. It is often the case that the DIR table is out of date, so it is recommended to scan for the QFS header when reading a file than to rely on the DIR table.

  • index version < 7.2: <QFS<size:4><0x10FB:4><fullsize:3>:11>
  • index version > 7.2: <QFS<0x10FB or 0x50FB:4><fullsize:3>:9>

See also: SimsWiki: QFS and Wouangaine's QFS lib

Clone this wiki locally