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 "v0.34:Memory hacking"
Jump to navigation
Jump to search
(+ 0.34.06 SDL) |
(+ 0.34.06 legacy; some reorganizing) |
||
Line 55: | Line 55: | ||
|- | |- | ||
! 0.34.06 legacy | ! 0.34.06 legacy | ||
− | | | + | | d87a411de87fd42fd755fbd8a2a54175 |
| 4F6C279C | | 4F6C279C | ||
|- | |- | ||
Line 129: | Line 129: | ||
| colspan="3" | 105C5D8 | | colspan="3" | 105C5D8 | ||
+ | |- bgcolor="#ddd" | ||
+ | ! Description | ||
+ | ! 0.34.06 legacy | ||
+ | |||
+ | |- | ||
+ | ! cursor_xyz | ||
+ | | colspan="1" rowspan="2" | C04518 | ||
+ | |||
+ | |- | ||
+ | ! mouse_x | ||
+ | <!-- Cells rowspanned out --> | ||
+ | |- | ||
+ | ! mouse_y | ||
+ | | C0451C | ||
+ | |||
+ | |- | ||
+ | ! mouse_z | ||
+ | | C04520 | ||
+ | |||
+ | |- | ||
+ | ! window_dims | ||
+ | | colspan="1" rowspan="2" | 1A01998 | ||
+ | |||
+ | |- | ||
+ | ! window_grid_x | ||
+ | <!-- Cells rowspanned out --> | ||
+ | |- | ||
+ | ! window_grid_y | ||
+ | | 1A0199C | ||
+ | |||
+ | |- | ||
+ | ! window_x (viewport_x) | ||
+ | | 10413F0 | ||
+ | |||
+ | |- | ||
+ | ! window_y (viewport_y) | ||
+ | | 106F600 | ||
+ | |||
+ | |- | ||
+ | ! window_z (viewport_z) | ||
+ | | 106F5D8 | ||
|} | |} | ||
Line 257: | Line 298: | ||
| colspan="2" | 18AD878 | | colspan="2" | 18AD878 | ||
| colspan="3" | 18A9878 | | colspan="3" | 18A9878 | ||
+ | |||
+ | |- | ||
+ | ! [[#map_info struct|map_info]] | ||
+ | | colspan="2" rowspan="2" | 18AD890 | ||
+ | | colspan="3" rowspan="2" | 18A9890 | ||
|- | |- | ||
! map x_count (blocks) | ! map x_count (blocks) | ||
− | + | <!-- Cells rowspanned out --> | |
− | |||
|- | |- | ||
Line 287: | Line 332: | ||
| colspan="2" | 18AD8A4 | | colspan="2" | 18AD8A4 | ||
| colspan="3" | 18A98A4 | | colspan="3" | 18A98A4 | ||
+ | |||
+ | |- bgcolor="#ddd" | ||
+ | ! Description | ||
+ | ! 0.34.06 legacy | ||
+ | |||
+ | |- | ||
+ | ! map_data | ||
+ | | 18BC840 | ||
+ | |||
+ | |- | ||
+ | ! [[#map_info|map_info]] | ||
+ | | 18BC858 | ||
|} | |} | ||
Line 309: | Line 366: | ||
| 17DC4B8 | | 17DC4B8 | ||
| 18284C8 | | 18284C8 | ||
+ | |||
+ | |- | ||
+ | ! [[#map_info struct|map_info]] | ||
+ | | colspan="1" rowspan="2" | 17E14B0 | ||
+ | | colspan="1" rowspan="2" | 17E24D0 | ||
+ | | colspan="2" rowspan="2" | 17DB4D0 | ||
+ | | colspan="1" rowspan="2" | 17DC4D0 | ||
+ | | colspan="1" rowspan="2" | 18284E0 | ||
|- | |- | ||
! map x_count (blocks) | ! map x_count (blocks) | ||
− | + | <!-- Cells rowspanned out --> | |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
Line 348: | Line 409: | ||
| 17E14C4 | | 17E14C4 | ||
| 17E24E4 | | 17E24E4 | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | ===map_info struct=== | ||
+ | {| {{prettytable}} | ||
+ | |- bgcolor="#ddd" | ||
+ | ! Type | ||
+ | ! Name | ||
+ | ! Description | ||
+ | |||
+ | |- | ||
+ | | int32 | ||
+ | | block_count_x | ||
+ | | rowspan="2" | 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 | ||
+ | | rowspan="3" | Size of the current map region in tiles. | ||
+ | |- | ||
+ | | int32 | ||
+ | | tile_count_y | ||
+ | |- | ||
+ | | int32 | ||
+ | | tile_count_z | ||
+ | |||
+ | |- | ||
+ | | int32 | ||
+ | | region_x | ||
+ | | rowspan="3" | Position of the current map region within the world as a whole. | ||
+ | |- | ||
+ | | int32 | ||
+ | | region_y | ||
+ | |- | ||
+ | | int32 | ||
+ | | region_z | ||
|} | |} |
Revision as of 19:33, 24 March 2012
This article is about an older version of DF. |
Version identification
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 |
General offsets
Legacy versions
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 | ||||
cursor_xyz | C04518 | ||||
mouse_x | |||||
mouse_y | C0451C | ||||
mouse_z | C04520 | ||||
window_dims | 1A01998 | ||||
window_grid_x | |||||
window_grid_y | 1A0199C | ||||
window_x (viewport_x) | 10413F0 | ||||
window_y (viewport_y) | 106F600 | ||||
window_z (viewport_z) | 106F5D8 |
SDL versions
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 |
Map data
Legacy versions
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 | ||||
map_data | 18BC840 | ||||
map_info | 18BC858 |
SDL versions
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 |
map_info struct
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 |
Tile data offsets
Description | 0.34.01–06 |
---|---|
map_data_map_x_offset | 0070 |
map_data_map_y_offset | 0072 |
map_data_map_z_offset | 0074 |
map_data_type_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 |