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/Memory research"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 253: Line 253:
  
 
=Structures=
 
=Structures=
 +
==Classes==
 +
===Item===
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="5%" | Offset
 +
! width="10%" | Size
 +
! width="10%" | Type
 +
! width="20%" | Name
 +
! width="55%" | Notes
 +
 +
|-
 +
| <code>0x00</code>
 +
| 4
 +
| pointer
 +
| VTable
 +
|
 +
 +
|-
 +
| <code>0x0C</code>
 +
| 4
 +
| ulong
 +
| Flags
 +
|
 +
{| border="1" cellpadding="2" width="100%"
 +
! width="30%" colspan="2" | Flag
 +
! width="70%" | Description
 +
 +
|-
 +
| width="15%" | 0x80000
 +
| width="15%" | 1 << 19
 +
| Forbidden
 +
 +
|}
 +
 +
|-
 +
| <code>0x14</code>
 +
| 4
 +
| long
 +
| Item ID
 +
 +
|}
 +
 
==Map Block==
 
==Map Block==
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
Line 262: Line 303:
  
 
|-
 
|-
| <code>0000h</code>
+
| <code>0x0000</code>
 
| 4
 
| 4
 
| pointer
 
| pointer
Line 269: Line 310:
  
 
|-
 
|-
| <code>005Eh</code>
+
| <code>0x005E</code>
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
| Unknown
+
| Type
 
|  
 
|  
  
 
|-
 
|-
| <code>0260h</code>
+
| <code>0x0260</code>
 
| 4 * 16 * 16
 
| 4 * 16 * 16
 
| list of longs
 
| list of longs
Line 286: Line 327:
  
 
|-
 
|-
| width="15%" | 200h
+
| width="15%" | 0x200
 
| width="15%" | 1 << 9
 
| width="15%" | 1 << 9
 
| Hidden
 
| Hidden
  
 
|-
 
|-
| 400000h
+
| 0x400000
 
| 1 << 22
 
| 1 << 22
 
| Damp?
 
| Damp?
  
 
|-
 
|-
| 10000000h
+
| 0x10000000
 
| 1 << 28
 
| 1 << 28
 
| Mossy
 
| Mossy
Line 303: Line 344:
  
 
|-
 
|-
| <code>0660h</code>
+
| <code>0x0660</code>
 
| 4 * 16 * 16
 
| 4 * 16 * 16
 
| list of longs
 
| list of longs
Line 314: Line 355:
  
 
|-
 
|-
| width="15%" | 40h
+
| width="15%" | 0x40
 
| width="15%" | 1 << 6
 
| width="15%" | 1 << 6
 
| Muddy
 
| Muddy
  
 
|-
 
|-
| 80000000h
+
| 0x80000000
 
| 1 << 31
 
| 1 << 31
 
| Snow-covered
 
| Snow-covered
Line 326: Line 367:
  
 
|-
 
|-
| <code>0A60h</code>
+
| <code>0x0A60</code>
 
| 1 * 16 * 16
 
| 1 * 16 * 16
 
| list of bytes
 
| list of bytes
Line 333: Line 374:
  
 
|-
 
|-
| <code>0B60h</code>
+
| <code>0x0B60</code>
 
| 4 * 16 * 16
 
| 4 * 16 * 16
 
| list of longs
 
| list of longs
Line 340: Line 381:
  
 
|-
 
|-
| <code>1160h</code>
+
| <code>0x1160</code>
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
Line 347: Line 388:
  
 
|-
 
|-
| <code>1360h</code>
+
| <code>0x1360</code>
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
Line 354: Line 395:
  
 
|-
 
|-
| <code>1560h</code>
+
| <code>0x1560</code>
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
Line 361: Line 402:
  
 
|-
 
|-
| <code>1760h</code>
+
| <code>0x1760</code>
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
Line 368: Line 409:
  
 
|-
 
|-
| <code>1960h</code>
+
| <code>0x1960</code>
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
Line 375: Line 416:
  
 
|-
 
|-
| <code>1B60h</code>
+
| <code>0x1B60</code>
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts

Revision as of 03:07, 6 November 2007

v0.27.169.33a

Useful Offsets

Name Size Type Notes Offset
Item vector vector Also used during embarking. 0x01416AD8
Next item id 4 long When a new item is added to the item vector, it is assigned this value. This value is then increased by 1. 0x00BDDCB4

Classes

Name Parent Notes Object Size VTable Offset
Item 0x008AD7B4
0x00888D74 Item 0x00888D74
0x00892464 0x00888D74 0x00892464
Weapon 0x00892464 0x7C 0x00894F0C
Ammo 0x00892464 0x7C 0x008962BC
Anvil 0x00892464 0x78 0x008B5814
Seed 0x00888D74 0x64 0x0089CA0C
Bag 0x00892464 0x78 0x00895FEC
Leather 0x00888D74 0x60 0x008AFE0C
Cloth 0x00892464 0x78 0x008B0EF4
Thread Item 0x6C 0x0089D54C
Rope 0x00892464 0x78 0x00897C3C
Hat 0x00892464 0x7C 0x00895A4C
Shirt 0x00892464 0x7C 0x008951DC
Pants 0x00892464 0x7C 0x0089658C
Gloves 0x00892464 0x84? 0x00895D1C
Shoes 0x00892464 0x7C 0x008954AC
Shield 0x00892464 0x7C 0x0089577C
Amulet 0x00892464 0x78 0x008B4464
Bracelet 0x00892464 0x78 0x008B5274
Earring 0x00892464 0x78 0x008B4FA4
Scepter 0x00892464 0x78 0x008B4734
Crown 0x00892464 0x78 0x008B4A04
Idol 0x00892464 0x78 0x008B4194
Ring 0x00892464 0x78 0x008B4CD4
Barrel 0x00892464 0x80 0x0089496C
Log 0x00888D74 0x5C 0x008AED2C
Lye 0x00888D74 0x60 0x00889044
Charcoal 0x00888D74 0x60 0x008ADC4C
Char 0x00888D74 0x60 0x00893B5C
Cage 0x00892464 0x78 0x0x00897F0C

Structures

Classes

Item

Offset Size Type Name Notes
0x00 4 pointer VTable
0x0C 4 ulong Flags
Flag Description
0x80000 1 << 19 Forbidden
0x14 4 long Item ID

Map Block

Offset Size Type Name Notes
0x0000 4 pointer Unknown
0x005E 2 * 16 * 16 list of shorts Type
0x0260 4 * 16 * 16 list of longs Designation
Flag Description
0x200 1 << 9 Hidden
0x400000 1 << 22 Damp?
0x10000000 1 << 28 Mossy
0x0660 4 * 16 * 16 list of longs Unknown

Is probably flags?

Flag Description
0x40 1 << 6 Muddy
0x80000000 1 << 31 Snow-covered
0x0A60 1 * 16 * 16 list of bytes Unknown
0x0B60 4 * 16 * 16 list of longs Pathfinding
0x1160 2 * 16 * 16 list of shorts Unknown
0x1360 2 * 16 * 16 list of shorts Unknown
0x1560 2 * 16 * 16 list of shorts Temperature #1 10100 or above counts as 'Warm'.
0x1760 2 * 16 * 16 list of shorts Temperature #2
0x1960 2 * 16 * 16 list of shorts Unknown
0x1B60 2 * 16 * 16 list of shorts Unknown