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.

Difference between revisions of "40d:Memory hacking/v0.27.169.33d"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
[[Category:Hacking]]
 
== Addresses ==
 
== Addresses ==
 
<pre>
 
<pre>
 +
pe_header_timestamp              == 475099AA
 
map_data_loc                    == 01460560
 
map_data_loc                    == 01460560
 
map_x_count_loc                  == 01460578
 
map_x_count_loc                  == 01460578
 
map_y_count_loc                  == 0146057C
 
map_y_count_loc                  == 0146057C
 
map_z_count_loc                  == 01460580
 
map_z_count_loc                  == 01460580
 +
race_data_vector_loc            == 01461F40
 
dwarven_race_index_loc          == 0123FAC8
 
dwarven_race_index_loc          == 0123FAC8
 
main_creature_vector_loc        == 0141EA30
 
main_creature_vector_loc        == 0141EA30
Line 10: Line 13:
 
yet_another_creature_vector_loc  == 0141EA80
 
yet_another_creature_vector_loc  == 0141EA80
 
whathe_another_creature_vector_loc == 0141EA10
 
whathe_another_creature_vector_loc == 0141EA10
 +
number_of_dwarves_loc            == 00789635
 +
initial_starting_points_loc      == 007887EA
 
art_defacement_malus_loc        == 007A332F
 
art_defacement_malus_loc        == 007A332F
 
current_unit_focus_loc          == 00C37540
 
current_unit_focus_loc          == 00C37540
 
next_creature_id_loc            == 00C0F9EC
 
next_creature_id_loc            == 00C0F9EC
race_data_vec                    == 01461F40
+
language_vector_loc              == 01462060
Language vector                  == 01462060
+
starting_skills_limit_loc        == 00785634
 +
starting_skills_increment_loc    == 0078554F
 +
starting_skills_decrement_loc    == 007856F1
 
</pre>
 
</pre>
  
Line 33: Line 40:
 
| Token value
 
| Token value
 
| DWARF
 
| DWARF
 +
 +
|-
 +
| <code>0x001C</code>
 +
| 28
 +
| [[Memory hacking#String|string]]
 +
| race name singular
 +
| dwarf
 +
 +
|-
 +
| <code>0x0038</code>
 +
| 28
 +
| [[Memory hacking#String|string]]
 +
| race name plural
 +
| dwarves
  
 
|-
 
|-
Line 38: Line 59:
 
| 28
 
| 28
 
| [[Memory hacking#String|string]]
 
| [[Memory hacking#String|string]]
| String used in the "SuperXXXly tough"
+
| (adjective). String used in the "SuperXXXly tough".
 
| dwarven
 
| dwarven
 +
 +
|-
 +
| <code>0x16C</code>
 +
| 28
 +
| [[Memory hacking#String|string]]
 +
| (to be confirmed). singular young?  for most animals.  dwarf race seems different.  Undiscovered flag?
 +
| "kitten" for the CAT
 +
 +
|-
 +
| <code>0x188</code>
 +
| 28
 +
| [[Memory hacking#String|string]]
 +
| (to be confirmed). plural young?  for most animals.  dwarf race seems different. Undiscovered flag?
 +
| "kittens" for the CAT
 +
 +
|-
 +
| <code>0x3D4</code>
 +
| 28
 +
| [[Memory hacking#String|string]]
 +
| (to be confirmed). If exists (length!=0), this is the male name for race.
 +
| "bull" for the COW race
 +
 +
|-
 +
| <code>0x3F0</code>
 +
| 28
 +
| [[Memory hacking#String|string]]
 +
| (to be confirmed). Also related to male specific.  Could be adjective or young.
 +
| "bull" for the COW race
 +
 +
|-
 +
| <code>0x40C</code>
 +
| 28
 +
| [[Memory hacking#String|string]]
 +
| (to be confirmed). Also related to male specific.  Could be adjective or young.
 +
| "bull" for the COW race

Latest revision as of 21:28, 14 December 2011

Addresses[edit]

pe_header_timestamp              == 475099AA
map_data_loc                     == 01460560
map_x_count_loc                  == 01460578
map_y_count_loc                  == 0146057C
map_z_count_loc                  == 01460580
race_data_vector_loc             == 01461F40
dwarven_race_index_loc           == 0123FAC8
main_creature_vector_loc         == 0141EA30
another_creature_vector_loc      == 0141EA40
yet_another_creature_vector_loc  == 0141EA80
whathe_another_creature_vector_loc == 0141EA10
number_of_dwarves_loc            == 00789635
initial_starting_points_loc      == 007887EA
art_defacement_malus_loc         == 007A332F
current_unit_focus_loc           == 00C37540
next_creature_id_loc             == 00C0F9EC
language_vector_loc              == 01462060
starting_skills_limit_loc        == 00785634
starting_skills_increment_loc    == 0078554F
starting_skills_decrement_loc    == 007856F1

creature.happiness_level at 0x508, no change from .33c

The race_data_vec is a vector of s_race structs ptr:

Offset Size Type Name Notes
0x0000 28 string Token value DWARF
0x001C 28 string race name singular dwarf
0x0038 28 string race name plural dwarves
0x0054 28 string (adjective). String used in the "SuperXXXly tough". dwarven
0x16C 28 string (to be confirmed). singular young? for most animals. dwarf race seems different. Undiscovered flag? "kitten" for the CAT
0x188 28 string (to be confirmed). plural young? for most animals. dwarf race seems different. Undiscovered flag? "kittens" for the CAT
0x3D4 28 string (to be confirmed). If exists (length!=0), this is the male name for race. "bull" for the COW race
0x3F0 28 string (to be confirmed). Also related to male specific. Could be adjective or young. "bull" for the COW race
0x40C 28 string (to be confirmed). Also related to male specific. Could be adjective or young. "bull" for the COW race