2015-11-05 06:58:18 -07:00
|
|
|
.. _introduction:
|
|
|
|
|
|
|
|
#########################
|
2022-09-14 14:19:26 -06:00
|
|
|
Introduction and overview
|
2015-11-05 06:58:18 -07:00
|
|
|
#########################
|
|
|
|
|
|
|
|
DFHack is a Dwarf Fortress memory access library, distributed with
|
|
|
|
a wide variety of useful scripts and plugins.
|
|
|
|
|
2020-07-11 21:50:51 -06:00
|
|
|
The project is currently hosted `on GitHub <https://www.github.com/DFHack/dfhack>`_,
|
2020-10-09 17:04:40 -06:00
|
|
|
and can be downloaded from `the releases page <https://github.com/DFHack/dfhack/releases>`_
|
2020-07-11 21:50:51 -06:00
|
|
|
- see `installing` for installation instructions. This is also where the
|
|
|
|
`DFHack bug tracker <https://www.github.com/DFHack/dfhack>`_ is hosted.
|
2015-11-05 06:58:18 -07:00
|
|
|
|
2020-07-11 21:50:51 -06:00
|
|
|
All new releases are announced in `the Bay12 forums thread <https://dfhack.org/bay12>`_,
|
2015-11-05 06:58:18 -07:00
|
|
|
which is also a good place for discussion and questions.
|
|
|
|
|
2020-07-11 21:50:51 -06:00
|
|
|
For users, DFHack provides a significant suite of bugfixes and interface
|
2015-11-05 06:58:18 -07:00
|
|
|
enhancements by default, and more can be enabled. There are also many tools
|
|
|
|
(such as `workflow` or `autodump`) which can make life easier.
|
|
|
|
You can even add third-party scripts and plugins to do almost anything!
|
|
|
|
|
|
|
|
For modders, DFHack makes many things possible. Custom reactions, new
|
2022-07-22 15:37:47 -06:00
|
|
|
interactions, magic creature abilities, and more can be set through `DFHack tools <genindex>`
|
2015-11-05 06:58:18 -07:00
|
|
|
and custom raws. Non-standard DFHack scripts and inits can be stored in the
|
|
|
|
raw directory, making raws or saves fully self-contained for distribution -
|
|
|
|
or for coexistence in a single DF install, even with incompatible components.
|
|
|
|
|
|
|
|
For developers, DFHack unites the various ways tools access DF memory and
|
|
|
|
allows easier development of new tools. As an open-source project under
|
2020-07-11 21:50:51 -06:00
|
|
|
`various open-source licences <license>`, contributions are welcome.
|
2015-11-05 06:58:18 -07:00
|
|
|
|
|
|
|
|
2020-07-08 00:13:37 -06:00
|
|
|
.. contents:: Contents
|
|
|
|
:local:
|
2015-11-05 06:58:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
Getting started
|
|
|
|
===============
|
2020-07-18 01:16:52 -06:00
|
|
|
See `installing` for details on installing DFHack.
|
2015-11-05 06:58:18 -07:00
|
|
|
|
2020-07-18 01:16:52 -06:00
|
|
|
Once DFHack is installed, it extends DF with a console that can be used to run
|
|
|
|
commands. On Windows, this console will open automatically when DF is started.
|
|
|
|
On Linux and macOS, you will need to run the ``dfhack`` script from a terminal
|
|
|
|
(instead of the ``df`` script included with DF), and that terminal will be
|
|
|
|
used by the DFHack console.
|
2015-11-05 06:58:18 -07:00
|
|
|
|
2020-07-18 01:16:52 -06:00
|
|
|
* Basic interaction with DFHack involves entering commands into the console. To
|
|
|
|
learn what commands are available, you can keep reading this documentation or
|
|
|
|
skip ahead and use the `ls` and `help` commands.
|
2015-11-05 06:58:18 -07:00
|
|
|
|
|
|
|
* Another way to interact with DFHack is to set in-game `keybindings <keybinding>`
|
|
|
|
for certain commands. Many of the newer and user-friendly tools are designed
|
|
|
|
to be used this way.
|
|
|
|
|
|
|
|
* Commands can also run at startup via `init files <init-files>`,
|
|
|
|
on in batches at other times with the `script` command.
|
|
|
|
|
|
|
|
* Finally, some commands are persistent once enabled, and will sit in the
|
|
|
|
background managing or changing some aspect of the game if you `enable` them.
|
|
|
|
|
2022-07-22 10:56:23 -06:00
|
|
|
.. note::
|
|
|
|
In order to avoid user confusion, as a matter of policy all GUI tools
|
|
|
|
display the word :guilabel:`DFHack` on the screen somewhere while active.
|
|
|
|
|
|
|
|
When that is not appropriate because they merely add keybinding hints to
|
|
|
|
existing DF screens, they deliberately use red instead of green for the key.
|
2015-11-05 06:58:18 -07:00
|
|
|
|
2022-07-22 15:37:47 -06:00
|
|
|
.. _support:
|
|
|
|
|
2021-06-14 22:03:24 -06:00
|
|
|
Getting help
|
|
|
|
============
|
2022-07-22 15:37:47 -06:00
|
|
|
|
|
|
|
DFHack has several ways to get help online, including:
|
|
|
|
|
|
|
|
- The `DFHack Discord server <https://dfhack.org/discord>`__
|
|
|
|
- The ``#dfhack`` IRC channel on `Libera <https://libera.chat/>`__
|
|
|
|
- GitHub:
|
|
|
|
- for bugs, use the :issue:`issue tracker <>`
|
|
|
|
- for more open-ended questions, use the `discussion board
|
|
|
|
<https://github.com/DFHack/dfhack/discussions>`__. Note that this is a
|
|
|
|
relatively-new feature as of 2021, but maintainers should still be
|
|
|
|
notified of any discussions here.
|
|
|
|
- The `DFHack thread on the Bay 12 Forum <https://dfhack.org/bay12>`__
|
|
|
|
|
|
|
|
Some additional, but less DFHack-specific, places where questions may be answered include:
|
|
|
|
|
|
|
|
- The `/r/dwarffortress <https://dwarffortress.reddit.com>`_ questions thread on Reddit
|
|
|
|
- If you are using a starter pack, the relevant thread on the `Bay 12 Forum <http://www.bay12forums.com/smf/index.php?board=2.0>`__ -
|
|
|
|
see the :wiki:`DF Wiki <Utility:Lazy_Newb_Pack>` for a list of these threads
|
|
|
|
|
|
|
|
When reaching out to any support channels regarding problems with DFHack, please
|
|
|
|
remember to provide enough details for others to identify the issue. For
|
|
|
|
instance, specific error messages (copied text or screenshots) are helpful, as
|
|
|
|
well as any steps you can follow to reproduce the problem. Sometimes, log output
|
|
|
|
from ``stderr.log`` in the DF folder can point to the cause of issues as well.
|
|
|
|
|
|
|
|
Some common questions may also be answered in documentation, including:
|
|
|
|
|
|
|
|
- This documentation (`online here <https://dfhack.readthedocs.io>`__; search functionality available `here <search>`)
|
|
|
|
- :wiki:`The DF wiki <>`
|