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:DFHack/scripts

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:
DFHack is an advanced Dwarf Fortress memory access library and a set of tools and scripts using this library, providing direct object-oriented access to Dwarf Fortress's internals as if it were compiled into the game itself. Releases support versions up through DF 0.40.24 (as of June 3rd, 2015) and some of them have been [http://dwarffortresswiki.org/User:Quietust#DFHack-40d backported] to earlier versions. It runs on Windows, Linux, and MacOS X. As of June 3rd 2015, the latest version is [http://www.bay12forums.com/smf/index.php?topic=139553 DFHack 0.40.24-r3].
+
DFHack is an advanced Dwarf Fortress memory access library and a set of tools and scripts using this library, providing direct object-oriented access to Dwarf Fortress's internals as if it were compiled into the game itself. Releases support versions up through 0.34.11 (as of June 22nd, 2012) and some of them have been [http://dwarffortresswiki.org/User:Quietust#DFHack-40d backported] to earlier versions. It runs on Windows, Linux, and MacOS X. As of July 4th, the latest version is [http://www.bay12forums.com/smf/index.php?topic=139553 r5].
  
 
Originally a simple memory hacking tool, DFHack has grown to become a full-fledged unofficial extension of the game itself, adding in functionality where official development has lacked. Due to its open-source and collaborative nature, anyone can add their own contribution to this tool. There are different kinds of contributions:
 
Originally a simple memory hacking tool, DFHack has grown to become a full-fledged unofficial extension of the game itself, adding in functionality where official development has lacked. Due to its open-source and collaborative nature, anyone can add their own contribution to this tool. There are different kinds of contributions:
Line 10: Line 10:
 
*[http://www.bay12forums.com/smf/index.php?topic=137011.msg5076999#msg5076999 announce.lua] - Print an announcement to the screen and the gamelog.
 
*[http://www.bay12forums.com/smf/index.php?topic=137011.msg5076999#msg5076999 announce.lua] - Print an announcement to the screen and the gamelog.
 
*[https://github.com/jjyg/df-ai/ df-ai] - a script that plays alone in fortress mode.
 
*[https://github.com/jjyg/df-ai/ df-ai] - a script that plays alone in fortress mode.
 +
*[[Utility:DFHack/createitem|createitem]]: Creates arbitrary items made of any material
 
*[https://gist.github.com/Putnam3145/7005776 force] - Allows forcing of events. Some of them are iffy, some don't work at all. It's mostly functional.
 
*[https://gist.github.com/Putnam3145/7005776 force] - Allows forcing of events. Some of them are iffy, some don't work at all. It's mostly functional.
*[https://gist.github.com/Putnam3145/8207480 hackWish] - Use a swanky GUI to create an item with any material and quality.
+
*[https://gist.github.com/Putnam3145/8207480 hackWish] - Use a swanky GUI interface to create an item with any material and quality.
 
*[https://gist.github.com/Putnam3145/7021922 instant transmission] - Allows teleportation to units in adventure mode by adventurer. Also gives power level readout.
 
*[https://gist.github.com/Putnam3145/7021922 instant transmission] - Allows teleportation to units in adventure mode by adventurer. Also gives power level readout.
 
*[https://gist.github.com/Putnam3145/7005730 itemsyndrome] - Allows items to impart syndromes when equipped.
 
*[https://gist.github.com/Putnam3145/7005730 itemsyndrome] - Allows items to impart syndromes when equipped.
Line 22: Line 23:
 
*[https://gist.github.com/Putnam3145/7035209 take-slave] - Like hire-guard, but with more transformation. Requires a SLAVE caste for currently played race.
 
*[https://gist.github.com/Putnam3145/7035209 take-slave] - Like hire-guard, but with more transformation. Requires a SLAVE caste for currently played race.
 
*[https://gist.github.com/Putnam3145/7243759 teleport] - Allows simple teleportation of unit to position. Position can be cursor or hardcoded.
 
*[https://gist.github.com/Putnam3145/7243759 teleport] - Allows simple teleportation of unit to position. Position can be cursor or hardcoded.
*[https://gist.github.com/Devduweb/6409714 trainskill] - Raises the skill level of a unit.
+
*[https://gist.github.com/Devduweb/6409714 trainskill] - Raises the skill level of an unit.
*[https://gist.github.com/Devduweb/6350270 fovcommand] - Executes a dfhack command on targets within the line of sight of a unit.
+
*[https://gist.github.com/Devduweb/6350270 fovcommand] - Executes a dfhack command on targets within the line of sight of an unit.
 
*[https://gist.github.com/Devduweb/6323075 callsiege] - Causes a random siege, you can set a probability for this to happen.
 
*[https://gist.github.com/Devduweb/6323075 callsiege] - Causes a random siege, you can set a probability for this to happen.
 
*[https://gist.github.com/Devduweb/6210329 naturalSkills] - Make sure creatures have their natural skills.
 
*[https://gist.github.com/Devduweb/6210329 naturalSkills] - Make sure creatures have their natural skills.
Line 41: Line 42:
 
*[http://www.bay12forums.com/smf/index.php?topic=136748.msg5045463#msg5045463 show-speeds] - Shows current speed and encumbrance for each citizen.
 
*[http://www.bay12forums.com/smf/index.php?topic=136748.msg5045463#msg5045463 show-speeds] - Shows current speed and encumbrance for each citizen.
 
*[http://www.bay12forums.com/smf/index.php?topic=128487.0 Rendermax], a plugin that implements a lighting system at the graphics level.
 
*[http://www.bay12forums.com/smf/index.php?topic=128487.0 Rendermax], a plugin that implements a lighting system at the graphics level.
*[http://www.bay12forums.com/smf/index.php?topic=136155.0 Dwarven Emigration], a script that allows unhappy dwarves to emigrate with their families.
+
*[http://www.bay12forums.com/smf/index.php?topic=136155.0 Dwarven Emigration], a plugin that allows unhappy dwarves to emigrate with their families.

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)