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

DBPF header

FallingBullets edited this page Mar 10, 2013 · 4 revisions

Every DBPF file has a 96 byte header comprised of the following

  • <magic<"DBPF":4>:4> A 'magic' string comprised of the string "DBPF"
  • <version<major:4><minor:4>:8> The file major and minor versions
  • <user_version<major:4><minor:4>:8> The user defined major and minor versions of the file (unused)
  • <flags:4><ctime:4><mtime:4> A set of undefined flags and the creation and modification time, all usually 0
  • <index_version_major:4> The major index version, usually 7
  • <index<count:4><offset:4><size:4>:12> The number of records, location and byte-size of the Index table
  • <holes<count:4><offset:4><size:4>:12> The number of records, location and byte-size of the Hole table
  • <index_version_minor:4> The minor version of the index, see Index table for more
  • <index_offest_v2:4> The location of the Index table in version DBPF V2 files.
  • <reserved:28> Unused/unknown bytes.

Versions

The <version<major><minor>> words can be the following

  • Version 1.0 is seen in SimCity 4 and The Sims 2
  • Version 1.1 is seen in The Sims 2
  • Version 2.0 is seen in SPORE and The Sims 3
Clone this wiki locally