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/Memory 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__
=Other memory research resources=
 
* [[Memory hacking|Main memory hacking research]]
 
* [[User:AzureLightning/Memory research|AzureLightning's memory research]]
 
* [[User:Iluxan/Memory research|Iluxan's memory research]]
 
 
 
=v0.27.169.33a=
 
=v0.27.169.33a=
 
==Useful Offsets==
 
==Useful Offsets==
Line 13: Line 8:
 
! width="40%" | Notes
 
! width="40%" | Notes
 
! width="20%" | Offset
 
! width="20%" | Offset
 
|-
 
| Mineral types vector
 
|
 
| [[Memory hacking#Vector|vector]]
 
|
 
| <code>0x01459EF8</code>
 
  
 
|-
 
|-
Line 38: Line 26:
  
 
==Classes==
 
==Classes==
===Item===
 
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="15%" | Name
 
! width="15%" | Name
Line 262: Line 249:
 
| <code>0x78</code>
 
| <code>0x78</code>
 
| <code>0x00897F0C</code>
 
| <code>0x00897F0C</code>
 
|}
 
 
===Block Event===
 
{| border="1" cellpadding="2" width="100%"
 
! width="15%" | Name
 
! width="15%" | Parent
 
! width="50%" | Notes
 
! width="10%" | Object Size
 
! width="10%" | VTable Offset
 
 
|-
 
| <code>Mineral Event</code>
 
|
 
| See [[#Mineral Event|structure information]].
 
| <code>0x2C</code>
 
| <code>0x00887ED4</code>
 
  
 
|}
 
|}
Line 328: Line 298:
  
 
|-
 
|-
| width="15%" | 0x1
+
| width="15%" | 0x8
| width="15%" | 1 << 0
+
| width="15%" | 1 << 3
| Lying on the ground
+
| Held? (in someones inventory)
 
 
|-
 
| 0x2
 
| 1 << 1
 
| Used in job (?) (seen on beds in use, items marked for melting and one corpse piece that was carried away already)
 
 
 
|-
 
| 0x4
 
| 1 << 2
 
| ?
 
 
 
|-
 
| 0x8
 
| 1 << 3
 
| In inventory (bin, creature)
 
 
 
|-
 
| 0x10
 
| 1 << 4
 
| Only seems to occur when not on ground
 
 
 
|-
 
| 0x20
 
| 1 << 5
 
| In inventory (workshop)
 
 
 
|-
 
| 0x40
 
| 1 << 6
 
| Only seems to occur when not on ground
 
 
 
|-
 
| 0x80
 
| 1 << 7
 
| Only seems to occur when not on ground
 
 
 
|-
 
| 0x100
 
| 1 << 8
 
| Rotten
 
 
 
|-
 
| 0x200
 
| 1 << 9
 
| ?
 
 
 
|-
 
| 0x400
 
| 1 << 10
 
| Only seems to occur when not on ground
 
 
 
|-
 
| 0x800
 
| 1 << 11
 
| ?
 
 
 
|-
 
| 0x1000
 
| 1 << 12
 
| Only seems to occur when not on ground
 
 
 
|-
 
| 0x2000
 
| 1 << 13
 
| ?
 
 
 
|-
 
| 0x4000
 
| 1 << 14
 
| Narrow
 
 
 
|-
 
| 0x8000
 
| 1 << 15
 
| Not produced on-site, does not count towards wealth
 
 
 
|-
 
| 0x10000
 
| 1 << 16
 
| Item shows wear
 
 
 
|-
 
| 0x20000
 
| 1 << 17
 
| ?
 
 
 
|-
 
| 0x40000
 
| 1 << 18
 
| Only seems to occur when not on ground
 
  
 
|-
 
|-
Line 426: Line 306:
 
| 1 << 19
 
| 1 << 19
 
| Forbid
 
| Forbid
 
|-
 
| 0x100000
 
| 1 << 20
 
| ?
 
  
 
|-
 
|-
Line 446: Line 321:
 
| 1 << 23
 
| 1 << 23
 
| Melt
 
| Melt
 
|-
 
| 0x1000000
 
| 1 << 24
 
| Hidden
 
 
|-
 
| 0x2000000
 
| 1 << 25
 
| Only seems to occur when not on ground
 
  
 
|}
 
|}
Line 467: Line 332:
 
|}
 
|}
  
==Map==
+
==Map Block==
===Tile Block===
 
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="5%" | Offset
 
! width="5%" | Offset
Line 480: Line 344:
 
| 4
 
| 4
 
| pointer
 
| pointer
|  
+
| Unknown
|  
+
|
 
 
|-
 
| <code>0x0008</code>
 
|
 
| [[Memory hacking#Vector|vector]]
 
| Events
 
|
 
 
 
|-
 
| <code>0x0054</code>
 
| 2
 
| short
 
| Map X
 
| In tiles, not blocks.
 
 
 
|-
 
| <code>0x0056</code>
 
| 2
 
| short
 
| Map Y
 
| In tiles, not blocks.
 
 
 
|-
 
| <code>0x0058</code>
 
| 2
 
| short
 
| Map Z?
 
| In tiles, not blocks.
 
 
 
|-
 
| <code>0x005A</code>
 
| 2
 
| short
 
| Region X
 
| This doesn't account for the selected area in the local area it seems.
 
 
 
|-
 
| <code>0x005C</code>
 
| 2
 
| short
 
| Region Y
 
| This doesn't account for the selected area in the local area it seems.
 
  
 
|-
 
|-
Line 530: Line 352:
 
| list of shorts
 
| list of shorts
 
| Type
 
| Type
| [[User:Mithaldu/Tile_types_in_DF_memory|tile types (work in progress)]]
+
|  
  
 
|-
 
|-
Line 537: Line 359:
 
| list of longs
 
| list of longs
 
| Designation
 
| Designation
| [[User:Mithaldu/Designation flags in DF memory|designation flags (work in progress)]]
+
|  
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="30%" colspan="2" | Flag
 
! width="30%" colspan="2" | Flag
Line 543: Line 365:
  
 
|-
 
|-
| width="30%" colspan="2" | <code>0x7</code>
+
| width="15%" | 0x200
| Flow size (not a flag)
 
 
 
|-
 
| width="15%" | <code>0x200</code>
 
 
| width="15%" | 1 << 9
 
| width="15%" | 1 << 9
 
| Hidden
 
| Hidden
  
 
|-
 
|-
| colspan="2" | <code>0x3C00</code>
+
| 0x400000
| Soil / Rock Layer ID (not a flag)
 
 
 
|-
 
| <code>0x4000</code>
 
| 1 << 14
 
| Light (Dark when unset)
 
 
 
|-
 
| <code>0x8000</code>
 
| 1 << 15
 
| Subterranean (Above Ground when unset)
 
 
 
|-
 
| <code>0x10000</code>
 
| 1 << 16
 
| Outside (Inside when unset)
 
 
 
|-
 
| colspan="2" | <code>0x1E0000</code>
 
| Unknown ID (not a flag)
 
 
 
|-
 
| <code>0x400000</code>
 
 
| 1 << 22
 
| 1 << 22
 
| Damp?
 
| Damp?
  
 
|-
 
|-
| <code>0x10000000</code>
+
| 0x10000000
 
| 1 << 28
 
| 1 << 28
 
| Mossy
 
| Mossy
Line 590: Line 385:
 
| 4 * 16 * 16
 
| 4 * 16 * 16
 
| list of longs
 
| list of longs
| Occupancy
+
| Unknown
 
|  
 
|  
 +
Is probably flags?
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="30%" colspan="2" | Flag
 
! width="30%" colspan="2" | Flag
Line 597: Line 393:
  
 
|-
 
|-
| width="15%" | <code>0x40</code>
+
| width="15%" | 0x40
 
| width="15%" | 1 << 6
 
| width="15%" | 1 << 6
 
| Muddy
 
| Muddy
  
 
|-
 
|-
| <code>0x80000000</code>
+
| 0x80000000
 
| 1 << 31
 
| 1 << 31
 
| Snow-covered
 
| Snow-covered
Line 612: Line 408:
 
| 1 * 16 * 16
 
| 1 * 16 * 16
 
| list of bytes
 
| list of bytes
|  
+
| Unknown
 
|  
 
|  
  
Line 626: Line 422:
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
|  
+
| Unknown
 
|  
 
|  
  
Line 633: Line 429:
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
|  
+
| Unknown
 
|  
 
|  
  
Line 654: Line 450:
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
|  
+
| Unknown
 
|  
 
|  
  
Line 661: Line 457:
 
| 2 * 16 * 16
 
| 2 * 16 * 16
 
| list of shorts
 
| list of shorts
|  
+
| Unknown
|
 
 
 
|-
 
| <code>0x1D60</code>
 
| 9 bytes
 
|
 
|
 
 
|  
 
|  
  
 
|}
 
|}
 
===Mineral Event===
 
''0x2C bytes.''
 
{| 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>0x04</code>
 
| 2
 
| short
 
| Type
 
| Includes gems, ore.
 
 
|-
 
| <code>0x06</code>
 
| 4
 
| ulong
 
| Tile Bitmask #1
 
| 0,0 to 15,1
 
 
|-
 
| <code>0x0A</code>
 
| 4
 
| ulong
 
| Tile Bitmask #2
 
| 0,2 to 15,3
 
 
|-
 
| <code>0x0E</code>
 
| 4
 
| ulong
 
| Tile Bitmask #3
 
| 0,4 to 15,5
 
|-
 
| <code>0x12</code>
 
| 4
 
| ulong
 
| Tile Bitmask #4
 
| 0,6 to 15,7
 
 
|-
 
| <code>0x16</code>
 
| 4
 
| ulong
 
| Tile Bitmask #5
 
| 0,8 to 15,9
 
 
|-
 
| <code>0x1A</code>
 
| 4
 
| ulong
 
| Tile Bitmask #6
 
| 0,10 to 15,11
 
 
|-
 
| <code>0x1E</code>
 
| 4
 
| ulong
 
| Tile Bitmask #7
 
| 0,12 to 15,13
 
 
|-
 
| <code>0x22</code>
 
| 4
 
| ulong
 
| Tile Bitmask #8
 
| 0,14 to 15,15
 
 
|-
 
| <code>0x28</code>
 
| 4
 
| ulong
 
| Flags
 
|
 
{| border="1" cellpadding="2" width="100%"
 
! width="30%" colspan="2" | Flag
 
! width="70%" | Description
 
 
|-
 
| width="15%" | 0x1
 
| width="15%" | 1 << 0
 
| Discovered
 
 
|}
 
 
|}
 
 
[[Category:Hacking|Memory research]]
 

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)