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.31: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.31.01 851c1190b6a7b42f2463967623d18575 4bb45f99
0.31.02 23dfe141c7ea4e63ebb3c618a12b48ec 4bbdf378
0.31.03 94641d97a0ecff6f2194e3d0b310d946 4bc3c470
0.31.04 legacy 98223ef6728797aafd50b0a4c2030a75 4befdde5
0.31.04 SDL 655a895c5b90d15eb9bb71e28c6c62e5 4bf014fa
0.31.05 legacy ac100278c7ec226d8d9ba809534faded 4c090730
0.31.05 SDL 394ff63fc00fedd5df0b36e4beb589bc 4c091569
0.31.06 legacy 0dfe1f3a98f6378acae6133efc2ec6f6 4c0f6a01
0.31.06 SDL c4b7e37dafa2716e31d29110968ac64e 4c0f83d5
0.31.07 legacy 403647e6afbfc5e085b8a5c6d19c02db 4c1caaf9
0.31.07 SDL 1c0b5254af1b8ff9a34b51c3f6609da3 4c1cbe4b
0.31.08 legacy 56f4ae59da5d2be600ca5c9ec9d2a794 4d1d60a0
0.31.08 SDL a83e6b21307cf41fb54c315fa40dec86 4d1d69fe
0.31.09 legacy
0.31.09 SDL 1a85839ab03df082974dc5629d3fbc26 4c3897c0
0.31.10 legacy
0.31.10 SDL 349d1ad6eda7b6c5e87f8e4726a0999a 4c398089
0.31.11 legacy
0.31.11 SDL 552cfa417fd131204ebfee66aefc4adb 4c496d93
0.31.12 legacy ed7cbf10442b56824a032d2bb82f7127 4c4c1527
0.31.12 SDL f0459165a426a9f2dd8d957e9fa7f01d 4c4c32e7
0.31.13 legacy 085dd59d4396f08e96124c3bdef6e2d0 4c908b66
0.31.13 SDL 59f194b0b2103ca5df7601a01ce21280 4c90ada8
0.31.14 legacy 7e07cd0654489e52f25698b1136980df 4c9b4c27
0.31.14 SDL 2da156d1fbaf8192ede9ce91abc5f366 4c9b6efb
0.31.15 legacy 70e42315dd0f69c4ed4de5e2a4ccbcdf 4ca859cd
0.31.15 SDL b4d188dfb592fc813dad31f45407991d 4ca869ea
0.31.16 legacy 0ad6e1203e80f162b211de8d13acb4a7 4ca9c859
0.31.16 SDL 702b3ebaae468f73eb1411af54863013 4ca9d544
0.31.17 legacy 14224c4c8349e6709db9f1a9ad296ab5 4cdc0c76
0.31.17 SDL 2265cdcb215a0f12c5530cfd95d4d6fa 4cdc27a0
0.31.18 legacy f520d8273a235d14a99e071874d5cfe0 4ce278c2
0.31.18 SDL b7be6b9db369d6adb72319dcf780f9f5 4ce2841d
0.31.19 legacy 4036625a5421a05d56613f5614f5bf99 4d5b9f3c
0.31.19 SDL b7d1ff74835e5e8220a7e81e31f5a28d 4d5bc345
0.31.20 legacy 24e845a7eace4346fcf0cbbe62028284 4d72f10d
0.31.20 SDL 5e2725ae9e87ff504ef0b1dcf52f059d 4d734fb5
0.31.21 legacy 10a71f3be47e744b1af04b6a045517ad 4d743206
0.31.21 SDL 3aadcbd781f7d70d5ee552b92c03bc6b 4d743da7
0.31.22 legacy b08f56c57df2ed265cd5525ded4238be 4d8b1dce
0.31.22 SDL e31538a48efcfa6598b15bb938906c6b 4d8b30fc
0.31.23 legacy 0926501487cdc3acc960ea6220fe4e2d 4D8DD5A2
0.31.23 SDL 57ad0d359cc135f5bdf329e517028388 4D8DE854
0.31.24 legacy c58fa740900d279626d17332e33b3731 4D8F2994
0.31.24 SDL eddc258fa59c89481516ad96eb51b35b 4D8F39F9
0.31.25 legacy 69b42e98004d9428137e61c365d0e7fb 4D9068DA
0.31.25 SDL 6ada05fc94785b53efe6aa5728b3756b 4D90764F


General offsets[edit]

Legacy versions[edit]

Description 0.31.01 0.31.02 0.31.03 0.31.04 legacy 0.31.05 legacy
buildings 0166f9a8 ? ? ? ?
current_menu_state 017f6f38 ? ? ?
cursor_xyz ae82cc ae92cc af42b8 af22b8
mouse_x
mouse_y ae82d0 ae92d0 af42bc af22bc
mouse_z ae82d4 ae92d4 af42c0 af22c0
effects_vector 017f6da0 ? ? ? ?
hotkey_start 01476ecc ? ? ? ?
items 0166eda8 ? ? ? ?
language_vector 016affe0 016b1028 01731684 0172f684
notes 01474de8 ? ? ? ?
pause_state 0146e45f ? ? ? ?
settlements 016af4a4 ? ? ? ?
translation_vector 016b0010 016b1058 017316b4 0172f6b4
vegetation 017f6da0 ? ? ? ?
window_dims 17f5abc 17f6b00 ? 1875408
window_grid_x
window_grid_y 17f5ac0 17f6b04 ? 187540c
window_x (viewport_x) 00e32798 ? ? eb1df8
window_y (viewport_y) 00e60838 ? ? edfe98
window_z (viewport_z) 00e60814 ? ? edfe74
world 016aed50 ? ? ? ?
Description 0.31.06 legacy 0.31.07 legacy 0.31.08 legacy 0.31.09 legacy 0.31.10 legacy
cursor_xyz af32b8 af72c0
mouse_x
mouse_y af32bc af72c4
mouse_z af32c0 af72c8
window_dims 1876408 18f7d78
window_grid_x
window_grid_y 187640c 18f7d7c
window_x (viewport_x) eb2df8 f33930
window_y (viewport_y) ee0e98 f61a08
window_z (viewport_z) ee0e74 f619e4
Description 0.31.11 legacy 0.31.12 legacy 0.31.13 legacy 0.31.14 legacy 0.31.15 legacy
cursor_xyz b0b2c0 ab3180 ab5180
mouse_x
mouse_y b0b2c4 ab3184 ab5184
mouse_z b0b2c8 ab3188 ab5188
window_dims 190bea8 18ae950 18b0958
window_grid_x
window_grid_y 190beac 18ae954 18b095c
window_x (viewport_x) f47970 eef7a8 ef17a8
window_y (viewport_y) f75a48 f1d880 f1f880
window_z (viewport_z) f75a24 f1d85c f1f85c
Description 0.31.16 legacy 0.31.17 legacy 0.31.18 legacy 0.31.19 legacy 0.31.20/21 legacy
cursor_xyz ab6180 afd2f0 afe2f0 b36c48 b3cc48
mouse_x
mouse_y ab6184 afd2f4 afe2f4 b36c4c b3cc4c
mouse_z ab6188 afd2f8 afe2f8 b36c50 b3cc50
window_dims 18b19a8 18f8e28 18f9e28 1833908 1939698
window_grid_x
window_grid_y 18b19ac 18f8e2c 18f9e2c 183390c 193969c
window_x (viewport_x) ef27a8 f39a28 f3aa28 f734a8 f794a8
window_y (viewport_y) f20880 f67b00 f68b00 fa16c4 fa76c4
window_z (viewport_z) f2085c f67adc f68adc fa16a0 fa76a0
Description 0.31.22 legacy 0.31.23 legacy 0.31.24 legacy 0.31.25 legacy
cursor_xyz b1fc48
mouse_x
mouse_y b1fc4c
mouse_z b1fc50


window_dims 191c708
window_grid_x
window_grid_y 191c70c
window_x (viewport_x) f5c4a8
window_y (viewport_y) f8a6c4
window_z (viewport_z) f8a6a0
view_state b1fd20

Note[edit]

Version 0.31.03 seems to have a second cursor position block located at 13F008, with the Y and Z values swapped.

SDL versions[edit]

Description 0.31.04 SDL 0.31.05 SDL 0.31.06 SDL 0.31.07 SDL 0.31.08 SDL 0.31.09 SDL
cursor_xyz ae92c8 af12cc af12d0 af32d8 af22d8
mouse_x
mouse_y ae92cc af12d0 af12d4 af32dc af22dc
mouse_z ae92d0 af12d4 af12d8 af32e0 af22e0
language_vector 016bd38c 016c539c ? ? ? ?
translation_vector 016bd3bc 016c53cc ? ? ? ?
window_dims 18030fc 180b10c ? 180d11c 180c11c
window_grid_x
window_grid_y 1803100 180b110 ? 180d120 180c120
window_x (viewport_x) e640dc e6c0dc ? e6e0ec e6d0ec
window_y (viewport_y) e921b0 e9a1b0 ? e9c1c0 e9b1c0
window_z (viewport_z) e9218c e9a18c ? e9a19c e9b19c
Description 0.31.10 SDL 0.31.11 SDL 0.31.12 SDL 0.31.13 SDL 0.31.14 SDL 0.31.15 SDL
cursor_xyz b062d8 ac77f0 ac87f0
mouse_x
mouse_y b062dc ac77f4 ac87f4
mouse_z b062e0 ac77f8 ac87f8
window_dims 182015c 17dc8bc 17dd8bc
window_grid_x
window_grid_y 1820160 17dc8c0 17dd8c0
window_x (viewport_x) e81114 e42c74 e43c74
window_y (viewport_y) eaf1e8 e70d48 e71d48
window_z (viewport_z) eaf1c4 e70d24 e71d24
view_state b063b0
Description 0.31.16 SDL 0.31.17 SDL 0.31.18 SDL 0.31.19 SDL 0.31.20 SDL 0.31.21 SDL
cursor_xyz ac97f0 b107f0 b127f0 b4a7f0 b507f0
mouse_x
mouse_y ac97f4 b107f4 b127f4 b4a7f4 b507f4
mouse_z ac97f8 b107f8 b127f8 b4a7f8 b507f8
window_dims 17de914 1825a2c 1827a2c 186106c 1866dfc
window_grid_x
window_grid_y 17de918 1825a30 1827a30 1861070 1866e00
window_x (viewport_x) e44c74 e8bee4 e8dee4 ec6984 ecc984
window_y (viewport_y) e72d48 eb9fb8 ebbfb8 ef4ba0 efaba0
window_z (viewport_z) e72d24 eb9f94 ebbf94 ef4b7c efab7c
can_save 14c9bdd 15027c5 15087c5
starting_dwarf_count 8f87e2 926d02
starting_point_count 16e4818 172ac6c
view_state b128c8
Description 0.31.22 SDL 0.31.23 SDL 0.31.24 SDL 0.31.25 SDL
cursor_xyz b337f0 b347f0
mouse_x
mouse_y b337f4 b347f4
mouse_z b337f8 b347f8
window_dims 1849e64 184ae64
window_grid_x
window_grid_y 1849e68 184ae68
window_x (viewport_x) eaf984 eb0984
window_y (viewport_y) eddba0 edeba0
window_z (viewport_z) eddb7c edeb7c
can_save 14eb7c5 14ec7c5
starting_dwarf_count 918332
starting_point_count 170ecbc
view_state b348c8

Creature data[edit]

Description 0.31.01 0.31.02 0.31.03 0.31.04 legacy 0.31.04 SDL 0.31.05 legacy 0.31.05 SDL
creatures 0166eccc ? ? ? ? ? ?
creature_vector 0166ecb4 0166fcfc 016ec9f4 01678714 016ea9f4 0168070c
current_cursor_creature 00ae82cc ? ? ? ? ? ?
name 0 ? ? ? ? ? ?
profession 88 ? ? ? ? ? ?
race 8C ? ? ? ? ? ?
position 90 ? ? ? ? ? ?
flags1 F8 ? ? ? ? ? ?
flags2 FC ? ? ? ? ? ?
sex 110 ? ? ? ? ? ?
id 114 ? ? ? ? ? ?
artifact_name 6D0 ? ? ? ? ? ?
labors 770 ? ? ? ? ? ?
happiness 830 ? ? ? ? ? ?


Map data[edit]

Legacy versions[edit]

Description 0.31.01 0.31.02 0.31.03 0.31.04 legacy 0.31.05 legacy
map_data 16ad718 16ae760 172edbc 172cdbc
map x_count (blocks) 16ad738 16ae780 172eddc 172cddc
map y_count (blocks) 16ad73c 16ae784 172ede0 172cde0
map z_count (blocks) 16ad740 16ae788 172ede4 172cde4
region_x 16ad750
region_y 16ad754
region_z 16ad758
Description 0.31.06 legacy 0.31.07 legacy 0.31.08 legacy 0.31.09 legacy 0.31.10 legacy
map_data 172ddbc 17af72c
map x_count (blocks) 172dddc 17af74c
map y_count (blocks) 172dde0 17af750
map z_count (blocks) 172dde4 17af754
Description 0.31.11 legacy 0.31.12 legacy 0.31.13 legacy 0.31.14 legacy 0.31.15 legacy
map_data 17c385c 1769c5c 176bc5c
map x_count (blocks) 17c387c 1769c74 176bc74
map y_count (blocks) 17c3880 1769c78 176bc78
map z_count (blocks) 17c3884 1769c7c 176bc7c
Description 0.31.16 legacy 0.31.17 legacy 0.31.18 legacy 0.31.19 legacy 0.31.20/21 legacy
map_data 176ccac 17b42e4 17b52e4 17ee9b0 17f49b0
map x_count (blocks) 176ccc4 17b42fc 17b52fc 17ee9c8 17f49c8
map y_count (blocks) 176ccc8 17b4300 17b5300 17ee9cc 17f49cc
map z_count (blocks) 176cccc 17b4304 17b5304 17ee9d0 17f49d0
map x_count (tiles) 17ee9d4 17f49d4
map y_count (tiles) 17ee9d8 17f49d8
map z_count (tiles) 17ee9dc 17f49dc
region_x 17ee9e0 17f49e0
region_y 17ee9e4 17f49e4
region_z 17ee9e8 17f49e8
Description 0.31.22 legacy 0.31.23 legacy 0.31.24 legacy 0.31.25 legacy
map_data 17d79d0
map x_count (blocks) 17d79e8
map y_count (blocks) 17d79ec
map z_count (blocks) 17d79f0


SDL versions[edit]

Description 0.31.04 SDL 0.31.05 SDL 0.31.06 SDL 0.31.07 SDL 0.31.08 SDL 0.31.09 SDL
map_data 16baac4 16c2ad4 ? 16c4ae4 16c3ae4
map x_count (blocks) 16baae4 16c2af4 ? 16c4b04 16c3b04
map y_count (blocks) 16baae8 16c2af8 ? 16c4b08 16c3b08
map z_count (blocks) 16baaec 16c2afc ? 16c4b0c 16c3b0c
Description 0.31.10 SDL 0.31.11 SDL 0.31.12 SDL 0.31.13 SDL 0.31.14 SDL 0.31.15 SDL
map_data 16d7b24 1697bdc 1698bdc
map x_count (blocks) 16d7b44 1697bf4 1698bf4
map y_count (blocks) 16d7b48 1697bf8 1698bf8
map z_count (blocks) 16d7b4c 1697bfc 1698bfc
Description 0.31.16 SDL 0.31.17 SDL 0.31.18 SDL 0.31.19 SDL 0.31.20 SDL 0.31.21 SDL
map_data 1699c2c 16e0efc 16e2efc 171c128 1722128
map x_count (blocks) 1699c44 16e0f14 16e2f14 171c140 1722140
map y_count (blocks) 1699c48 16e0f18 16e2f18 171c144 1722144
map z_count (blocks) 1699c4c 16e0f1c 16e2f1c 171c148 1722148
map x_count (tiles) 16e2f20 171c14c 172214c
map y_count (tiles) 16e2f24 171c150 1722150
map z_count (tiles) 16e2f28 171c154 1722154
region_x 16e2f2c 171c158 1722158
region_y 16e2f30 171c15c 172215c
region_z 16e2f34 171c160 1722160
Description 0.31.22 SDL 0.31.23 SDL 0.31.24 SDL 0.31.25 SDL
map_data 1705148 1706148
map x_count (blocks) 1705160 1706160
map y_count (blocks) 1705164 1706164
map z_count (blocks) 1705168 1706168


Map block data offsets[edit]

Description 0.31.01–12 0.31.13–21 0.31.22–25
block_veins 0014 (0008+C) 0008
block_tilefx 0064 (0058+C) 0048 004C
block_vegetation 0084 (0078+C) 0060 0064
map_data_map_x_offset 0090 0070 0074
map_data_map_y_offset 0092 0072 0076
map_data_map_z_offset 0094 0074 0078
map_data_type_offset 009a 007a 007e
map_data_designation_offset 029c 027c 0280
map_data_occupancy_offset 069c 067c 0680
map_data_0a60_offset 0A9c 0A7c 0A80
map_data_pathfinding_offset 0D9c 0D7c 0D80
map_data_1160_offset 119c 117c 1180
map_data_1360_offset 139c 137c 1380
map_data_temperature1_offset 159c 157c 1580
map_data_temperature2_offset 179c 177c 1780
map_data_1960_offset 199c 197c 1980
map_data_1b60_offset 1B9c 1B7c 1B80