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.

v0.34:Memory hacking

From Dwarf Fortress Wiki
Jump to navigation Jump to search
This article is about an older version of DF.

Version identification[edit]

Version MD5 hash PE timestamp
0.34.01 legacy 4749a0ac0ac6f3e866f416bc60c0d19c 4F390718
0.34.01 SDL 8d50fce62595a6f78398ba1902e7c23b 4F391A33
0.34.02 legacy c3072eeb18a7c0e61747a2468f0a80d2 4F3F76BF
0.34.02 SDL f32b834b14108118119c0314d33dac19 4F3F88BC
0.34.03 legacy ecc7acf5aa5e0d81c2f55cdad14823ca 4F4CC161
0.34.03 SDL 24a3aafd5c1415ed1a0b1020fb70f0a1 4F4CD85B
0.34.04 legacy e8d3e0c6622c88b572b727d2373e8162 4F4D8635
0.34.04 SDL 41d065b8187ec76b908541a1fb6bce1e 4F4D9726
0.34.05 legacy 65e376aba31a9b6f2fe2c0e0282cb1d7 4F55E19C
0.34.05 SDL 01c0a10b1291f5d0b58f25a35722a416 4F55F23E
0.34.06 legacy d87a411de87fd42fd755fbd8a2a54175 4F6C279C
0.34.06 SDL cd9de11f650938408f810443a16a4c6f 4F6C34CA
0.34.07 legacy 17b407e2b1e179eca349ce3dab532073 4F758B28
0.34.07 SDL 7e574bedd5ffe13d7cb6cf8f55e27ccf 4f7592fe
0.34.08 legacy 6a60a120fde2c5e89c9dc6fdbcc2abe3 4FB0CBAD
0.34.08 SDL 5d65238944ebdccb4221890b1b504189 4FB0CCBA
0.34.09 legacy 107f5d2c98dbb479c4133234dfdb7f83 4FB4BCDA
0.34.09 SDL 195417b9a9ee0ec062a0949489e70b2f 4FB4C506
0.34.10 legacy 92062f40505d2b2f9323569c20d77c41 4FB9FC18
0.34.10 SDL d2ddce3bcac9114272484b6ff4295fd2 4FBA073A


General offsets[edit]

Legacy versions[edit]

Description 0.34.01 legacy 0.34.02 legacy 0.34.03 legacy 0.34.04 legacy 0.34.05 legacy
cursor_xyz BF5518 BF1518
mouse_x
mouse_y BF551C BF151C
mouse_z BF5520 BF1520
pause_state ? ? 166A27B


window_dims 19F29C8 19ee9d0
window_grid_x
window_grid_y 19F29CC 19ee9d4
window_x (viewport_x) 10323F0 102E3F0
window_y (viewport_y) 1060600 105C600
window_z (viewport_z) 10605D8 105C5D8
Description 0.34.06 legacy 0.34.07 legacy 0.34.08 legacy 0.34.09 legacy 0.34.10 legacy
cursor_xyz C04518 C09518 C435C8 C445C8
mouse_x
mouse_y C0451C C0951C C435CC C445CC
mouse_z C04520 C09520 C435D0 C445D0
window_dims 1A01998 1A06998 1A41A88 1A42A88
window_grid_x
window_grid_y 1A0199C 1A0699C 1A41A8C 1A42A8C
window_x (viewport_x) 10413F0 10463F0 1080518 1081518
window_y (viewport_y) 106F600 1074600 10AE728 10AF728
window_z (viewport_z) 106F5D8 10745D8 10AE700 10AF700


SDL versions[edit]

Description 0.34.01 SDL 0.34.02 SDL 0.34.03 SDL 0.34.04 SDL 0.34.05 SDL 0.34.06 SDL
can_save ? 15C8752 15C1752 15C2752 160E752
cursor_xyz C0E848 C0F848 C08848 C09848 C55848
mouse_x
mouse_y C0E84C C0F84C C0884C C0984C C5584C
mouse_z C0E850 C0F850 C08850 C09850 C55850
pause_state ? 15C8756 15C1756 15C2756 160E756
window_dims 19265B4 19275D4 19205DC 19215DC 196D5EC
window_grid_x
window_grid_y 19265B8 19275D8 19205E0 19215E0 196D5F0
window_x (viewport_x) F8B8AC F8C8CC F858CC F868CC 0FD28CC
window_y (viewport_y) FB9AB8 FBAAD8 FB3AD8 FB4AD8 1000AD8
window_z (viewport_z) FB9A90 FBAAB0 FB3AB0 FB4AB0 1000AB0
view_state ? C0F920 C08920 C09920
Description 0.34.07 SDL 0.34.08 SDL 0.34.09 SDL 0.34.10 SDL
cursor_xyz C5A848 C96848 C97848
mouse_x
mouse_y C5A84C C9684C C9784C
mouse_z C5A850 C96850 C97850
window_dims 19725EC 19AE974 19AF974
window_grid_x
window_grid_y 19725F0 19AE978 19AF978
window_x (viewport_x) 0FD78CC 1013A04 1014A04
window_y (viewport_y) 1005AD8 1041C14 1042C14
window_z (viewport_z) 1005AB0 1041BEC 1042BEC
population_cap 196fa64
child_number_cap 196FA68
child_percent_cap 196FA6C


Map data[edit]

Legacy versions[edit]

Description 0.34.01 legacy 0.34.02 legacy 0.34.03 legacy 0.34.04 legacy 0.34.05 legacy
map_data 18AD878 18A9878
map_info 18AD890 18A9890
map x_count (blocks)
map y_count (blocks) 18AD894 18A9894
map z_count (blocks) 18AD898 18A9898
map x_count (tiles) 18AD89C 18A989C
map y_count (tiles) 18AD8A0 18A98A0
map z_count (tiles) 18AD8A4 18A98A4
Description 0.34.06 legacy 0.34.07 legacy 0.34.08 legacy 0.34.09 legacy 0.34.10 legacy
map_data 18BC840 18C1840 18FC818 18FD818
map_info 18BC858 18C1858 18FC830 18FD830


SDL versions[edit]

Description 0.34.01 SDL 0.34.02 SDL 0.34.03 SDL 0.34.04 SDL 0.34.05 SDL 0.34.06 SDL
map_data 17E1498 17E24B8 17DB4B8 17DC4B8 18284C8
map_info 17E14B0 17E24D0 17DB4D0 17DC4D0 18284E0
map x_count (blocks)
map y_count (blocks) 17E14B4 17E24D4 17DB4D4 17DC4D4 18284E4
map z_count (blocks) 17E14B8 17E24D8 17DB4D8 17DC4D8 18284E8
map x_count (tiles) 17E14BC 17E24DC
map y_count (tiles) 17E14C0 17E24E0
map z_count (tiles) 17E14C4 17E24E4
Description 0.34.07 SDL 0.34.08 SDL 0.34.09 SDL 0.34.10 SDL
map_data 182D4C8 1869738 186A738
map_info 182D4E0 1869750 186A750


map_info struct[edit]

Type Name Description
int32 block_count_x Size of the current map region in 16x16 blocks.
int32 block_count_y
int32 block_count_z Should be the same as tile_count_z
int32 tile_count_x Size of the current map region in tiles.
int32 tile_count_y
int32 tile_count_z
int32 region_x Position of the current map region within the world as a whole.
int32 region_y
int32 region_z Base Z-level - add this to Z coordinates to get the Z-level displayed on the screen

Map block data offsets[edit]

Description 0.34.01–10
block_events 0004
block_burrows 0014
local_feature 0020
global_feature 0024
block_items 0038
block_flows 0048
block_vegetation 0060
map_data_map_x_offset 0070
map_data_map_y_offset 0072
map_data_map_z_offset 0074
map_data_tiletype_offset 007a
map_data_designation_offset 027c
map_data_occupancy_offset 067c
map_data_0a60_offset 0A7c
map_data_pathfinding_offset 0D7c
map_data_1160_offset 117c
map_data_1360_offset 137c
map_data_temperature1_offset 157c
map_data_temperature2_offset 177c
map_data_1960_offset 197c
map_data_1b60_offset 1B7c