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"
Jump to navigation
Jump to search
(→Data) |
m (sort key for hacking category) |
||
(28 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
− | = | + | [[Category:Hacking|Save research]] |
+ | |||
+ | =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. | ||
==Structures== | ==Structures== | ||
− | ===String=== | + | ===Basic Types=== |
+ | ====String==== | ||
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 23: | Line 26: | ||
|} | |} | ||
− | ===String List=== | + | ====String List==== |
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 44: | Line 47: | ||
|} | |} | ||
− | ===Long List=== | + | ====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 | ||
+ | | | ||
+ | |||
+ | |} | ||
+ | |||
+ | ====Long List==== | ||
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 61: | Line 106: | ||
| longs | | longs | ||
| Longs | | Longs | ||
+ | | | ||
+ | |||
+ | |} | ||
+ | |||
+ | ===Game Structures=== | ||
+ | ====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%" | ||
+ | ! width="10%" | Size | ||
+ | ! width="10%" | Type | ||
+ | ! width="20%" | Name | ||
+ | ! width="60%" | Notes | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | 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 | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 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 | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | long | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Long List|longlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 1 | ||
+ | | byte | ||
+ | | Info present | ||
+ | | Following struct is only present if this value is non-zero. | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Info Structure|info]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | long | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | Some more data might be possible here depending, havn't investigated yet (00510074 in .32a). | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Byte List|bytelist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Byte List|bytelist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Byte List|bytelist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Byte List|bytelist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Byte List|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 Structure|unk89 struct]] * unk89 count | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | long | ||
+ | | unk90 count | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Unk89 Structure|unk89 struct]] * unk90 count | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Long List|longlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Long List|longlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Long List|longlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Short List|shortlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | long | ||
+ | | unk96 count | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Unk96 Structure|unk96 struct]] * unk96 count | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | long | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | long | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 2 | ||
+ | | short | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | [[#Long List|longlist]] | ||
+ | | | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | 4 | ||
+ | | long | ||
+ | | unk105 size | ||
+ | | | ||
+ | |||
+ | |- | ||
+ | | variable | ||
+ | | 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 67: | Line 1,310: | ||
==Files== | ==Files== | ||
===world.dat=== | ===world.dat=== | ||
− | ====Version==== | + | ====Version Block==== |
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 88: | Line 1,331: | ||
|} | |} | ||
− | ====Header (1)==== | + | ====Header (1) Block==== |
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 140: | Line 1,383: | ||
| 4 | | 4 | ||
| long | | long | ||
− | | | + | | Number of historical figures? |
| | | | ||
Line 146: | Line 1,389: | ||
| 4 | | 4 | ||
| long | | long | ||
− | | | + | | Number of historical events |
| | | | ||
Line 175: | Line 1,418: | ||
|} | |} | ||
− | ====Optional | + | ====Optional Header Block==== |
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 220: | Line 1,463: | ||
|} | |} | ||
− | ====Header (2)==== | + | ====Header (2) Block==== |
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 241: | Line 1,484: | ||
|} | |} | ||
− | ====Data==== | + | ====Data Blocks==== |
− | =====IDs===== | + | =====IDs Block===== |
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 250: | Line 1,493: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Wood Matgloss IDs | | Wood Matgloss IDs | ||
Line 256: | Line 1,499: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Stone Matgloss IDs | | Stone Matgloss IDs | ||
Line 262: | Line 1,505: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Metal Matgloss IDs | | Metal Matgloss IDs | ||
Line 268: | Line 1,511: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Plant Matgloss IDs | | Plant Matgloss IDs | ||
Line 274: | Line 1,517: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Creature Body IDs | | Creature Body IDs | ||
Line 280: | Line 1,523: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Creature Body Gloss IDs | | Creature Body Gloss IDs | ||
Line 286: | Line 1,529: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Creature IDs | | Creature IDs | ||
Line 292: | Line 1,535: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Item IDs | | Item IDs | ||
Line 298: | Line 1,541: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Entity IDs | | Entity IDs | ||
Line 304: | Line 1,547: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Word IDs | | Word IDs | ||
Line 310: | Line 1,553: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Symbol IDs | | Symbol IDs | ||
Line 316: | Line 1,559: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Language IDs | | Language IDs | ||
Line 322: | Line 1,565: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Color IDs | | Color IDs | ||
Line 328: | Line 1,571: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Shape IDs | | Shape IDs | ||
Line 334: | Line 1,577: | ||
|- | |- | ||
− | | | + | | variable |
| [[#String List|stringlist]] | | [[#String List|stringlist]] | ||
| Reaction IDs | | Reaction IDs | ||
Line 341: | Line 1,584: | ||
|} | |} | ||
− | === | + | ====Civilization Data Block==== |
{| border="1" cellpadding="2" width="100%" | {| border="1" cellpadding="2" width="100%" | ||
! width="10%" | Size | ! width="10%" | Size | ||
Line 359: | Line 1,602: | ||
| | | | ||
| If this is a non-zero value some data follows, not sure of format yet. | | 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 | | 4 | ||
| long | | 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 | | 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 | | variable | ||
− | | [[# | + | | array of [[#Region_Subregion|Region Subregion]] |
− | | | + | | Array of subregion information, by previous count |
| | | | ||
|} | |} |
Latest revision as of 19:50, 8 November 2009
0.27.176.38c[edit]
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[edit]
Basic Types[edit]
String[edit]
Size | Type | Name | Notes |
---|---|---|---|
2 | short | Length | |
x | char | String data of length size. |
String List[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | Count | |
(2 + length) * count | strings | Strings |
Byte List[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | Count | |
1 * count | bytes | Bytes |
Short List[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | Count | |
2 * count | shorts | Shorts |
Long List[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | Count | |
4 * count | longs | Longs |
Game Structures[edit]
Info Structure[edit]
Size | Type | Name | Notes |
---|---|---|---|
variable | string | ||
variable | string | ||
28 | |||
14 | |||
4 | long | ||
2 | short |
Unk89 Structure[edit]
Size | Type | Name | Notes |
---|---|---|---|
2 | short | ||
4 | long | ||
2 | short |
Unk96 Structure[edit]
Size | Type | Name | Notes |
---|---|---|---|
2 | short | ||
variable | shortlist | ||
variable | shortlist | ||
4 | long | unk4 count | |
variable | unk4 structure * unk4 count |
Unk96 Unk4 Structure[edit]
Size | Type | Name | Notes |
---|---|---|---|
1 | byte | ||
1 | byte | ||
2 | short | ||
4 | long | ||
2 | short | ||
2 | short | ||
2 | short | ||
2 | short |
Civilization Structure[edit]
Size | Type | Name | Notes |
---|---|---|---|
2 | short | Probably race? | |
4 | long | Civilization index? | |
variable | string | Entity type name | |
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. |
variable | info | ||
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 | unk89 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 |
Region Information[edit]
Size | Type | Name | 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[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | ||
variable | Region Information | Region Information | |
4 | long |
Region Map[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | follow buffer size | |
variable | byte * previous long | ||
48 | |||
4 | long | ||
4 | long | ||
2 | short |
Region Geology Subdata[edit]
Size | Type | Name | Notes |
---|---|---|---|
2 | short | ||
2 | short | ||
variable | shortarray | ||
variable | shortarray | ||
variable | bytearray | ||
variable | bytearray | ||
2 | short | ||
2 | short |
Region Geology[edit]
Size | Type | Name | Notes |
---|---|---|---|
2 | short | ||
2 | short | ||
2 | short | Count of following subitems | |
variable | array of Region Geology Subdata | array of Region Geology Subdata |
Region Subregion[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | ||
variable | 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... |
Files[edit]
world.dat[edit]
Version Block[edit]
Size | Type | Name | Notes |
---|---|---|---|
4 | long | Version? | Currently 0x4B5 (1205). |
2 | short |
Header (1) Block[edit]
Size | Type | Name | 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[edit]
Size | Type | Name | Notes |
---|---|---|---|
2 + length | string | ||
2 + length | string | ||
28 | struct? | ||
14 | struct? | ||
4 | long | ||
2 | short |
Header (2) Block[edit]
Size | Type | Name | Notes |
---|---|---|---|
15 | struct? | ||
2 + length | string | World name |
Data Blocks[edit]
IDs Block[edit]
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 |
Civilization Data Block[edit]
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. | |
variable | longlist | Civilization IDs? | |
variable | longlist | Unit IDs? | |
variable | longlist | ||
variable | longlist | ||
variable | longlist | ||
variable | civ struct * civ count | Civilization data |
Region Information Block[edit]
Size | Type | Name | Notes |
---|---|---|---|
variable | string | *START REGION SAVE* | |
15 | |||
variable | Region Information |
Region Dimensions Block[edit]
Size | Type | Name | 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[edit]
Size | Type | Name | 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 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 | Array of Region Information Container |
Region Geology Block[edit]
Size | Type | Name | Notes |
---|---|---|---|
variable | string | *START REGION GEOLOGY SAVE* | |
4 | long | Count of geology information | |
variable | array of Region Gelogy | Array of geology information, by previous count |
Region Subregion Block[edit]
Size | Type | Name | Notes |
---|---|---|---|
variable | string | *START REGION SUBREGION SAVE* | |
4 | long | Count of subregion information | |
variable | array of Region Subregion | Array of subregion information, by previous count |