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.32a=
 
 
=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 43: Line 41:
 
| strings
 
| strings
 
| Strings
 
| Strings
|
 
 
|}
 
 
====Byte List====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 4
 
| long
 
| Count
 
|
 
 
|-
 
| 1 * count
 
| bytes
 
| Bytes
 
|
 
 
|}
 
 
====Short List====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 4
 
| long
 
| Count
 
|
 
 
|-
 
| 2 * count
 
| shorts
 
| Shorts
 
 
|  
 
|  
  
Line 110: Line 66:
 
|}
 
|}
  
===Game Structures===
+
===Civilization===
====Info Structure====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| variable
 
| [[#String|string]]
 
|
 
|
 
 
 
|-
 
| variable
 
| [[#String|string]]
 
|
 
|
 
 
 
|-
 
| 28
 
|
 
|
 
|
 
 
 
|-
 
| 14
 
|
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
 
|}
 
 
 
====Unk89 Structure====
 
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 172: Line 82:
 
| 4
 
| 4
 
| long
 
| long
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|}
 
 
====Unk96 Structure====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 2
 
| short
 
 
|  
 
|  
 
|  
 
|  
Line 198: Line 87:
 
|-
 
|-
 
| variable
 
| variable
| [[#Short List|shortlist]]
+
| string
|
 
|
 
 
 
|-
 
| variable
 
| [[#Short List|shortlist]]
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
| unk4 count
 
|
 
 
 
|-
 
| variable
 
| [[#Unk96 Unk4 Structure|unk4 structure]] * unk4 count
 
|
 
|
 
 
 
|}
 
 
 
====Unk96 Unk4 Structure====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
 
|-
 
| 1
 
| byte
 
|
 
|
 
 
 
|-
 
| 1
 
| byte
 
|
 
|
 
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
 
|-
 
| 4
 
| long
 
 
|  
 
|  
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|}
 
 
====Civilization Structure====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 2
 
| short
 
| Probably race?
 
|
 
 
|-
 
| 4
 
| long
 
| Civilization index?
 
|
 
 
|-
 
| variable
 
| [[#String|string]]
 
| Entity type name
 
 
|  
 
|  
  
Line 341: Line 128:
  
 
|-
 
|-
| variable
+
|  
| [[#Info Structure|info]]
+
| optionalstruct
 
|  
 
|  
 
|  
 
|  
Line 840: Line 627:
 
|-
 
|-
 
| variable
 
| variable
| [[#Unk89 Structure|unk89 struct]] * unk89 count
+
| unk89 struct * unk89 count
 
|  
 
|  
 
|  
 
|  
Line 852: Line 639:
 
|-
 
|-
 
| variable
 
| variable
| [[#Unk89 Structure|unk89 struct]] * unk90 count
+
| unk90 struct * unk90 count
 
|  
 
|  
 
|  
 
|  
Line 894: Line 681:
 
|-
 
|-
 
| variable
 
| variable
| [[#Unk96 Structure|unk96 struct]] * unk96 count
+
| unk96 struct * unk96 count
 
|  
 
|  
 
|  
 
|  
Line 955: Line 742:
 
| variable
 
| variable
 
| char * unk105 size
 
| char * unk105 size
|
 
|
 
 
|}
 
 
====Region Information====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 1
 
| byte
 
|
 
| Following data for this block is not present if this is 0.
 
 
|-
 
| variable
 
| string
 
|
 
|
 
 
|-
 
| variable
 
| string
 
|
 
|
 
 
|-
 
| 28
 
|
 
|
 
|
 
 
|-
 
| 14
 
|
 
|
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|}
 
 
====Region Information Container====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| variable
 
| [[#Region_Information|Region Information]]
 
| Region Information
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|}
 
 
====Region Map====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 4
 
| long
 
| follow buffer size
 
|
 
 
|-
 
| variable
 
|
 
|
 
| byte * previous long
 
 
|-
 
| 48
 
|
 
|
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|}
 
 
====Region Geology Subdata====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| bytearray
 
|
 
|
 
 
|-
 
| variable
 
| bytearray
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|}
 
 
====Region Geology====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| 2
 
| short
 
| Count of following subitems
 
|
 
 
|-
 
| variable
 
| array of [[#Region_Geology_Subdata|Region Geology Subdata]]
 
| array of Region Geology Subdata
 
|
 
 
|}
 
 
====Region Subregion====
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Type
 
! width="20%" | Name
 
! width="60%" | Notes
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| variable
 
| [[#Region_Information|Region Information]]
 
| region information
 
|
 
 
|-
 
| 2
 
| short
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| 4
 
| long
 
|
 
|
 
 
|-
 
| 204
 
|
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| variable
 
| shortarray
 
|
 
|
 
 
|-
 
| 1
 
| byte
 
|
 
|
 
 
|-
 
| 1
 
| byte
 
|
 
|
 
 
|-
 
| 1
 
| byte
 
|
 
|
 
 
|-
 
| 1
 
| byte
 
|
 
|
 
 
|-
 
| incomplete...
 
|
 
 
|  
 
|  
 
|  
 
|  
Line 1,310: Line 749:
 
==Files==
 
==Files==
 
===world.dat===
 
===world.dat===
====Version Block====
+
====Version====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,331: Line 770:
 
|}
 
|}
  
====Header (1) Block====
+
====Header (1)====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,383: Line 822:
 
| 4
 
| 4
 
| long
 
| long
| Number of historical figures?
+
|  
 
|  
 
|  
  
Line 1,389: Line 828:
 
| 4
 
| 4
 
| long
 
| long
| Number of historical events
+
|  
 
|  
 
|  
  
Line 1,418: Line 857:
 
|}
 
|}
  
====Optional Header Block====
+
====Optional header block====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,463: Line 902:
 
|}
 
|}
  
====Header (2) Block====
+
====Header (2)====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,484: Line 923:
 
|}
 
|}
  
====Data Blocks====
+
====Data====
=====IDs Block=====
+
=====IDs=====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,584: Line 1,023:
 
|}
 
|}
  
====Civilization Data Block====
+
===...===
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Size
 
! width="10%" | Size
Line 1,604: Line 1,043:
  
 
|-
 
|-
| variable
+
| 4
| [[#Long List|longlist]]
+
| long
| Civilization IDs?
+
| Civilization count?
 
|  
 
|  
  
 
|-
 
|-
 
| variable
 
| variable
| [[#Long List|longlist]]
+
| long * civ count
| Unit IDs?
+
|  
 
|  
 
|  
  
Line 1,635: Line 1,074:
 
|-
 
|-
 
| variable
 
| variable
| [[#Civilization Structure|civ struct]] * civ count
+
| [[#Long List|longlist]]
| 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
 
|
 
 
|  
 
|  
 
|  
 
|  
Line 1,662: Line 1,080:
 
|-
 
|-
 
| variable
 
| variable
| [[#Region_Information|Region Information]]
+
| [[#Civilization|civilization]] * civ count
|
+
| Civilization data
|
 
 
 
|}
 
 
 
====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
 
 
|  
 
|  
  
 
|}
 
|}

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)