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 "User:Rick/memory.ini"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (sort key for hacking category)
 
Line 315: Line 315:
 
</pre>
 
</pre>
  
[[Category:Hacking]]
+
[[Category:Hacking|Memory]]

Latest revision as of 19:52, 8 November 2009

You probably shouldn't use my old tools anymore, but use Gibbed's Dwarf Fortress Tweak instead.

memory.ini[edit]

In my old tools, support for an INI file 'memory.ini' is present (for v0.27.169.33d and above), this file allows people to directly specify addresses and offsets in case I have not yet updated my tools for a newer Dwarf Fortress release.

A table of available settings[edit]

Section Name Description Used By
generic* DWARF_FORTRESS Address to "Dwarf Fortress" string, this is used by my tools to check to make sure you have the right version. The fact that it is in the 'generic' section is a mistake that I meant to fix, but apparently I didn't, oops! adjuststart, heal, reveal, warp
address MAP_DATA Map data pointer. reveal, warp
address MAP_X_COUNT Map block X count value. reveal, warp
address MAP_Y_COUNT Map block Y count value. reveal, warp
address MAP_Z_COUNT Map block Z count value. reveal, warp
offset MAP_DATA_DESIGNATION_OFFSET Offset into block data for designation data, likely you won't need to change this. reveal
offset MAP_DATA_OCCUPANCY_OFFSET Offset into block data for occupancy data, likely you won't need to change this. warp
address MENU_STATE Menu state value. heal, warp
address FOCUSED_CREATURE Index of focused creature. heal, warp
address STARTING_DWARF_COUNT Starting dwarf count value for embark. adjuststart
address STARTING_POINT_COUNT Starting point count value for embark. adjuststart
address MOUSE_X Mouse X warp
address MOUSE_Y Mouse Y warp
address MOUSE_Z Mouse Z warp
address CREATURE_VECTOR Creature vector, please note that this needs to be the one that FOCUSED_CREATURE can index into, setting this to the wrong creature vector will end up with the wrong creatures being modified. heal, warp
offset CREATURE_NAME_OFFSET Offset to name in creature structure. heal
offset CREATURE_X_OFFSET Offset to X in creature structure. warp
offset CREATURE_Y_OFFSET Offset to Y in creature structure. warp
offset CREATURE_Z_OFFSET Offset to Z in creature structure. warp
offset CREATURE_BODY_PART_HEALTH_VECTOR_OFFSET Offset to body part health vector in creature structure. heal

INI data[edit]

You won't need a memory.ini file if my tool is currently up to date.

v0.27.169.33d[edit]

[generic]
DWARF_FORTRESS=0x0089A3A4

[address]
MENU_STATE=0x01243654
FOCUSED_CREATURE=0x00C37540
CREATURE_VECTOR=0x0141EA40
MOUSE_X=0x008FD288
MOUSE_Y=0x008FD28C
MOUSE_Z=0x008FD290
MAP_DATA=0x01460560
MAP_X_COUNT=0x01460578
MAP_Y_COUNT=0x0146057C
MAP_Z_COUNT=0x01460580
STARTING_DWARF_COUNT=0x00789635
STARTING_POINT_COUNT=0x007887EA

[offset]
MAP_DATA_DESIGNATION_OFFSET=0x0260
MAP_DATA_OCCUPANCY_OFFSET=0x660
CREATURE_NAME_OFFSET=0x000
CREATURE_BODY_PART_HEALTH_VECTOR_OFFSET=0x308
CREATURE_X_OFFSET=0x0094
CREATURE_Y_OFFSET=0x0096
CREATURE_Z_OFFSET=0x0098

v0.27.169.33e[edit]

[generic]
DWARF_FORTRESS=0x0089B3BC

[address]
MENU_STATE=0x01244654
FOCUSED_CREATURE=0x00C38540
CREATURE_VECTOR=0x0141FA40
MOUSE_X=0x008FE288
MOUSE_Y=0x008FE28C
MOUSE_Z=0x008FE290
MAP_DATA=0x01461560
MAP_X_COUNT=0x01461578
MAP_Y_COUNT=0x0146157C
MAP_Z_COUNT=0x01461580
STARTING_DWARF_COUNT=0x007893C5
STARTING_POINT_COUNT=0x0078857A

[offset]
MAP_DATA_DESIGNATION_OFFSET=0x0260
MAP_DATA_OCCUPANCY_OFFSET=0x660
CREATURE_NAME_OFFSET=0x000
CREATURE_BODY_PART_HEALTH_VECTOR_OFFSET=0x308
CREATURE_X_OFFSET=0x0094
CREATURE_Y_OFFSET=0x0096
CREATURE_Z_OFFSET=0x0098

v0.27.169.33f[edit]

[generic]
DWARF_FORTRESS=0x0089C414

[address]
MENU_STATE=0x0124565C
FOCUSED_CREATURE=0x00C39548
CREATURE_VECTOR=0x01420A48
MOUSE_X=0x008FF288
MOUSE_Y=0x008FF28C
MOUSE_Z=0x008FF290
MAP_DATA=0x01462568
MAP_X_COUNT=0x01462580
MAP_Y_COUNT=0x01462584
MAP_Z_COUNT=0x01462588
STARTING_DWARF_COUNT=0x0078A555
STARTING_POINT_COUNT=0x0078970A

[offset]
MAP_DATA_DESIGNATION_OFFSET=0x0260
MAP_DATA_OCCUPANCY_OFFSET=0x660
CREATURE_NAME_OFFSET=0x000
CREATURE_BODY_PART_HEALTH_VECTOR_OFFSET=0x308
CREATURE_X_OFFSET=0x0094
CREATURE_Y_OFFSET=0x0096
CREATURE_Z_OFFSET=0x0098

v0.27.169.33g[edit]

Untested, updated, updated again to fix reported problem

[generic]
DWARF_FORTRESS=0x008A3474

[address]
MENU_STATE=0x0124C654
FOCUSED_CREATURE=0x00C40540
CREATURE_VECTOR=0x01427B60
MOUSE_X=0x00906288
MOUSE_Y=0x0090628C
MOUSE_Z=0x00906290
MAP_DATA=0x01469680
MAP_X_COUNT=0x01469698
MAP_Y_COUNT=0x0146969C
MAP_Z_COUNT=0x014696A0
STARTING_DWARF_COUNT=0x00790825
STARTING_POINT_COUNT=0x0078F9DA

[offset]
MAP_DATA_DESIGNATION_OFFSET=0x0260
MAP_DATA_OCCUPANCY_OFFSET=0x660
CREATURE_NAME_OFFSET=0x000
CREATURE_BODY_PART_HEALTH_VECTOR_OFFSET=0x308
CREATURE_X_OFFSET=0x0094
CREATURE_Y_OFFSET=0x0096
CREATURE_Z_OFFSET=0x0098


v0.27.173.38a[edit]

[generic]
DWARF_FORTRESS=0x00C11218

[address]
STARTING_POINT_COUNT=0x007AF4FA
STARTING_DWARF_COUNT=0x007B0345
MENU_STATE=0x0127599C
FOCUSED_CREATURE=0x00C69888
CREATURE_VECTOR=0x01450E9C
MOUSE_X=0x0092F288
MOUSE_Y=0x0092F28C
MOUSE_Z=0x0092F290
MAP_DATA=0x014929CC
MAP_X_COUNT=0x014929E4
MAP_Y_COUNT=0x014929E8
MAP_Z_COUNT=0x014929EC

[offset]
MAP_DATA_DESIGNATION_OFFSET=0x0260
MAP_DATA_OCCUPANCY_OFFSET=0x660
CREATURE_NAME_OFFSET=0x000
CREATURE_BODY_PART_HEALTH_VECTOR_OFFSET=0x308
CREATURE_X_OFFSET=0x0094
CREATURE_Y_OFFSET=0x0096
CREATURE_Z_OFFSET=0x0098


v0.27.176.38a[edit]

[generic]
DWARF_FORTRESS=0x008D8B08

[address]
STARTING_POINT_COUNT=0x007B995A
STARTING_DWARF_COUNT=0x007BA7B3
MENU_STATE=0x01287D14
FOCUSED_CREATURE=0x00C7BC00
CREATURE_VECTOR=0x01450E9C
MOUSE_X=0x00941288
MOUSE_Y=0x0094128C
MOUSE_Z=0x00941290
MAP_DATA=0x014A4EAC
MAP_X_COUNT=0x014A4EC4
MAP_Y_COUNT=0x014A4EC8
MAP_Z_COUNT=0x014A4ECC

[offset]
MAP_DATA_DESIGNATION_OFFSET=0x0260
MAP_DATA_OCCUPANCY_OFFSET=0x660
CREATURE_NAME_OFFSET=0x000
CREATURE_BODY_PART_HEALTH_VECTOR_OFFSET=0x030C
CREATURE_X_OFFSET=0x0094
CREATURE_Y_OFFSET=0x0096
CREATURE_Z_OFFSET=0x0098