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.

Editing User:Rick/Save research

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
__TOC__
 
__TOC__
[[Category:Hacking|Save research]]
+
=v0.27.169.33a=
 
 
=0.27.176.38c=
 
 
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.
  
Line 289: Line 287:
 
| 2
 
| 2
 
| short
 
| short
| Probably race?
+
|  
 
|  
 
|  
  
Line 295: Line 293:
 
| 4
 
| 4
 
| long
 
| long
| Civilization index?
+
|  
 
|  
 
|  
  
Line 301: Line 299:
 
| variable
 
| variable
 
| [[#String|string]]
 
| [[#String|string]]
| Entity type name
+
|  
 
|  
 
|  
  
Line 960: Line 958:
 
|}
 
|}
  
====Region Information====
+
==Files==
 +
===world.dat===
 +
====Version====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 968: Line 968:
  
 
|-
 
|-
| 1
+
| 4
| byte
+
| long
|  
+
| Version?
| Following data for this block is not present if this is 0.
+
| Currently 0x4B5 (1205).
  
 
|-
 
|-
| variable
+
| 2
| string
+
| short
 
|  
 
|  
 
|  
 
|  
 +
 +
|}
 +
 +
====Header (1)====
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
  
 
|-
 
|-
| variable
+
| 4
| string
+
| long
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| 28
+
| 4
|  
+
| long
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| 14
+
| 4
|  
+
| long
 
|  
 
|  
 
|  
 
|  
Line 1,004: Line 1,013:
  
 
|-
 
|-
| 2
+
| 4
| short
+
| long
 
|  
 
|  
 
|  
 
|  
 
|}
 
 
====Region Information Container====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
  
 
|-
 
|-
Line 1,025: Line 1,025:
  
 
|-
 
|-
| variable
+
| 4
| [[#Region_Information|Region Information]]
+
| long
| Region Information
+
|  
 
|  
 
|  
  
Line 1,036: Line 1,036:
 
|  
 
|  
  
|}
+
|-
 
+
| 4
====Region Map====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| 4
 
 
| long
 
| long
| follow buffer size
 
 
|  
 
|  
 
|-
 
| variable
 
 
|  
 
|  
|
 
| byte * previous long
 
  
 
|-
 
|-
| 48
+
| 4
|  
+
| long
 
|  
 
|  
 
|  
 
|  
Line 1,076: Line 1,061:
  
 
|-
 
|-
| 2
+
| 1
| short
+
| byte
|  
 
 
|  
 
|  
 +
| Following block is not present if this is 0.
  
 
|}
 
|}
  
====Region Geology Subdata====
+
====Optional header block====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,091: Line 1,076:
  
 
|-
 
|-
| 2
+
| 2 + length
| short
+
| [[#String|string]]
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| 2
+
| 2 + length
| short
+
| [[#String|string]]
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| variable
+
| 28
| shortarray
+
| struct?
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| variable
+
| 14
| shortarray
+
| struct?
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| variable
+
| 4
| bytearray
+
| long
|
 
|
 
 
 
|-
 
| variable
 
| bytearray
 
|
 
|
 
 
 
|-
 
| 2
 
| short
 
 
|  
 
|  
 
|  
 
|  
Line 1,140: Line 1,113:
 
|}
 
|}
  
====Region Geology====
+
====Header (2)====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,148: Line 1,121:
  
 
|-
 
|-
| 2
+
| 15
| short
+
| struct?
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| 2
+
| 2 + length
| short
+
| [[#String|string]]
|
+
| World name
|
 
 
 
|-
 
| 2
 
| short
 
| Count of following subitems
 
|
 
 
 
|-
 
| variable
 
| array of [[#Region_Geology_Subdata|Region Geology Subdata]]
 
| array of Region Geology Subdata
 
 
|  
 
|  
  
 
|}
 
|}
  
====Region Subregion====
+
====Data====
 +
=====IDs=====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,181: Line 1,143:
  
 
|-
 
|-
| 4
+
| variable
| long
+
| [[#String List|stringlist]]
 +
| Wood Matgloss IDs
 
|  
 
|  
 +
 +
|-
 +
| variable
 +
| [[#String List|stringlist]]
 +
| Stone Matgloss IDs
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| [[#Region_Information|Region Information]]
+
| [[#String List|stringlist]]
| region information
+
| Metal Matgloss IDs
 
|  
 
|  
  
 
|-
 
|-
| 2
+
| variable
| short
+
| [[#String List|stringlist]]
|  
+
| Plant Matgloss IDs
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| shortarray
+
| [[#String List|stringlist]]
|  
+
| Creature Body IDs
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| shortarray
+
| [[#String List|stringlist]]
|  
+
| Creature Body Gloss IDs
 
|  
 
|  
  
 
|-
 
|-
| 4
+
| variable
| long
+
| [[#String List|stringlist]]
|  
+
| Creature IDs
 
|  
 
|  
  
 
|-
 
|-
| 4
+
| variable
| long
+
| [[#String List|stringlist]]
|  
+
| Item IDs
 
|  
 
|  
  
 
|-
 
|-
| 4
+
| variable
| long
+
| [[#String List|stringlist]]
|  
+
| Entity IDs
 
|  
 
|  
  
 
|-
 
|-
| 4
+
| variable
| long
+
| [[#String List|stringlist]]
|  
+
| Word IDs
 
|  
 
|  
  
 
|-
 
|-
| 204
+
| variable
|  
+
| [[#String List|stringlist]]
|  
+
| Symbol IDs
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| shortarray
+
| [[#String List|stringlist]]
|  
+
| Language IDs
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| shortarray
+
| [[#String List|stringlist]]
|  
+
| Color IDs
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| shortarray
+
| [[#String List|stringlist]]
|  
+
| Shape IDs
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| shortarray
+
| [[#String List|stringlist]]
|  
+
| Reaction IDs
 
|  
 
|  
 +
 +
|}
 +
 +
===...===
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="60%" | Notes
  
 
|-
 
|-
| variable
+
| 4
| shortarray
+
| 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.
  
 
|-
 
|-
| variable
+
| 4
| shortarray
+
| long
|  
+
| Civilization count?
 
|  
 
|  
  
 
|-
 
|-
| 1
+
| variable
| byte
+
| long * civ count
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| 1
+
| variable
| byte
+
| [[#Long List|longlist]]
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| 1
+
| variable
| byte
+
| [[#Long List|longlist]]
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| 1
+
| variable
| byte
+
| [[#Long List|longlist]]
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| incomplete...
+
| variable
|  
+
| [[#Long List|longlist]]
 
|  
 
|  
 
|  
 
|  
 
|}
 
 
==Files==
 
===world.dat===
 
====Version Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
  
 
|-
 
|-
| 4
+
| variable
| long
+
| [[#Civilization Structure|civ struct]] * civ count
| Version?
+
| Civilization data
| Currently 0x4B5 (1205).
 
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
 
|}
 
 
 
====Header (1) Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
| Number of historical figures?
 
|
 
 
 
|-
 
| 4
 
| long
 
| Number of historical events
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 1
 
| byte
 
|
 
| Following block is not present if this is 0.
 
 
 
|}
 
 
 
====Optional Header Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| 2 + length
 
| [[#String|string]]
 
|
 
|
 
 
 
|-
 
| 2 + length
 
| [[#String|string]]
 
|
 
|
 
 
 
|-
 
| 28
 
| struct?
 
|
 
|
 
 
 
|-
 
| 14
 
| struct?
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
 
|}
 
 
 
====Header (2) Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| 15
 
| struct?
 
|
 
|
 
 
 
|-
 
| 2 + length
 
| [[#String|string]]
 
| World name
 
|
 
 
 
|}
 
 
 
====Data Blocks====
 
=====IDs  Block=====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Wood Matgloss IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Stone Matgloss IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Metal Matgloss IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Plant Matgloss IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Creature Body IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Creature Body Gloss IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Creature IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Item IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Entity IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Word IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Symbol IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Language IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Color IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Shape IDs
 
|
 
 
 
|-
 
| variable
 
| [[#String List|stringlist]]
 
| Reaction IDs
 
|
 
 
 
|}
 
 
 
====Civilization Data Block====
 
{| 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.
 
 
 
|-
 
| variable
 
| [[#Long List|longlist]]
 
| Civilization IDs?
 
|
 
 
 
|-
 
| variable
 
| [[#Long List|longlist]]
 
| Unit IDs?
 
|
 
 
 
|-
 
| variable
 
| [[#Long List|longlist]]
 
|
 
|
 
 
 
|-
 
| variable
 
| [[#Long List|longlist]]
 
|
 
|
 
 
 
|-
 
| variable
 
| [[#Long List|longlist]]
 
|
 
|
 
 
 
|-
 
| variable
 
| [[#Civilization Structure|civ struct]] * civ count
 
| Civilization data
 
|
 
 
 
|}
 
 
 
====Region Information Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| variable
 
| string
 
| *START REGION SAVE*
 
|
 
 
 
|-
 
| 15
 
|
 
|
 
|
 
 
 
|-
 
| variable
 
| [[#Region_Information|Region Information]]
 
|
 
|
 
 
 
|}
 
 
 
====Region Dimensions Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| variable
 
| string
 
| *START REGION DIM SAVE*
 
|
 
 
 
|-
 
| 2
 
| short
 
| Width
 
|
 
 
 
|-
 
| 2
 
| short
 
| Height
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 2
 
| short
 
|
 
| Depth? (as in z-layers)
 
 
 
|}
 
 
 
====Region Map Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| variable
 
| string
 
| *START REGION MAP SAVE*
 
|
 
 
 
|-
 
| 1
 
| byte
 
| Has region maps
 
| Following region map array not present if this is 0.
 
|
 
 
 
|-
 
| variable
 
| Array of [[#Region_Map|Region Map]]
 
| Region Maps
 
| Count = Width * Height
 
 
 
|-
 
| 1
 
| byte
 
| Has world map?
 
| Following world map not present if this is 0.
 
|
 
 
 
|-
 
| variable
 
|
 
| World Map?
 
| size is ((width + 15) >> 4) * ((height + 15) >> 4) * 4 (16 bytes for 17x17 world)
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
| Count of following region information container array
 
|
 
 
 
|-
 
| variable
 
| [[#Region_Information_Container|Region Information Container]]
 
| Array of Region Information Container
 
|
 
 
 
|}
 
 
 
====Region Geology Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| variable
 
| string
 
| *START REGION GEOLOGY SAVE*
 
|
 
 
 
|-
 
| 4
 
| long
 
| Count of geology information
 
|
 
 
 
|-
 
| variable
 
| array of [[#Region_Geology|Region Gelogy]]
 
| Array of geology information, by previous count
 
|
 
 
 
|}
 
 
 
====Region Subregion Block====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| variable
 
| string
 
| *START REGION SUBREGION SAVE*
 
|
 
 
 
|-
 
| 4
 
| long
 
| Count of subregion information
 
|
 
 
 
|-
 
| variable
 
| array of [[#Region_Subregion|Region Subregion]]
 
| Array of subregion information, by previous count
 
 
|  
 
|  
  
 
|}
 
|}
 +
[[Category:Hacking]]

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)