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 40d:Memory hacking/v0.27.169.33c

Jump to navigation Jump to search

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

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "40d"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

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 5: Line 5:
  
 
<pre>
 
<pre>
pe_header_timestamp              == 47480E76
 
 
map_data_loc                    == 0145F560
 
map_data_loc                    == 0145F560
 
map_x_count_loc                  == 0145F578
 
map_x_count_loc                  == 0145F578
 
map_y_count_loc                  == 0145F57C
 
map_y_count_loc                  == 0145F57C
 
map_z_count_loc                  == 0145F580
 
map_z_count_loc                  == 0145F580
race_data_vector_loc            == 01460F40
 
 
dwarven_race_index_loc          == 0123EAC8
 
dwarven_race_index_loc          == 0123EAC8
 
main_creature_vector_loc        == 0141DA30
 
main_creature_vector_loc        == 0141DA30
Line 16: Line 14:
 
yet_another_creature_vector_loc  == 0141DA80
 
yet_another_creature_vector_loc  == 0141DA80
 
whathe_another_creature_vector_loc == 0141DA10
 
whathe_another_creature_vector_loc == 0141DA10
number_of_dwarves_loc            == 00789315
 
initial_starting_points_loc      == 007884CA
 
art_defacement_malus_loc        == 007A301F
 
 
current_unit_focus_loc          == 00C36540
 
current_unit_focus_loc          == 00C36540
 
next_creature_id_loc            == 00C0E9EC
 
next_creature_id_loc            == 00C0E9EC
language_vector_loc              == 01461060
+
art_defacement_malus_loc        == 007A301F
starting_skills_limit_loc        == 00785314
 
starting_skills_increment_loc    == 0078522F
 
starting_skills_decrement_loc    == 007853D1
 
 
</pre>
 
</pre>
  
Line 34: Line 26:
 
=== Creature Structures ===
 
=== Creature Structures ===
 
Be warned that this information is out of date while Rick updates it.
 
Be warned that this information is out of date while Rick updates it.
Some updates by bartavelle
 
 
==== Creature Structure ====
 
==== Creature Structure ====
 
Total of <code>0x664</code> bytes for the structure.
 
Total of <code>0x664</code> bytes for the structure.
Line 62: Line 53:
 
| 28
 
| 28
 
|  
 
|  
| Name of the dwarf, list of indexes to the language table, ends with 0xffffffff
+
|  
| The language tables are in vector 0x1462060, index = 0 is dwarfish, points to a vector of strings
+
| Not a string, just a coincidence.
  
 
|-
 
|-
Line 107: Line 98:
 
| rowspan="2" | Dwarf types. 0x88 is the original dwarf type, 0x8a is the current dwarf type (I'm told Toady stores the original dwarf type for legends). The key is in the "Type ID" table, woefully incomplete.
 
| rowspan="2" | Dwarf types. 0x88 is the original dwarf type, 0x8a is the current dwarf type (I'm told Toady stores the original dwarf type for legends). The key is in the "Type ID" table, woefully incomplete.
  
(Sphr: I actually found that in 33b, 0x88 is the current type while 0x8a is the original type.  Needs to be double verified by somebody else.)
 
 
|-
 
|-
 
| <code>0x008A</code>
 
| <code>0x008A</code>
Line 249: Line 239:
 
|-
 
|-
 
| <code>0x00E4</code>
 
| <code>0x00E4</code>
 +
| 4
 +
| ulong
 +
| Flags
 +
| (1 << 1) Unclear. It is set on dead things. Also, when a merchant caravan arrives, merchants and guards are added to the entity list slightly before they are added to the "u" list - during this period, this bit is set.
 +
 +
|-
 +
| <code>0x00E8</code>
 
| 4
 
| 4
 
| ulong
 
| ulong
Line 258: Line 255:
  
 
|-
 
|-
| width="15%" | <code>0x2</code>
+
| width="15%" | <code>0x8</code>
| width="15%" | 1 << 1
+
| width="15%" | 1 << 3
| Unclear. It is set on dead things. Also, when a merchant caravan arrives, merchants and guards are added to the entity list slightly before they are added to the "u" list - during this period, this bit is set.
+
| Unknown, something to do with <code>0x0324</code>.
  
  
 
|-
 
|-
| <code>0x4</code>
+
| <code>0x80</code>
|  
+
| 1 << 7
| berserk/melancholy/crazy
+
| Appears to be whether or not the creature is dead.
 
 
  
 
|-
 
|-
| <code>0x8</code>
+
| <code>0x8000</code>
|  
+
|
| creator of some artifact
+
| On the ground
 
 
 
|-
 
|-
| <code>0x40</code>
+
| <code>0x10000</code>
|  
+
|
| diplomat or merchant or something?
+
| Flying
  
|-
 
| <code>0x800</code>
 
|
 
| diplomat or merchant or something?
 
  
 
|-
 
|-
| <code>0x1000</code>
+
| <code>0x20000</code>
|  
+
| 1 << 17
| Zombie
+
| Ready for slaughter.
  
 +
|}
  
 
|-
 
|-
| <code>0x2000</code>
+
| <code>0x00EC</code>
 +
| 1
 +
|
 +
|
 
|  
 
|  
| Skeleton (skeleton or zombie counts as undead)
 
  
 
|-
 
|-
| <code>0x20000 / 0x80000 / 0xc0000</code>
+
| <code>0x00EE</code>
 +
| 2
 +
|
 +
|
 
|  
 
|  
| Invader
 
 
  
 
|-
 
|-
| <code>0x4000000</code>
+
| <code>0x00F0</code>
 +
| 2
 
|  
 
|  
| Tame
 
 
|-
 
| <code>0x10000000</code>
 
 
|  
 
|  
| Royal Guard
 
 
|-
 
| <code>0x10000000</code>
 
 
|  
 
|  
| Fortress Guard
 
 
|}
 
  
 
|-
 
|-
| <code>0x00E8</code>
+
| <code>0x00F2</code>
| 4
+
| 1
| ulong
+
| byte
| Flags
+
| Gender
 
|  
 
|  
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
! width="30%" colspan="2" | Flag
+
! width="30%" | Value
 
! width="70%" | Description
 
! width="70%" | Description
  
 
|-
 
|-
| width="15%" | <code>0x8</code>
+
| 0
| width="15%" | 1 << 3
+
| It
| Unknown, something to do with <code>0x0324</code>.
 
  
 +
|-
 +
| 1
 +
| Male
  
 
|-
 
|-
| <code>0x80</code>
+
| 2
| 1 << 7
+
| Female
| Appears to be whether or not the creature is dead.
 
 
 
|-
 
| <code>0x8000</code>
 
|
 
| On the ground
 
|-
 
| <code>0x10000</code>
 
|
 
| Flying
 
  
 +
|}
  
 
|-
 
|-
| <code>0x20000</code>
+
| <code>0x00F4</code>
| 1 << 17
+
| 4
| Ready for slaughter.
+
| long
 +
| Creature ID
 +
| When a new creature is added to the creature vector at <code>0x01416A38</code>, it is assigned the value of the next creature ID and the next creature ID value is then increased by 1. This value most likely does NOT persist between loading games (eg, saving then loading your game and creatures will have different IDs).
  
 
|-
 
|-
| <code>0x40000</code>
+
| <code>0x00F8</code>
 +
| 2
 +
|
 +
|
 
|  
 
|  
| From the underworld
 
 
|}
 
  
 
|-
 
|-
| <code>0x00EC</code>
+
| <code>0x00FC</code>
| 1
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 369: Line 349:
  
 
|-
 
|-
| <code>0x00EE</code>
+
| <code>0x0100</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 376: Line 356:
  
 
|-
 
|-
| <code>0x00F0</code>
+
| <code>0x0104</code>
| 2
+
| 16
|  
+
| [[Memory hacking#Vector|vector]] of shorts
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x00F2</code>
+
| <code>0x0114</code>
| 1
+
| 16
| byte
+
| [[Memory hacking#Vector|vector]] of shorts
| Gender
+
|  
 
|  
 
|  
{| border="1" cellpadding="2" width="100%"
 
! width="30%" | Value
 
! width="70%" | Description
 
  
 
|-
 
|-
| 0
+
| <code>0x0124</code>
| It
+
| 16
 +
| [[Memory hacking#Vector|vector]] of shorts
 +
|
 +
|  
  
 
|-
 
|-
| 1
+
| <code>0x0134</code>
| Male
+
| 4
 +
|
 +
|
 +
|  
  
 
|-
 
|-
| 2
+
| <code>0x0138</code>
| Female
+
| 16
 
+
| [[Memory hacking#Vector|vector]] of ...something...
|}
+
|
 +
|  
  
 
|-
 
|-
| <code>0x00F4</code>
+
| <code>0x01C4</code>
| 4
+
| 1
| long
+
|  
| Creature ID
+
|  
| When a new creature is added to the creature vector at <code>0x01416A38</code>, it is assigned the value of the next creature ID and the next creature ID value is then increased by 1. This value most likely does NOT persist between loading games (eg, saving then loading your game and creatures will have different IDs).
+
|  
  
 
|-
 
|-
| <code>0x00F8</code>
+
| <code>0x01C5</code>
| 2
+
| 1
 
|  
 
|  
 
|  
 
|  
Line 421: Line 405:
  
 
|-
 
|-
| <code>0x00FC</code>
+
| <code>0x01C8</code>
 
| 4
 
| 4
 
|  
 
|  
Line 428: Line 412:
  
 
|-
 
|-
| <code>0x0100</code>
+
| <code>0x01CC</code>
 
| 4
 
| 4
| Long
 
| Civilization
 
 
|  
 
|  
 
|-
 
| <code>0x0104</code>
 
| 16
 
| [[Memory hacking#Vector|vector]] of shorts
 
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0114</code>
+
| <code>0x01D0</code>
| 16
+
| 4
| [[Memory hacking#Vector|vector]] of shorts
+
|  
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0124</code>
+
| <code>0x01D4</code>
| 16
+
| 2
| [[Memory hacking#Vector|vector]] of shorts
+
|  
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0134</code>
+
| <code>0x01D6</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 463: Line 440:
  
 
|-
 
|-
| <code>0x0138</code>
+
| <code>0x01D8</code>
| 16
+
| 2
| [[Memory hacking#Vector|vector]] of ...something...
+
|  
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x01C4</code>
+
| <code>0x01DC</code>
| 1
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 477: Line 454:
  
 
|-
 
|-
| <code>0x01C5</code>
+
| <code>0x01E0</code>
| 1
+
| 2 + 2 + 2 + 4 + 4
|
 
 
|  
 
|  
 
|  
 
|  
 +
| Unknown structure.
  
 
|-
 
|-
| <code>0x01C8</code>
+
| <code>0x01F0</code>
 
| 4
 
| 4
 
|  
 
|  
Line 491: Line 468:
  
 
|-
 
|-
| <code>0x01CC</code>
+
| <code>0x01F4</code>
 
| 4
 
| 4
 
|  
 
|  
Line 498: Line 475:
  
 
|-
 
|-
| <code>0x01D0</code>
+
| <code>0x01F8</code>
| 4
+
| 2
 +
| short
 +
| Strange mood
 +
| 0xFFFF means no mood
 +
 
 +
|-
 +
| <code>0x01FA</code>
 +
| 2
 
|  
 
|  
 
|  
 
|  
Line 505: Line 489:
  
 
|-
 
|-
| <code>0x01D4</code>
+
| <code>0x01FC</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 512: Line 496:
  
 
|-
 
|-
| <code>0x01D6</code>
+
| <code>0x0200</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 519: Line 503:
  
 
|-
 
|-
| <code>0x01D8</code>
+
| <code>0x0204</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 526: Line 510:
  
 
|-
 
|-
| <code>0x01DC</code>
+
| <code>0x0208</code>
 
| 4
 
| 4
 
|  
 
|  
Line 533: Line 517:
  
 
|-
 
|-
| <code>0x01E0</code>
+
| <code>0x0210</code>
| 2 + 2 + 2 + 4 + 4
+
| 36
 +
|
 
|  
 
|  
 
|  
 
|  
| Unknown structure.
 
  
 
|-
 
|-
| <code>0x01F0</code>
+
| <code>0x0214</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 547: Line 531:
  
 
|-
 
|-
| <code>0x01F4</code>
+
| <code>0x0238</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 554: Line 538:
  
 
|-
 
|-
| <code>0x01F8</code>
+
| <code>0x023A</code>
 
| 2
 
| 2
| short
+
|  
| Strange mood
+
|  
| 0xFFFF means no mood
+
|  
  
 
|-
 
|-
| <code>0x01FA</code>
+
| <code>0x023C</code>
| 2
+
| 16
 +
| [[Memory hacking#Vector|vector]] of pointers to [[#238 Structure|238 struct]]
 
|  
 
|  
 +
| Possibly inventory?
 +
 +
|-
 +
| <code>0x024C</code>
 +
| 16
 +
| [[Memory hacking#Vector|vector]] of longs
 +
| Owned objects
 +
| Each long is an index into the item vector.
 +
 +
|-
 +
| <code>0x028C</code>
 +
| 16
 +
| [[Memory hacking#Vector|vector]] of longs
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x01FC</code>
+
| <code>0x029C</code>
 
| 4
 
| 4
 
|  
 
|  
Line 575: Line 573:
  
 
|-
 
|-
| <code>0x0200</code>
+
| <code>0x02A0</code>
 
| 4
 
| 4
 
|  
 
|  
Line 582: Line 580:
  
 
|-
 
|-
| <code>0x0204</code>
+
| <code>0x02A4</code>
 
| 4
 
| 4
 +
| pointer
 
|  
 
|  
 +
| Appears to be a pointer to another creature.
 +
 +
|-
 +
| <code>0x02A8</code>
 +
| 4
 +
| pointer
 
|  
 
|  
|  
+
| It's a pointer to something, don't know what yet.
  
 
|-
 
|-
| <code>0x0208</code>
+
| <code>0x02AC</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 596: Line 601:
  
 
|-
 
|-
| <code>0x020C</code>
+
| <code>0x02AE</code>
| 4
+
| 2
| ptr
+
|  
| Pointer to the owner's creature struct
+
|  
| Work animal related
+
|  
  
 
|-
 
|-
| <code>0x0210</code>
+
| <code>0x02B0</code>
| 4
 
| Long
 
| Set to 0 for assigned war creatures
 
| Work animal related
 
 
 
|-
 
| <code>0x0214</code>
 
 
| 2
 
| 2
| Short
+
|  
| Id of the owner
+
|  
| Work animal related
+
|  
  
 
|-
 
|-
| <code>0x0238</code>
+
| <code>0x02B2</code>
 
| 2
 
| 2
 
|  
 
|  
Line 624: Line 622:
  
 
|-
 
|-
| <code>0x023A</code>
+
| <code>0x02B4</code>
 
| 2
 
| 2
 
|  
 
|  
Line 631: Line 629:
  
 
|-
 
|-
| <code>0x023C</code>
+
| <code>0x02B8</code>
| 16
+
| 4
| [[Memory hacking#Vector|vector]] of pointers to [[#238 Structure|238 struct]]
+
|  
 +
|  
 
|  
 
|  
| Possibly inventory?
 
  
 
|-
 
|-
| <code>0x024C</code>
+
| <code>0x02BC</code>
 
| 16
 
| 16
| [[Memory hacking#Vector|vector]] of longs
+
| [[Memory hacking#Vector|vector]] of shorts
| Owned objects
+
|  
| Each long is an index into the item vector.
+
|  
  
 
|-
 
|-
| <code>0x028C</code>
+
| <code>0x02CC</code>
 
| 16
 
| 16
| [[Memory hacking#Vector|vector]] of longs
+
| [[Memory hacking#Vector|vector]] of shorts
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x029C</code>
+
| <code>0x02DC</code>
| 4
+
| 16
| Signed Long
+
| [[Memory hacking#Vector|vector]] of shorts
| Money
+
|  
| Bank account
+
|  
  
 
|-
 
|-
| <code>0x02A0</code>
+
| <code>0x02EC</code>
| 4
+
| 16
|  
+
| [[Memory hacking#Vector|vector]] of shorts
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x02A4</code>
+
| <code>0x02FC</code>
| 4
+
| 2
| pointer
+
|
 +
|  
 
|  
 
|  
| Appears to be a pointer to another creature.
 
  
 
|-
 
|-
| <code>0x02A8</code>
+
| <code>0x0300</code>
 
| 4
 
| 4
| pointer
 
 
|  
 
|  
| It's a pointer to something, don't know what yet.
+
|  
 +
|
  
 
|-
 
|-
| <code>0x02AC</code>
+
| <code>0x0304</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 687: Line 685:
  
 
|-
 
|-
| <code>0x02AE</code>
+
| <code>0x0308</code>
| 2
+
| 16
|  
+
| [[Memory hacking#Vector|vector]] of shorts
|  
+
| Bodypart Health
 +
| A list to body part health, the list of ushorts, values range 0 to 15 from what i've seen. 15 being white, 0 being red.
 +
 
 +
|-
 +
| <code>0x0318</code>
 +
| 16
 +
| [[Memory hacking#Vector|vector]] of longs
 
|  
 
|  
 +
| Bodypart related.
  
 
|-
 
|-
| <code>0x02B0</code>
+
| <code>0x032C</code>
 
| 2
 
| 2
 
|  
 
|  
Line 701: Line 706:
  
 
|-
 
|-
| <code>0x02B2</code>
+
| <code>0x0330</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 708: Line 713:
  
 
|-
 
|-
| <code>0x02B4</code>
+
| <code>0x0334</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 715: Line 720:
  
 
|-
 
|-
| <code>0x02B8</code>
+
| <code>0x0338</code>
 
| 4
 
| 4
 
|  
 
|  
Line 722: Line 727:
  
 
|-
 
|-
| <code>0x02BC</code>
+
| <code>0x033C</code>
| 16
+
| 4
| [[Memory hacking#Vector|vector]] of shorts
+
| long
|  
+
| Bleeding level
 
|  
 
|  
  
 
|-
 
|-
| <code>0x02CC</code>
+
| <code>0x0340</code>
| 16
+
| 4
| [[Memory hacking#Vector|vector]] of shorts
+
|  
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x02DC</code>
+
| <code>0x0344</code>
| 16
+
| 4
| [[Memory hacking#Vector|vector]] of shorts
+
|  
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x02EC</code>
+
| <code>0x0348</code>
| 16
+
| 4
| [[Memory hacking#Vector|vector]] of shorts
 
|
 
|
 
 
 
|-
 
| <code>0x02FC</code>
 
| 2
 
 
|  
 
|  
 
|  
 
|  
Line 757: Line 755:
  
 
|-
 
|-
| <code>0x0300</code>
+
| <code>0x034C</code>
 
| 4
 
| 4
 
|  
 
|  
Line 764: Line 762:
  
 
|-
 
|-
| <code>0x0304</code>
+
| <code>0x0350</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 771: Line 769:
  
 
|-
 
|-
| <code>0x0308</code>
+
| <code>0x0352</code>
| 16
+
| 2
| [[Memory hacking#Vector|vector]] of shorts
+
| short
| Bodypart Health
+
| Nauseousness
| A list to body part health, the list of ushorts, values range 0 to 15 from what i've seen. 15 being white, 0 being red.
 
 
 
|-
 
| <code>0x0318</code>
 
| 16
 
| [[Memory hacking#Vector|vector]] of longs
 
 
|  
 
|  
| Bodypart related.
 
  
 
|-
 
|-
| <code>0x032C</code>
+
| <code>0x0354</code>
 
| 2
 
| 2
|  
+
| short
|  
+
| Drowning
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0330</code>
+
| <code>0x0356</code>
| 4
+
| 2
|  
+
| short
|  
+
| Stunned
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0334</code>
+
| <code>0x0358</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 806: Line 797:
  
 
|-
 
|-
| <code>0x0338</code>
+
| <code>0x035A</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 813: Line 804:
  
 
|-
 
|-
| <code>0x033C</code>
+
| <code>0x035C</code>
| 4
+
| 2
| long
+
| short
| Bleeding level
+
| Webbed
|  
+
| How much a creature is webbed
  
 
|-
 
|-
| <code>0x0340</code>
+
| <code>0x035E</code>
| 4
+
| 2
|  
+
| short
|  
+
| Paralysis
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0344</code>
+
| <code>0x0360</code>
| 4
+
| 12
 
|  
 
|  
 
|  
 
|  
Line 834: Line 825:
  
 
|-
 
|-
| <code>0x0348</code>
+
| <code>0x036C</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 841: Line 832:
  
 
|-
 
|-
| <code>0x034C</code>
+
| <code>0x036E</code>
| 4
+
| 2
 
|  
 
|  
 
|  
 
|  
Line 848: Line 839:
  
 
|-
 
|-
| <code>0x0350</code>
+
| <code>0x0370</code>
| 2
+
| 4
|  
+
| long
 +
| Pain level
 
|  
 
|  
 +
 +
|-
 +
| <code>0x0374</code>
 +
| 4
 +
| long
 +
| Exhaustion
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0352</code>
+
| <code>0x0378</code>
| 2
+
| 4
| short
+
| long
| Nauseousness
+
| Hunger
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0354</code>
+
| <code>0x037C</code>
| 2
+
| 4
| short
+
| long
| Drowning
+
| Thirst
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0356</code>
+
| <code>0x0380</code>
| 2
+
| 4
| short
+
| long
| Stunned
+
| Drowsiness
 
|  
 
|  
  
 
|-
 
|-
| <code>0x0358</code>
+
| <code>0x0384</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 883: Line 881:
  
 
|-
 
|-
| <code>0x035A</code>
+
| <code>0x0388</code>
| 2
+
| 16
 +
| [[Memory hacking#Vector|vector]] of pointers to [[#384 Structure|384 struct]]
 
|  
 
|  
 +
|
 +
 +
|-
 +
| <code>0x0398</code>
 +
| 16
 +
| [[Memory hacking#Vector|vector]] of pointers to [[#394 Structure|394 struct]]
 
|  
 
|  
 
|  
 
|  
  
 
|-
 
|-
| <code>0x035C</code>
+
| <code>0x03A8</code>
| 2
+
| 4
| short
 
| Webbed
 
| How much a creature is webbed
 
 
 
|-
 
| <code>0x035E</code>
 
| 2
 
| short
 
| Paralysis
 
|
 
 
 
|-
 
| <code>0x0360</code>
 
| 12
 
 
|  
 
|  
 
|  
 
|  
Line 911: Line 902:
  
 
|-
 
|-
| <code>0x036C</code>
+
| <code>0x03AC</code>
| 2
+
| 4
 
|  
 
|  
 
|  
 
|  
Line 918: Line 909:
  
 
|-
 
|-
| <code>0x036E</code>
+
| <code>0x03B0</code>
| 2
+
| 1
 
|  
 
|  
 
|  
 
|  
Line 925: Line 916:
  
 
|-
 
|-
| <code>0x0370</code>
+
| <code>0x0420</code>
 
| 4
 
| 4
| long
 
| Pain level
 
 
|  
 
|  
 
+
| Strength
 +
|
 +
{| border="1" cellpadding="2" width="50%"
 +
! width="20%" | Value
 +
! width="80%" | Name
 
|-
 
|-
| <code>0x0374</code>
+
| 0 || Nothing
| 4
+
|-
| long
+
| 1 || Strong
| Exhaustion
+
|-
|  
+
| 2 || Very Strong
 
 
 
|-
 
|-
| <code>0x0378</code>
+
| 3 || Extremely Strong
| 4
 
| long
 
| Hunger
 
|
 
 
 
 
|-
 
|-
| <code>0x037C</code>
+
| 4 || Mighty
| 4
 
| long
 
| Thirst
 
|  
 
 
 
 
|-
 
|-
| <code>0x0380</code>
+
| 5 || Ultra-Mighty
| 4
+
|}
| long
 
| Drowsiness
 
|  
 
  
 
|-
 
|-
| <code>0x0384</code>
+
| <code>0x0424</code>
 
| 4
 
| 4
|  
+
|
|  
+
| Agility
|  
+
|
 
+
{| border="1" cellpadding="2" width="50%"
 +
! width="20%" | Value
 +
! width="80%" | Name
 +
|-
 +
| 0 || Nothing
 +
|-
 +
| 1 || Agile
 +
|-
 +
| 2 || Very Agile
 +
|-
 +
| 3 || Extremely Agile
 
|-
 
|-
| <code>0x0388</code>
+
| 4 || Unbelievably Agile
| 16
 
| [[Memory hacking#Vector|vector]] of pointers to [[#384 Structure|384 struct]]
 
|
 
|
 
 
 
 
|-
 
|-
| <code>0x0398</code>
+
| 5 || Perfectly Agile
| 16
+
|}
| [[Memory hacking#Vector|vector]] of pointers to [[#394 Structure|394 struct]]
 
|  
 
|  
 
  
 
|-
 
|-
| <code>0x03A8</code>
+
| <code>0x0428</code>
 
| 4
 
| 4
|  
+
|
|  
+
| Toughness
|
+
|
 
 
|-
 
| <code>0x03AC</code>
 
| 4
 
|
 
|
 
|
 
 
 
|-
 
| <code>0x03B0</code>
 
| 1
 
|
 
|
 
|
 
 
 
|-
 
| <code>0x0420</code>
 
| 4
 
|
 
| Strength
 
|  
 
 
{| border="1" cellpadding="2" width="50%"
 
{| border="1" cellpadding="2" width="50%"
 
! width="20%" | Value
 
! width="20%" | Value
Line 1,013: Line 973:
 
| 0 || Nothing
 
| 0 || Nothing
 
|-
 
|-
| 1 || Strong
+
| 1 || Tough
 
|-
 
|-
| 2 || Very Strong
+
| 2 || Very Tough
 
|-
 
|-
| 3 || Extremely Strong
+
| 3 || Extremely Tough
 
|-
 
|-
| 4 || Mighty
+
| 4 || Unbelievably Tough
 
|-
 
|-
| 5 || Ultra-Mighty
+
| 5 || Superdwarvenly Tough
|}
 
 
 
|-
 
| <code>0x0424</code>
 
| 4
 
|
 
| Agility
 
|
 
{| border="1" cellpadding="2" width="50%"
 
! width="20%" | Value
 
! width="80%" | Name
 
|-
 
| 0 || Nothing
 
|-
 
| 1 || Agile
 
|-
 
| 2 || Very Agile
 
|-
 
| 3 || Extremely Agile
 
|-
 
| 4 || Unbelievably Agile
 
|-
 
| 5 || Perfectly Agile
 
|}
 
 
 
|-
 
| <code>0x0428</code>
 
| 4
 
|
 
| Toughness
 
|
 
{| border="1" cellpadding="2" width="50%"
 
! width="20%" | Value
 
! width="80%" | Name
 
|-
 
| 0 || Nothing
 
|-
 
| 1 || Tough
 
|-
 
| 2 || Very Tough
 
|-
 
| 3 || Extremely Tough
 
|-
 
| 4 || Unbelievably Tough
 
|-
 
| 5 || Superdwarvenly Tough
 
 
|}
 
|}
  
Line 1,101: Line 1,015:
 
| <code>0x04C4</code>
 
| <code>0x04C4</code>
 
| 4
 
| 4
| Total XP
+
|  
 
|  
 
|  
 
|  
 
|  
Line 1,123: Line 1,037:
 
| 16
 
| 16
 
| [[Memory hacking#Vector|vector]] of pointers to [[#4E4 Structure|4E4 struct]]
 
| [[Memory hacking#Vector|vector]] of pointers to [[#4E4 Structure|4E4 struct]]
| Recent events
+
|  
 
|  
 
|  
  
Line 1,337: Line 1,251:
 
| long
 
| long
 
| Skill rating
 
| Skill rating
| The upper word is the actual rating (0:Dabbling to 15:Legendary).  The lower word does not seem to fluctuate.
+
| The upper word is the actual rating (0:Dabbling to 15:Legendary).  The lower word is likely the experience in that skill, akin to how you see it in Adventure Mode whereby a level 10 skill requires 1000 points of experience to advance.
  
 
|-
 
|-
Line 1,343: Line 1,257:
 
| 4
 
| 4
 
| long
 
| long
| XP
+
|  
| Actual XP in that skill
+
|  
  
 
|}
 
|}
Line 1,381: Line 1,295:
 
| 2
 
| 2
 
| short
 
| short
| Object type?
+
|  
| 0=wood, 1=rocks, ...
+
|  
  
 
|-
 
|-
Line 1,388: Line 1,302:
 
| 2
 
| 2
 
| short
 
| short
| Material?
+
|  
| when stuff at 0x4 is 1, this controls the rock type
+
|  
  
 
|-
 
|-
Line 1,402: Line 1,316:
 
| 4
 
| 4
 
| long
 
| long
| Padding
+
|  
| Not used
+
|  
  
 
|}
 
|}
Line 2,572: Line 2,486:
 
| short
 
| short
 
| ID
 
| ID
| ID11=last drink time
+
|  
  
 
|-
 
|-
Line 2,722: Line 2,636:
 
|}
 
|}
  
==== 4E4 Structure (recent events) ====
+
==== 4E4 Structure ====
 
{| border="1" cellpadding="2" width="100%"
 
{| border="1" cellpadding="2" width="100%"
 
! width="10%" | Offset
 
! width="10%" | Offset
Line 2,734: Line 2,648:
 
| 2
 
| 2
 
| short
 
| short
| Event type
+
|  
| details @ 7D1AF0
+
|  
  
 
|-
 
|-

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)