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
(→map_info struct: expand structure to contain more useful information) |
|||
Line 508: | Line 508: | ||
! Name | ! Name | ||
! Description | ! Description | ||
+ | |||
+ | |- | ||
+ | | vector<map_block *> | ||
+ | | block_list | ||
+ | | List of all allocated map blocks, in no particular order | ||
+ | |||
+ | |- | ||
+ | | map_block **** | ||
+ | | block_array | ||
+ | | 3-dimensional array of map_block pointers | ||
+ | |||
+ | |- | ||
+ | | vector<map_block_column *> | ||
+ | | block_column_list | ||
+ | | List of all allocated map block columns, in no particular order | ||
+ | |||
+ | |- | ||
+ | | map_block_column *** | ||
+ | | block_column_array | ||
+ | | 2-dimensional array of map_block_column pointers | ||
|- | |- | ||
Line 535: | Line 555: | ||
| int32 | | int32 | ||
| region_x | | region_x | ||
− | | rowspan=" | + | | rowspan="2" | Position of the current map region within the world as a whole. |
|- | |- | ||
| int32 | | int32 | ||
Line 542: | Line 562: | ||
| int32 | | int32 | ||
| region_z | | region_z | ||
+ | | Base Z-level - add this to Z coordinates to get the Z-level displayed on the screen | ||
|} | |} | ||
− | |||
===Map block data offsets=== | ===Map block data offsets=== |
Revision as of 16:00, 25 April 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 |
0.34.07 legacy | 17b407e2b1e179eca349ce3dab532073 | 4F758B28 |
0.34.07 SDL | 7e574bedd5ffe13d7cb6cf8f55e27ccf | 4f7592fe |
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 | 0.34.07 legacy | |||
cursor_xyz | C04518 | C09518 | |||
mouse_x | |||||
mouse_y | C0451C | C0951C | |||
mouse_z | C04520 | C09520 | |||
window_dims | 1A01998 | 1A06998 | |||
window_grid_x | |||||
window_grid_y | 1A0199C | 1A0699C | |||
window_x (viewport_x) | 10413F0 | 10463F0 | |||
window_y (viewport_y) | 106F600 | 1074600 | |||
window_z (viewport_z) | 106F5D8 | 10745D8 |
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 | ||
Description | 0.34.07 SDL | |||||
cursor_xyz | C5A848 | |||||
mouse_x | ||||||
mouse_y | C5A84C | |||||
mouse_z | C5A850 | |||||
window_dims | 19725EC | |||||
window_grid_x | ||||||
window_grid_y | 19725F0 | |||||
window_x (viewport_x) | 0FD78CC | |||||
window_y (viewport_y) | 1005AD8 | |||||
window_z (viewport_z) | 1005AB0 | |||||
population_cap | 196fa64 | |||||
child_number_cap | 196FA68 | |||||
child_percent_cap | 196FA6C |
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 | 0.34.07 legacy | |||
map_data | 18BC840 | 18C1840 | |||
map_info | 18BC858 | 18C1858 |
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 | ||||
Description | 0.34.07 SDL | |||||
map_data | 182D4C8
| |||||
map_info | 182D4E0
|
map_info struct
Type | Name | Description |
---|---|---|
vector<map_block *> | block_list | List of all allocated map blocks, in no particular order |
map_block **** | block_array | 3-dimensional array of map_block pointers |
vector<map_block_column *> | block_column_list | List of all allocated map block columns, in no particular order |
map_block_column *** | block_column_array | 2-dimensional array of map_block_column pointers |
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.34.01–07 |
---|---|
block_events | 0004 |
block_burrows | 0014 |
local_feature | 0020 |
global_feature | 0024 |
block_items | 0038 |
block_effects | 0048 |
block_vegetation | 0060 |
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 |