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.

User:Rick

From Dwarf Fortress Wiki
Jump to navigation Jump to search

"A great guy that has made many useful editing tools for Dwarfort." --Mylon

Currently researching memory and save files for the latest Dwarf Fortress version.

You can find me in #bay12games as well as SomethingAwful's #df.

memory.ini

In newer versions of my 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

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

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

v0.27.169.33d

[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

[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

[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