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 Utility:ViewportShifter

Jump to navigation Jump to search

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


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:
{{uv|40d}}
 
 
[[Category:Tweak Modules]][[Category:Utilities]]
 
[[Category:Tweak Modules]][[Category:Utilities]]
  
Line 16: Line 15:
 
==Coordinates==
 
==Coordinates==
  
At the bottom of the window, the viewport's rectangle coordinates and the cursor's location coordinates are displayed.  The viewport rectangle is described by its top-left corner and its bottom right corner.  Both these points represent the corner cells ''within'' the rectangle.  These two points are followed by the viewport's size.  The cursor location will only be shown when the cursor itself is visible.  Additionally, due to some technical difficulties, even if the cursor is visible, the location will not always be displayed.  The cursor location is guaranteed to be displayed while in the following menus:  look ({{k|k}}), squads ({{k|x}}), designations ({{k|d}}), stockpiles ({{k|p}}), and zones ({{k|i}}).
+
At the bottom of the window, the viewport's rectangle coordinates and the cursor's location coordinates are displayed.  The viewport rectangle is described by its top-left corner and its bottom right corner.  Both these points represent the corner cells ''within'' the rectangle.  These two points are followed by the viewport's size.  The cursor location will only be shown when the cursor itself is visible.  Additionally, due to some technical difficulties, even if the cursor is visible, the location will not always be displayed.  The cursor location is guaranteed to be displayed while in the following menus:  squads ({{x|x}}), all designations ({{d|d}}), stockpiles ({{p|p}}), and zones ({{i|i}}).
  
 
Tweak is a utility for Dwarf Fortress created by [[User:Rick|Rick]] which can load modules that provide different functionality to the user for tweaking, or editing Dwarf Fortress memory. It will attempt to automatically identify the version of the running Dwarf Fortress process and automatically load data related to that version.
 
Tweak is a utility for Dwarf Fortress created by [[User:Rick|Rick]] which can load modules that provide different functionality to the user for tweaking, or editing Dwarf Fortress memory. It will attempt to automatically identify the version of the running Dwarf Fortress process and automatically load data related to that version.
Line 24: Line 23:
 
===Required Components===
 
===Required Components===
  
*[http://dffd.wimbli.com/file.php?id=357 Exponent.DwarfFortress.Tools.ViewportShifter.zip] (extract this into the tweak/plugins/ subfolder)
+
*[http://dffd.wimbli.com/file.php?id=357 Exponent.DwarfFortress.Tools.ViewportShifter.dll] (put this in the tweak/plugins/ subfolder)
 
*[[User:Rick/Tweak|Gibbed's Dwarf Fortress Tweak]]
 
*[[User:Rick/Tweak|Gibbed's Dwarf Fortress Tweak]]
 
*[http://www.microsoft.com/downloads/details.aspx?FamilyID=333325FD-AE52-4E35-B531-508D977D32A6 .NET 3.5 Runtime]
 
*[http://www.microsoft.com/downloads/details.aspx?FamilyID=333325FD-AE52-4E35-B531-508D977D32A6 .NET 3.5 Runtime]
Line 30: Line 29:
 
===Memory XML File Addition===
 
===Memory XML File Addition===
  
Below is a list of all the required memory addresses and offsets for each version of Dwarf Fortress on which this utility has been tested.  You will need to make sure that they all exist within the xml files under the appropriate subfolder in tweak/versions.
+
Below is a list of all the required memory addresses and offsets for each version of Dwarf Fortress on which this utility has been tested.  You will need to make sure that they all exist within the files indicated.  Some of them already will be their, but many are likely to be new.
  
====v0.28.181.40d====
+
====v0.28.181.39e====
  
Version Hash Code:  2c686c26307dcccd7c36cc79737ebe4f
+
=====core.general.xml=====
 
 
<address name="menu_state" value="0x01393260" />
 
<address name="view_state" value="0x009FC368" />
 
<address name="mouse_x" value="0x009FC294" />
 
<address name="mouse_y" value="0x009FC298" />
 
<address name="mouse_z" value="0x009FC29C" />
 
<address name="viewport_x" value="0x00D457F4" />
 
<address name="viewport_y" value="0x00D73868" />
 
<address name="viewport_z" value="0x00D73844" />
 
<address name="window_grid_x" value="0x01706D4C" />
 
<address name="window_grid_y" value="0x01706D50" />
 
<address name="hotkeys" value="0x01392FA8" />
 
<offset name="hotkeys_offset_enabled" value="0x0000" />
 
<offset name="hotkeys_offset_x" value="0x0004" />
 
<offset name="hotkeys_offset_y" value="0x0008" />
 
<offset name="hotkeys_offset_z" value="0x000C" />
 
<offset name="hotkey_offset" value="0x002C" />
 
<address name="map_data" value="0x015C4D58"/>
 
<address name="map_x_count" value="0x015C4D70"/>
 
<address name="map_y_count" value="0x015C4D74"/>
 
<address name="map_z_count" value="0x015C4D78"/>
 
 
 
====v0.28.181.40a====
 
 
 
<address name="menu_state" value="0x01392268" />
 
<address name="view_state" value="0x009FB368" />
 
<address name="mouse_x" value="0x009FB294" />
 
<address name="mouse_y" value="0x009FB298" />
 
<address name="mouse_z" value="0x009FB29C" />
 
<address name="viewport_x" value="0x00D447FC" />
 
<address name="viewport_y" value="0x00D72870" />
 
<address name="viewport_z" value="0x00D7284C" />
 
<address name="window_grid_x" value="0x01704ECC" />
 
<address name="window_grid_y" value="0x01704ED0" />
 
<address name="hotkeys" value="0x01391FB0" />
 
<offset name="hotkeys_offset_enabled" value="0x0000" />
 
<offset name="hotkeys_offset_x" value="0x0004" />
 
<offset name="hotkeys_offset_y" value="0x0008" />
 
<offset name="hotkeys_offset_z" value="0x000C" />
 
<offset name="hotkey_offset" value="0x002C" />
 
<address name="map_data" value="0x015C3D60"/>
 
<address name="map_x_count" value="0x015C3D78"/>
 
<address name="map_y_count" value="0x015C3D7C"/>
 
<address name="map_z_count" value="0x015C3D80"/>
 
 
 
====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="hotkeys" value="0x01385FA8" />
 
<offset name="hotkeys_offset_enabled" value="0x0000" />
 
<offset name="hotkeys_offset_x" value="0x0004" />
 
<offset name="hotkeys_offset_y" value="0x0008" />
 
<offset name="hotkeys_offset_z" value="0x000C" />
 
<offset name="hotkey_offset" value="0x002C" />
 
<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"/>
 
 
 
====v0.28.181.39e====
 
  
 
  <address name="menu_state" value="0x0132FDB0" />
 
  <address name="menu_state" value="0x0132FDB0" />
Line 119: Line 49:
 
  <offset name="hotkeys_offset_z" value="0x000C" />
 
  <offset name="hotkeys_offset_z" value="0x000C" />
 
  <offset name="hotkey_offset" value="0x002C" />
 
  <offset name="hotkey_offset" value="0x002C" />
 +
 +
=====core.map.xml=====
 +
 
  <address name="map_data" value="0x01561470"/>
 
  <address name="map_data" value="0x01561470"/>
 
  <address name="map_x_count" value="0x01561488"/>
 
  <address name="map_x_count" value="0x01561488"/>
 
  <address name="map_y_count" value="0x0156148C"/>
 
  <address name="map_y_count" value="0x0156148C"/>
 
  <address name="map_z_count" value="0x01561490"/>
 
  <address name="map_z_count" value="0x01561490"/>

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)