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 "40d:Memory hacking/v0.28.181.40d17"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Addresses ==
 
== Addresses ==
windows version only right now
+
=== Windows ===
  
 
  cursor_xyz            == 0x009662B4
 
  cursor_xyz            == 0x009662B4
Line 11: Line 11:
  
 
All Addresses are 0x40000 based, this is what we use in DFHack, it is pretty trivial to convert them, plus on WinXP they are constant at least!
 
All Addresses are 0x40000 based, this is what we use in DFHack, it is pretty trivial to convert them, plus on WinXP they are constant at least!
 +
 +
=== Linux ===
 +
Positions
 +
cursor_xyz            == 0x878c340
 +
window_x              == 0x8947d54
 +
window_y              == 0x8947d58
 +
window_z              == 0x8947d5c
 +
window_dims            == 0x91b35fc
 +
State
 +
pause_state            == 0x8f3d960
 +
Map data
 +
map_data              == 0x08FA2D3C
 +
x_count                == 0x8FA2D50
 +
y_count                == 0x8FA2D54
 +
z_count                == 0x8FA2D58
 +
world                  == 0x08FA4368
 +
region_x              == 0x8FA2D68
 +
region_y              == 0x8FA2D6C
 +
region_z              == 0x8FA2D70
 +
Matgloss
 +
matgloss              == 0x08FA4C04 (wood vector)
 +
       
 +
All 0-based
  
 
[[Category:version 0.28.181.40d17]]
 
[[Category:version 0.28.181.40d17]]
 
[[Category:Hacking]]
 
[[Category:Hacking]]

Revision as of 03:15, 7 February 2010

Addresses

Windows

cursor_xyz             == 0x009662B4
window_x               == 0x00DD4FEC
window_y               == 0x00E03098
window_z               == 0x00E03074
items                  == 0x015F28CC
creatures              == 0x015F292C
pause_state            == 0x01410CC1

All Addresses are 0x40000 based, this is what we use in DFHack, it is pretty trivial to convert them, plus on WinXP they are constant at least!

Linux

Positions

cursor_xyz             == 0x878c340
window_x               == 0x8947d54
window_y               == 0x8947d58
window_z               == 0x8947d5c
window_dims            == 0x91b35fc

State

pause_state            == 0x8f3d960

Map data

map_data               == 0x08FA2D3C
x_count                == 0x8FA2D50
y_count                == 0x8FA2D54
z_count                == 0x8FA2D58
world                  == 0x08FA4368
region_x               == 0x8FA2D68
region_y               == 0x8FA2D6C
region_z               == 0x8FA2D70

Matgloss

matgloss               == 0x08FA4C04 (wood vector)
       

All 0-based