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.

Difference between revisions of "User:Rick/Save research"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 337: Line 337:
 
| [[#String List|stringlist]]
 
| [[#String List|stringlist]]
 
| Reaction IDs
 
| Reaction IDs
 +
|
 +
 +
|}
 +
 +
===...===
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | 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
 +
|
 +
|
 +
 +
|-
 +
|
 +
| [[#Long List|longlist]]
 +
|
 +
|
 +
 +
|-
 +
|
 +
| [[#Long List|longlist]]
 +
|
 +
|
 +
 +
|-
 +
|
 +
| [[#Long List|longlist]]
 +
|
 +
|
 +
 +
|-
 +
|
 +
| [[#Long List|longlist]]
 +
|
 +
|
 +
 +
|-
 +
| variable
 +
| [[#Civilization|civilization]] * civ count
 +
| Civilization data
 
|  
 
|  
  
 
|}
 
|}

Revision as of 00:19, 8 November 2007

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
stringlist Wood Matgloss IDs
stringlist Stone Matgloss IDs
stringlist Metal Matgloss IDs
stringlist Plant Matgloss IDs
stringlist Creature Body IDs
stringlist Creature Body Gloss IDs
stringlist Creature IDs
stringlist Item IDs
stringlist Entity IDs
stringlist Word IDs
stringlist Symbol IDs
stringlist Language IDs
stringlist Color IDs
stringlist Shape IDs
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
longlist
longlist
longlist
longlist
variable civilization * civ count Civilization data