- 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.
Utility:For Each Tile
This is a module for Gibbed's Dwarf Fortress Tweak utility that can conditionally alter tiles of the map. By supplying a condition and a set of operations, the program is able to evaluate the condition for each tile, and if the condition is true, then the operations are executed, altering that particular tile is some fashion. This flexibility potentially provides numerous uses. This utility was originally designed to be a smarter version of Reveal, but grew to become much more. Not only can this utility show or hide tiles, but it can change whether or not they are outside, inside, light, dark, subterranean, or above ground. It can alter water and magma levels, mining designations, and in some cases substantially alter tile types, such as when creating a river source tile.
Installation
Required Components
- Exponent.DwarfFortress.Tools.ForEachTile.zip (extract this into the tweak/plugins/ subfolder)
- Gibbed's Dwarf Fortress Tweak
- .NET 3.5 Runtime
Memory XML File Addition
Below is a list of all the required and optional memory addresses and offsets for each version of Dwarf Fortress on which this utility has been tested. Most of them are not necessary for limited operation of the program, but certain functions will be unavailable if the needed memory locations are not available.
v0.28.181.39f
<address name="menu_state" value="0x01386260" /> <address name="view_state" value="0x009EF368" /> <address name="mouse_x" value="0x009EF294" /> <address name="mouse_y" value="0x009EF298" /> <address name="mouse_z" value="0x009EF29C" /> <address name="viewport_x" value="0x00D387FC" /> <address name="viewport_y" value="0x00D66870" /> <address name="viewport_z" value="0x00D6684C" /> <address name="window_grid_x" value="0x016F8A7C" /> <address name="window_grid_y" value="0x016F8A80" /> <address name="map_data" value="0x015B7920"/> <address name="map_x_count" value="0x015B7938"/> <address name="map_y_count" value="0x015B793C"/> <address name="map_z_count" value="0x015B7940"/> <offset name="map_data_type_offset" value="0x0062"/> <offset name="map_data_designation_offset" value="0x0264"/> <offset name="map_data_occupancy_offset" value="0x0664"/> <offset name="map_data_temperature1_offset" value="0x1564"/> <offset name="map_data_temperature2_offset" value="0x1764"/>
v0.28.181.39e
<address name="menu_state" value="0x0132FDB0" /> <address name="view_state" value="0x009E3358" /> <address name="mouse_x" value="0x009E3284" /> <address name="mouse_y" value="0x009E3288" /> <address name="mouse_z" value="0x009E328C" /> <address name="viewport_x" value="0x00CE23C4" /> <address name="viewport_y" value="0x00D103C0" /> <address name="viewport_z" value="0x00D1039C" /> <address name="map_data" value="0x01561470"/> <address name="map_x_count" value="0x01561488"/> <address name="map_y_count" value="0x0156148C"/> <address name="map_z_count" value="0x01561490"/> <offset name="map_data_type_offset" value="0x0062"/> <offset name="map_data_designation_offset" value="0x0264"/> <offset name="map_data_occupancy_offset" value="0x0664"/> <offset name="map_data_temperature1_offset" value="0x1564"/> <offset name="map_data_temperature2_offset" value="0x1764"/>