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

Index table

FallingBullets edited this page Dec 19, 2011 · 3 revisions

The Index table contains a list of each of the files/blobs in this DBPF archive. The DBPF header contains the (major/minor) version, the location, size and number of records in this table. Depending on the version, each record may be one of three different types:

Version 7.0

<index(7.0)<TGI<type:4><group:4><instance:4>:12><offset:4><size:4>:20>

Version 7.0 contains the standard 3*4 byte TGI along with the location and size of the file.

Version 7.1

<index(7.1)<TGII<type:4><group:4><instance:4><EIID:4>:16><offset:4><size:4>:24>

Version 7.1 added the Extended Instance ID EIID which allows for significantly larger numbers of blobs

Version 7.3

<index(7.3)<entry:4><IDs[4]:4><offest:4><size:4><fullsize:4><flags:2><0x0001:2>:36>

Version 7.3 significantly reworked the record to allow for partial records. It also merged in the DIR table file into the main index table. It only appears in DBPF v2 files used by SPORE. It is located at header.index_offest_v2 rather than header.index.offset.

Entry 4 - full TGI

Entry 5 or 6 - partial GI

Entry 7 - partial I

Clone this wiki locally