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
(New page: __TOC__ =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 o...)
 
Line 3: Line 3:
 
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.
 
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.
  
==world.dat==
+
==Structures==
 +
===String===
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 11: Line 12:
  
 
|-
 
|-
! colspan="5" | Version
+
| 2
 +
| short
 +
| Length
 +
 
 +
|-
 +
| x
 +
| char
 +
| String data of length size.
 +
 
 +
|}
 +
 
 +
===String List===
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
 +
 
 +
|-
 +
| 4
 +
| long
 +
| Count
 +
|
 +
 
 +
|-
 +
| (2 + length) * count
 +
| strings
 +
| Strings
 +
|
 +
 
 +
|}
 +
 
 +
==Files==
 +
===world.dat===
 +
====Version====
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
  
 
|-
 
|-
Line 25: Line 65:
 
|  
 
|  
  
|-
+
|}
! colspan="5" | Header (1)
 
  
|-
+
====Header (1)====
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
  
 
|-
 
|-
Line 108: Line 152:
 
| Following block is not present if this is 0.
 
| Following block is not present if this is 0.
  
|-
+
|}
! colspan="5" | Optional header block
+
 
 +
====Optional header block====
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
  
 
|-
 
|-
 
| 2 + length
 
| 2 + length
| string
+
| [[#String|string]]
 
|  
 
|  
 
|  
 
|  
Line 119: Line 169:
 
|-
 
|-
 
| 2 + length
 
| 2 + length
| string
+
| [[#String|string]]
 
|  
 
|  
 
|  
 
|  
Line 147: Line 197:
 
|  
 
|  
  
|-
+
|}
! colspan="5" | Header (2)
+
 
 +
====Header (2)====
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
  
 
|-
 
|-
Line 158: Line 214:
 
|-
 
|-
 
| 2 + length
 
| 2 + length
| string
+
| [[#String|string]]
 
| World name
 
| World name
 +
|
 +
 +
|}
 +
 +
====Data====
 +
=====IDs=====
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Wood Matgloss IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Stone Matgloss IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Metal Matgloss IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Plant Matgloss IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Creature Body IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Creature Body Gloss IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Creature IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Item IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Entity IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Word IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Symbol IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Language IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Color IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Shape IDs
 +
|
 +
 +
|-
 +
|
 +
| [[#String List|stringlist]]
 +
| Reaction IDs
 
|  
 
|  
  
 
|}
 
|}

Revision as of 20:24, 31 October 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

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