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 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.
  
(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 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.
 
 
|-
 
| <code>0x4</code>
 
|
 
| berserk/melancholy/crazy
 
 
 
|-
 
| <code>0x8</code>
 
|
 
| creator of some artifact
 
  
 
|-
 
|-
Line 299: Line 278:
 
|  
 
|  
 
| Invader
 
| Invader
 
  
 
|-
 
|-
Line 306: Line 284:
 
| Tame
 
| Tame
  
|-
 
| <code>0x10000000</code>
 
|
 
| Royal Guard
 
 
|-
 
| <code>0x10000000</code>
 
|
 
| Fortress Guard
 
  
 
|}
 
|}
Line 430: Line 399:
 
| <code>0x0100</code>
 
| <code>0x0100</code>
 
| 4
 
| 4
| Long
+
|  
| Civilization
+
|  
 
|  
 
|  
  
Line 594: Line 563:
 
|  
 
|  
 
|  
 
|  
 
|-
 
| <code>0x020C</code>
 
| 4
 
| ptr
 
| Pointer to the owner's creature struct
 
| Work animal related
 
  
 
|-
 
|-
 
| <code>0x0210</code>
 
| <code>0x0210</code>
| 4
+
| 36
| Long
+
|  
| Set to 0 for assigned war creatures
+
|  
| Work animal related
+
|  
  
 
|-
 
|-
 
| <code>0x0214</code>
 
| <code>0x0214</code>
 
| 2
 
| 2
| Short
+
|  
| Id of the owner
+
|  
| Work animal related
+
|  
  
 
|-
 
|-
Line 654: Line 616:
 
| <code>0x029C</code>
 
| <code>0x029C</code>
 
| 4
 
| 4
| Signed Long
+
|  
| Money
+
|  
| Bank account
+
|  
  
 
|-
 
|-
Line 1,101: Line 1,063:
 
| <code>0x04C4</code>
 
| <code>0x04C4</code>
 
| 4
 
| 4
| Total XP
+
|  
 
|  
 
|  
 
|  
 
|  
Line 1,381: Line 1,343:
 
| 2
 
| 2
 
| short
 
| short
| Object type?
+
|  
| 0=wood, 1=rocks, ...
+
|  
  
 
|-
 
|-
Line 1,388: Line 1,350:
 
| 2
 
| 2
 
| short
 
| short
| Material?
+
|  
| when stuff at 0x4 is 1, this controls the rock type
+
|  
  
 
|-
 
|-
Line 1,402: Line 1,364:
 
| 4
 
| 4
 
| long
 
| long
| Padding
+
|  
| Not used
+
|  
  
 
|}
 
|}

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)