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 62: | Line 54: | ||
| 28 | | 28 | ||
| | | | ||
− | | | + | | |
− | | | + | | Not a string, just a coincidence. |
|- | |- | ||
Line 107: | Line 99: | ||
| 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 252: | ||
| 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 299: | Line 278: | ||
| | | | ||
| Invader | | Invader | ||
− | |||
|- | |- | ||
Line 306: | Line 284: | ||
| Tame | | Tame | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 430: | Line 399: | ||
| <code>0x0100</code> | | <code>0x0100</code> | ||
| 4 | | 4 | ||
− | | | + | | |
− | | | + | | |
| | | | ||
Line 594: | Line 563: | ||
| | | | ||
| | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| <code>0x0210</code> | | <code>0x0210</code> | ||
− | | | + | | 36 |
− | | | + | | |
− | | | + | | |
− | | | + | | |
|- | |- | ||
| <code>0x0214</code> | | <code>0x0214</code> | ||
| 2 | | 2 | ||
− | | | + | | |
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 654: | Line 616: | ||
| <code>0x029C</code> | | <code>0x029C</code> | ||
| 4 | | 4 | ||
− | | | + | | |
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 1,101: | Line 1,063: | ||
| <code>0x04C4</code> | | <code>0x04C4</code> | ||
| 4 | | 4 | ||
− | | | + | | |
| | | | ||
| | | | ||
Line 1,123: | Line 1,085: | ||
| 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,299: | ||
| 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,305: | ||
| 4 | | 4 | ||
| long | | long | ||
− | | | + | | |
− | | | + | | |
|} | |} | ||
Line 1,381: | Line 1,343: | ||
| 2 | | 2 | ||
| short | | short | ||
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 1,388: | Line 1,350: | ||
| 2 | | 2 | ||
| short | | short | ||
− | | | + | | |
− | | | + | | |
|- | |- | ||
Line 1,402: | Line 1,364: | ||
| 4 | | 4 | ||
| long | | long | ||
− | | | + | | |
− | | | + | | |
|} | |} | ||
Line 2,572: | Line 2,534: | ||
| short | | short | ||
| ID | | ID | ||
− | | | + | | |
|- | |- | ||
Line 2,722: | Line 2,684: | ||
|} | |} | ||
− | ==== 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,696: | ||
| 2 | | 2 | ||
| short | | short | ||
− | | | + | | |
− | | | + | | |
|- | |- |