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> | ||
− | |||
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 | ||
− | |||
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 | ||
− | |||
− | |||
− | |||
current_unit_focus_loc == 00C36540 | current_unit_focus_loc == 00C36540 | ||
next_creature_id_loc == 00C0E9EC | next_creature_id_loc == 00C0E9EC | ||
− | + | art_defacement_malus_loc == 007A301F | |
− | |||
− | |||
− | |||
</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. | ||
− | |||
==== 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 | ||
| | | | ||
− | | | + | | |
− | | | + | | 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. | ||
− | |||
|- | |- | ||
| <code>0x008A</code> | | <code>0x008A</code> | ||
Line 261: | Line 251: | ||
| width="15%" | 1 << 1 | | width="15%" | 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. | | 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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
Line 285: | Line 263: | ||
|- | |- | ||
− | | <code> | + | | <code>0xa0000</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| | | | ||
| Invader | | Invader | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 430: | Line 381: | ||
| <code>0x0100</code> | | <code>0x0100</code> | ||
| 4 | | 4 | ||
− | | | + | | |
− | | | + | | |
| | | | ||
Line 594: | Line 545: | ||
| | | | ||
| | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| <code>0x0210</code> | | <code>0x0210</code> | ||
− | | | + | | 36 |
− | | | + | | |
− | | | + | | |
− | | | + | | |
|- | |- | ||
| <code>0x0214</code> | | <code>0x0214</code> | ||
| 2 | | 2 | ||
− | | | + | | |
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 654: | Line 598: | ||
| <code>0x029C</code> | | <code>0x029C</code> | ||
| 4 | | 4 | ||
− | | | + | | |
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 1,101: | Line 1,045: | ||
| <code>0x04C4</code> | | <code>0x04C4</code> | ||
| 4 | | 4 | ||
− | | | + | | |
| | | | ||
| | | | ||
Line 1,123: | Line 1,067: | ||
| 16 | | 16 | ||
| [[Memory hacking#Vector|vector]] of pointers to [[#4E4 Structure|4E4 struct]] | | [[Memory hacking#Vector|vector]] of pointers to [[#4E4 Structure|4E4 struct]] | ||
− | | | + | | |
| | | | ||
Line 1,337: | Line 1,281: | ||
| long | | long | ||
| Skill rating | | Skill rating | ||
− | | The upper word is the actual rating (0:Dabbling to 15:Legendary). The lower word | + | | 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,287: | ||
| 4 | | 4 | ||
| long | | long | ||
− | | | + | | |
− | | | + | | |
|} | |} | ||
Line 1,381: | Line 1,325: | ||
| 2 | | 2 | ||
| short | | short | ||
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 1,388: | Line 1,332: | ||
| 2 | | 2 | ||
| short | | short | ||
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 1,402: | Line 1,346: | ||
| 4 | | 4 | ||
| long | | long | ||
− | | | + | | |
− | | | + | | |
|} | |} | ||
Line 2,572: | Line 2,516: | ||
| short | | short | ||
| ID | | ID | ||
− | | | + | | |
|- | |- | ||
Line 2,722: | Line 2,666: | ||
|} | |} | ||
− | ==== 4E4 Structure | + | ==== 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,678: | ||
| 2 | | 2 | ||
| short | | short | ||
− | | | + | | |
− | | | + | | |
|- | |- |