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
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

Basic Types

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

Civilization

Size Type Name Notes
2 short
4 long
variable string
2 short
2 short
4 long
2 short
variable longlist
1 byte Info present Following struct is only present if this value is non-zero.
optionalstruct
2 short
4 long
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
2 short
2 short
2 short
2 short
2 short
2 short
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
variable shortlist
Some more data might be possible here depending, havn't investigated yet (00510074 in .32a).
variable bytelist
variable bytelist
variable bytelist
variable bytelist
variable bytelist
4 long unk86 count
Some more data might be present here if unk86 is non-zero.
4 long unk87 count
Some more data might be present here if unk87 is non-zero.
4 long unk88 count
Some more data might be present here if unk88 is non-zero.
4 long unk89 count
variable unk89 struct * unk89 count
4 long unk90 count
variable unk90 struct * unk90 count
variable longlist
variable longlist
variable shortlist
variable longlist
variable shortlist
4 long unk96 count
variable unk96 struct * unk96 count
2 short
4 long
4 long
2 short
2 short
2 short
2 short
variable longlist
4 long unk105 size
variable char * unk105 size

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