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.

Editing v0.34:Memory hacking

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{quality|Fine|22:28, 4 March 2013 (UTC)}}{{av}}
+
{{av}}
  
 
==Version identification==
 
==Version identification==
Line 52: Line 52:
 
| 01c0a10b1291f5d0b58f25a35722a416
 
| 01c0a10b1291f5d0b58f25a35722a416
 
| 4F55F23E
 
| 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
 
  
 
|}
 
|}
Line 111: Line 66:
 
! 0.34.04 legacy
 
! 0.34.04 legacy
 
! 0.34.05 legacy
 
! 0.34.05 legacy
 +
 +
|-
 +
! can_save
 +
| ?
  
 
|-
 
|-
Line 164: Line 123:
 
| colspan="2" | 10605D8
 
| colspan="2" | 10605D8
 
| colspan="3" | 105C5D8
 
| colspan="3" | 105C5D8
 
|- bgcolor="#ddd"
 
! Description
 
! 0.34.06 legacy
 
! 0.34.07 legacy
 
! 0.34.08 legacy
 
! 0.34.09 legacy
 
! 0.34.10 legacy
 
  
 
|-
 
|-
! cursor_xyz
+
! view_state
| colspan="1" rowspan="2" | C04518
+
| ?
| colspan="1" rowspan="2" | C09518
 
| colspan="1" rowspan="2" | C435C8
 
| colspan="2" rowspan="2" | C445C8
 
 
 
|-
 
! mouse_x
 
<!-- Cells rowspanned out -->
 
|-
 
! mouse_y
 
| C0451C
 
| C0951C
 
| C435CC
 
| colspan="2" | C445CC
 
 
 
|-
 
! mouse_z
 
| C04520
 
| C09520
 
| C435D0
 
| colspan="2" | C445D0
 
 
 
|-
 
! window_dims
 
| colspan="1" rowspan="2" | 1A01998
 
| colspan="1" rowspan="2" | 1A06998
 
| colspan="1" rowspan="2" | 1A41A88
 
| colspan="2" rowspan="2" | 1A42A88
 
 
 
|-
 
! window_grid_x
 
<!-- Cells rowspanned out -->
 
|-
 
! window_grid_y
 
| 1A0199C
 
| 1A0699C
 
| 1A41A8C
 
| colspan="2" | 1A42A8C
 
 
 
|-
 
! window_x (viewport_x)
 
| 10413F0
 
| 10463F0
 
| 1080518
 
| colspan="2" | 1081518
 
 
 
|-
 
! window_y (viewport_y)
 
| 106F600
 
| 1074600
 
| 10AE728
 
| colspan="2" | 10AF728
 
 
 
|-
 
! window_z (viewport_z)
 
| 106F5D8
 
| 10745D8
 
| 10AE700
 
| colspan="2" | 10AF700
 
  
 
|}
 
|}
Line 247: Line 140:
 
! 0.34.04 SDL
 
! 0.34.04 SDL
 
! 0.34.05 SDL
 
! 0.34.05 SDL
! 0.34.06 SDL
 
  
 
|-
 
|-
Line 255: Line 147:
 
| colspan="2" | 15C1752
 
| colspan="2" | 15C1752
 
| 15C2752
 
| 15C2752
| 160E752
 
  
 
|-
 
|-
Line 263: Line 154:
 
| colspan="2" rowspan="2" | C08848
 
| colspan="2" rowspan="2" | C08848
 
| colspan="1" rowspan="2" | C09848
 
| colspan="1" rowspan="2" | C09848
| colspan="1" rowspan="2" | C55848
 
  
 
|-
 
|-
Line 274: Line 164:
 
| colspan="2" | C0884C
 
| colspan="2" | C0884C
 
| C0984C
 
| C0984C
| C5584C
 
  
 
|-
 
|-
Line 282: Line 171:
 
| colspan="2" | C08850
 
| colspan="2" | C08850
 
| C09850
 
| C09850
| C55850
 
  
 
|-
 
|-
Line 290: Line 178:
 
| colspan="2" | 15C1756
 
| colspan="2" | 15C1756
 
| 15C2756
 
| 15C2756
| 160E756
 
  
 
|-
 
|-
Line 298: Line 185:
 
| colspan="2" rowspan="2" | 19205DC
 
| colspan="2" rowspan="2" | 19205DC
 
| colspan="1" rowspan="2" | 19215DC
 
| colspan="1" rowspan="2" | 19215DC
| colspan="1" rowspan="2" | 196D5EC
 
  
 
|-
 
|-
Line 309: Line 195:
 
| colspan="2" | 19205E0
 
| colspan="2" | 19205E0
 
| 19215E0
 
| 19215E0
| 196D5F0
 
  
 
|-
 
|-
Line 317: Line 202:
 
| colspan="2" | F858CC
 
| colspan="2" | F858CC
 
| F868CC
 
| F868CC
| 0FD28CC
 
  
 
|-
 
|-
Line 325: Line 209:
 
| colspan="2" | FB3AD8
 
| colspan="2" | FB3AD8
 
| FB4AD8
 
| FB4AD8
| 1000AD8
 
  
 
|-
 
|-
Line 333: Line 216:
 
| colspan="2" | FB3AB0
 
| colspan="2" | FB3AB0
 
| FB4AB0
 
| FB4AB0
| 1000AB0
 
  
 
|-
 
|-
Line 341: Line 223:
 
| colspan="2" | C08920
 
| colspan="2" | C08920
 
| C09920
 
| C09920
 
|- bgcolor="#ddd"
 
! Description
 
! 0.34.07 SDL
 
! 0.34.08 SDL
 
! 0.34.09 SDL
 
! 0.34.10 SDL
 
 
|-
 
! cursor_xyz
 
| colspan="1" rowspan="2" | C5A848
 
| colspan="1" rowspan="2" | C96848
 
| colspan="2" rowspan="2" | C97848
 
 
|-
 
! mouse_x
 
<!-- Cells rowspanned out -->
 
|-
 
! mouse_y
 
| C5A84C
 
| C9684C
 
| colspan="2" | C9784C
 
 
|-
 
! mouse_z
 
| C5A850
 
| C96850
 
| colspan="2" | C97850
 
 
|-
 
! window_dims
 
| colspan="1" rowspan="2" | 19725EC
 
| colspan="1" rowspan="2" | 19AE974
 
| colspan="2" rowspan="2" | 19AF974
 
 
|-
 
! window_grid_x
 
<!-- Cells rowspanned out -->
 
|-
 
! window_grid_y
 
| 19725F0
 
| 19AE978
 
| colspan="2" | 19AF978
 
 
|-
 
! window_x (viewport_x)
 
| 0FD78CC
 
| 1013A04
 
| colspan="2" | 1014A04
 
 
|-
 
! window_y (viewport_y)
 
| 1005AD8
 
| 1041C14
 
| colspan="2" | 1042C14
 
 
|-
 
! window_z (viewport_z)
 
| 1005AB0
 
| 1041BEC
 
| colspan="2" | 1042BEC
 
 
|-
 
! population_cap
 
| 196fa64
 
 
|-
 
! child_number_cap
 
| 196FA68
 
 
|-
 
! child_percent_cap
 
| 196FA6C
 
  
 
|}
 
|}
Line 435: Line 244:
 
| 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 -->
+
| colspan="2" | 18AD890
 +
| colspan="3" | 18A9890
  
 
|-
 
|-
Line 469: Line 274:
 
| colspan="2" | 18AD8A4
 
| colspan="2" | 18AD8A4
 
| colspan="3" | 18A98A4
 
| colspan="3" | 18A98A4
 
|- bgcolor="#ddd"
 
! 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
 
| colspan="2" | 18FD818
 
 
|-
 
! [[#map_info|map_info]]
 
| 18BC858
 
| 18C1858
 
| 18FC830
 
| colspan="2" | 18FD830
 
  
 
|}
 
|}
Line 504: Line 287:
 
! 0.34.04 SDL
 
! 0.34.04 SDL
 
! 0.34.05 SDL
 
! 0.34.05 SDL
! 0.34.06 SDL
 
  
 
|-
 
|-
Line 512: Line 294:
 
| colspan="2" | 17DB4B8
 
| colspan="2" | 17DB4B8
 
| 17DC4B8
 
| 17DC4B8
| 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 -->
+
| 17E14B0
 +
| 17E24D0
 +
| colspan="2" | 17DB4D0
 +
| 17DC4D0
  
 
|-
 
|-
Line 532: Line 308:
 
| colspan="2" | 17DB4D4
 
| colspan="2" | 17DB4D4
 
| 17DC4D4
 
| 17DC4D4
| 18284E4
 
  
 
|-
 
|-
Line 540: Line 315:
 
| colspan="2" | 17DB4D8
 
| colspan="2" | 17DB4D8
 
| 17DC4D8
 
| 17DC4D8
| 18284E8
 
  
 
|-
 
|-
Line 556: Line 330:
 
| 17E14C4
 
| 17E14C4
 
| 17E24E4
 
| 17E24E4
 
|- bgcolor="#ddd"
 
! Description
 
! 0.34.07 SDL
 
! 0.34.08 SDL
 
! 0.34.09 SDL
 
! 0.34.10 SDL
 
 
|-
 
! map_data
 
| 182D4C8
 
| 1869738
 
| colspan="2" | 186A738
 
 
|-
 
! [[#map_info struct|map_info]]
 
| 182D4E0
 
| 1869750
 
| colspan="2" | 186A750
 
  
 
|}
 
|}
  
  
===map_info struct===
+
===Tile data offsets===
{| {{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="2" | 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===
 
  
 
{| {{prettytable}} style="font-family: monospace"
 
{| {{prettytable}} style="font-family: monospace"
 
|- bgcolor="#ddd"
 
|- bgcolor="#ddd"
 
! Description
 
! Description
! 0.34.01&ndash;10
+
! 0.34.01&ndash;05
 
 
|-
 
! 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
 
! map_data_map_x_offset
Line 667: Line 349:
 
! map_data_map_z_offset
 
! map_data_map_z_offset
 
| 0074
 
| 0074
 
 
|-
 
|-
! map_data_tiletype_offset
+
! map_data_type_offset
 
| 007a
 
| 007a
  

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)