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 "Memory hacking"
Jump to navigation
Jump to search
m (Unrating page for DF2014 (m: 104/225)) |
(clear 0.34 stuff, add some offsets for 0.40.02 SDL) |
||
Line 1: | Line 1: | ||
− | |||
{{quality|unrated}} | {{quality|unrated}} | ||
Line 10: | Line 9: | ||
|- | |- | ||
− | ! 0. | + | ! 0.40.01 legacy |
− | | | + | | |
− | | | + | | |
|- | |- | ||
− | ! 0. | + | ! 0.40.01 SDL |
− | | | + | | |
− | | | + | | |
|- | |- | ||
− | ! 0. | + | ! 0.40.02 legacy |
− | | | + | | |
− | | | + | | |
|- | |- | ||
− | ! 0. | + | ! 0.40.02 SDL |
− | | | + | | 11a7da1fda05dfc826655d8aff4e9f9b |
− | | | + | | 53BEF285 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 107: | Line 34: | ||
|- bgcolor="#ddd" | |- bgcolor="#ddd" | ||
! Description | ! Description | ||
− | ! 0. | + | ! 0.40.01 legacy |
− | ! 0. | + | ! 0.40.02 legacy |
− | |||
− | |||
− | |||
|- | |- | ||
! cursor_xyz | ! cursor_xyz | ||
− | | colspan=" | + | | colspan="1" rowspan="2" | |
− | | colspan=" | + | | colspan="1" rowspan="2" | |
|- | |- | ||
Line 123: | Line 47: | ||
|- | |- | ||
! mouse_y | ! mouse_y | ||
− | | | + | | |
− | | | + | | |
|- | |- | ||
! mouse_z | ! mouse_z | ||
− | | | + | | |
− | + | | | |
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
|- | |- | ||
! window_dims | ! window_dims | ||
− | | colspan=" | + | | colspan="1" rowspan="2" | |
− | | colspan=" | + | | colspan="1" rowspan="2" | |
|- | |- | ||
Line 148: | Line 65: | ||
|- | |- | ||
! window_grid_y | ! window_grid_y | ||
− | | | + | | |
− | | | + | | |
|- | |- | ||
! window_x (viewport_x) | ! window_x (viewport_x) | ||
− | | | + | | |
− | | | + | | |
|- | |- | ||
! window_y (viewport_y) | ! window_y (viewport_y) | ||
− | | | + | | |
− | + | | | |
+ | |||
|- | |- | ||
! window_z (viewport_z) | ! window_z (viewport_z) | ||
− | | | + | | |
− | + | | | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 243: | Line 92: | ||
|- bgcolor="#ddd" | |- bgcolor="#ddd" | ||
! Description | ! Description | ||
− | ! 0. | + | ! 0.40.01 SDL |
− | ! 0. | + | ! 0.40.02 SDL |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! cursor_xyz | ! cursor_xyz | ||
− | | colspan="1" rowspan="2" | | + | | colspan="1" rowspan="2" | |
− | | colspan="1" rowspan="2" | | + | | colspan="1" rowspan="2" | 1D0CD40 |
− | |||
− | |||
− | |||
|- | |- | ||
Line 271: | Line 105: | ||
|- | |- | ||
! mouse_y | ! mouse_y | ||
− | | | + | | |
− | | | + | | 1D0CD44 |
− | |||
− | |||
− | |||
|- | |- | ||
! mouse_z | ! mouse_z | ||
− | | | + | | |
− | | | + | | 1D0CD48 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! window_dims | ! window_dims | ||
− | | colspan="1" rowspan="2" | | + | | colspan="1" rowspan="2" | |
− | | colspan="1" rowspan="2" | | + | | colspan="1" rowspan="2" | |
− | |||
− | |||
− | |||
|- | |- | ||
Line 306: | Line 123: | ||
|- | |- | ||
! window_grid_y | ! window_grid_y | ||
− | | | + | | |
− | | | + | | |
− | |||
− | |||
− | |||
|- | |- | ||
! window_x (viewport_x) | ! window_x (viewport_x) | ||
− | | | + | | |
− | | | + | | |
− | |||
− | |||
− | |||
|- | |- | ||
! window_y (viewport_y) | ! window_y (viewport_y) | ||
− | | | + | | |
− | | | + | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! window_z (viewport_z) | ! window_z (viewport_z) | ||
− | | | + | | |
− | | | + | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 426: | Line 153: | ||
|- bgcolor="#ddd" | |- bgcolor="#ddd" | ||
! Description | ! Description | ||
− | ! 0. | + | ! 0.40.01 legacy |
− | ! 0. | + | ! 0.40.02 legacy |
− | |||
− | |||
− | |||
|- | |- | ||
! map_data | ! map_data | ||
− | | | + | | |
− | + | | | |
+ | |||
|- | |- | ||
! [[#map_info struct|map_info]] | ! [[#map_info struct|map_info]] | ||
− | | | + | | |
− | + | | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 500: | Line 175: | ||
|- bgcolor="#ddd" | |- bgcolor="#ddd" | ||
! Description | ! Description | ||
− | ! 0. | + | ! 0.40.01 SDL |
− | ! 0. | + | ! 0.40.02 SDL |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! map_data | ! map_data | ||
− | | | + | | |
− | | | + | | 2996f24 |
− | + | ||
− | |||
− | |||
|- | |- | ||
! [[#map_info struct|map_info]] | ! [[#map_info struct|map_info]] | ||
− | | | + | | |
− | + | | 2996f3c | |
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 629: | Line 242: | ||
|- bgcolor="#ddd" | |- bgcolor="#ddd" | ||
! Description | ! Description | ||
− | ! 0. | + | ! 0.40.01–02 |
|- | |- | ||
− | ! | + | ! map_data_map_x_offset |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| 0060 | | 0060 | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! map_data_map_y_offset | ! map_data_map_y_offset | ||
− | | | + | | 0062 |
|- | |- | ||
! map_data_map_z_offset | ! map_data_map_z_offset | ||
− | | | + | | 0064 |
|- | |- | ||
! map_data_tiletype_offset | ! map_data_tiletype_offset | ||
− | | | + | | 006a |
|- | |- | ||
! map_data_designation_offset | ! map_data_designation_offset | ||
− | | | + | | 026c |
|- | |- | ||
! map_data_occupancy_offset | ! map_data_occupancy_offset | ||
− | | | + | | 066c |
|- | |- | ||
! map_data_0a60_offset | ! map_data_0a60_offset | ||
− | | | + | | 0A6c |
|- | |- | ||
! map_data_pathfinding_offset | ! map_data_pathfinding_offset | ||
− | | | + | | 0D6c |
|- | |- | ||
! map_data_1160_offset | ! map_data_1160_offset | ||
− | | | + | | 116c |
|- | |- | ||
! map_data_1360_offset | ! map_data_1360_offset | ||
− | | | + | | 136c |
|- | |- | ||
! map_data_temperature1_offset | ! map_data_temperature1_offset | ||
− | | | + | | 156c |
|- | |- | ||
! map_data_temperature2_offset | ! map_data_temperature2_offset | ||
− | | | + | | 176c |
|- | |- | ||
! map_data_1960_offset | ! map_data_1960_offset | ||
− | | | + | | 196c |
|- | |- | ||
! map_data_1b60_offset | ! map_data_1b60_offset | ||
− | | | + | | 1B6c |
|} | |} | ||
[[Category:Hacking]] | [[Category:Hacking]] |
Revision as of 12:48, 11 July 2014
Version identification
Version | MD5 hash | PE timestamp |
---|---|---|
0.40.01 legacy | ||
0.40.01 SDL | ||
0.40.02 legacy | ||
0.40.02 SDL | 11a7da1fda05dfc826655d8aff4e9f9b | 53BEF285 |
General offsets
Legacy versions
Description | 0.40.01 legacy | 0.40.02 legacy |
---|---|---|
cursor_xyz | ||
mouse_x | ||
mouse_y | ||
mouse_z | ||
window_dims | ||
window_grid_x | ||
window_grid_y | ||
window_x (viewport_x) | ||
window_y (viewport_y) |
| |
window_z (viewport_z) |
|
SDL versions
Description | 0.40.01 SDL | 0.40.02 SDL |
---|---|---|
cursor_xyz | 1D0CD40 | |
mouse_x | ||
mouse_y | 1D0CD44 | |
mouse_z | 1D0CD48 | |
window_dims | ||
window_grid_x | ||
window_grid_y | ||
window_x (viewport_x) | ||
window_y (viewport_y) |
| |
window_z (viewport_z) |
|
Map data
Legacy versions
Description | 0.40.01 legacy | 0.40.02 legacy |
---|---|---|
map_data |
| |
map_info |
|
SDL versions
Description | 0.40.01 SDL | 0.40.02 SDL |
---|---|---|
map_data | 2996f24
| |
map_info | 2996f3c
|
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 | Base Z-level - add this to Z coordinates to get the Z-level displayed on the screen |
Map block data offsets
Description | 0.40.01–02 |
---|---|
map_data_map_x_offset | 0060 |
map_data_map_y_offset | 0062 |
map_data_map_z_offset | 0064 |
map_data_tiletype_offset | 006a |
map_data_designation_offset | 026c |
map_data_occupancy_offset | 066c |
map_data_0a60_offset | 0A6c |
map_data_pathfinding_offset | 0D6c |
map_data_1160_offset | 116c |
map_data_1360_offset | 136c |
map_data_temperature1_offset | 156c |
map_data_temperature2_offset | 176c |
map_data_1960_offset | 196c |
map_data_1b60_offset | 1B6c |