v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

User:Rick/Save research

From Dwarf Fortress Wiki
< User:Rick
Revision as of 00:20, 8 November 2007 by Rick (talk | contribs) (→‎IDs)
Jump to navigation Jump to search

v0.27.169.32a

Dwarf Fortress .DAT files for this version are basically blocks of zlib compressed data. long + data... repeated throughout the file. The long represents the size of compressed data.

Structures

String

Size Type Name Notes
2 short Length
x char String data of length size.

String List

Size Type Name Notes
4 long Count
(2 + length) * count strings Strings

Long List

Size Type Name Notes
4 long Count
4 * count longs Longs

Files

world.dat

Version

Size Type Name Notes
4 long Version? Currently 0x4B5 (1205).
2 short

Header (1)

Size Type Name Notes
4 long
4 long
4 long
4 long
4 long
4 long
4 long
4 long
4 long
4 long
4 long
4 long
1 byte Following block is not present if this is 0.

Optional header block

Size Type Name Notes
2 + length string
2 + length string
28 struct?
14 struct?
4 long
2 short

Header (2)

Size Type Name Notes
15 struct?
2 + length string World name

Data

IDs
Size Type Name Notes
variable stringlist Wood Matgloss IDs
variable stringlist Stone Matgloss IDs
variable stringlist Metal Matgloss IDs
variable stringlist Plant Matgloss IDs
variable stringlist Creature Body IDs
variable stringlist Creature Body Gloss IDs
variable stringlist Creature IDs
variable stringlist Item IDs
variable stringlist Entity IDs
variable stringlist Word IDs
variable stringlist Symbol IDs
variable stringlist Language IDs
variable stringlist Color IDs
variable stringlist Shape IDs
variable stringlist Reaction IDs

...

Size Type Name Notes
4 long If this is a non-zero value some data follows, not sure of format yet.
4 long If this is a non-zero value some data follows, not sure of format yet.
4 long Civilization count?
variable long * civ count
variable longlist
variable longlist
variable longlist
variable longlist
variable civilization * civ count Civilization data