2020-07-18 01:16:52 -06:00
|
|
|
.. _installing:
|
|
|
|
|
|
|
|
=================
|
|
|
|
Installing DFHack
|
|
|
|
=================
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
============
|
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
DFHack supports all operating systems and platforms that Dwarf Fortress itself
|
|
|
|
supports, which at the moment is just 64-bit Windows. However, the Windows
|
|
|
|
build of DFHack works well under ``wine`` (or ``Proton``, Steam's fork of
|
|
|
|
``wine``) on other operating systems.
|
2020-07-18 01:16:52 -06:00
|
|
|
|
|
|
|
.. _installing-df-version:
|
|
|
|
|
|
|
|
DFHack releases generally only support the version of Dwarf Fortress that they
|
2023-04-10 19:29:41 -06:00
|
|
|
are named after. For example, DFHack 50.05 only supported DF 50.05. DFHack
|
|
|
|
releases *never* support newer versions of DF -- DFHack requires data about DF
|
|
|
|
that is only possible to obtain after DF has been released. Occasionally,
|
|
|
|
DFHack releases will be able to maintain support for older versions of DF - for
|
|
|
|
example, DFHack 0.34.11-r5 supported both DF 0.34.11 and 0.34.10. For maximum
|
|
|
|
stability, you should usually use the latest versions of both DF and DFHack.
|
2020-07-18 01:16:52 -06:00
|
|
|
|
|
|
|
.. _downloading:
|
|
|
|
|
|
|
|
Downloading DFHack
|
|
|
|
==================
|
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
Stable builds of DFHack are available on
|
|
|
|
`Steam <https://store.steampowered.com/app/2346660/DFHack__Dwarf_Fortress_Modding_Engine/>`__
|
|
|
|
or from our `GitHub <https://github.com/dfhack/dfhack/releases>`__. Either
|
|
|
|
location will give you exactly the same package.
|
|
|
|
|
|
|
|
On Steam, note that DFHack is a separate app, not a DF Steam Workshop mod. You
|
|
|
|
can run DF with DFHack by launching either the DFHack app or the original Dwarf
|
|
|
|
Fortress app.
|
|
|
|
|
|
|
|
If you download from GitHub, downloads are available at the bottom of the
|
|
|
|
release notes for each release, under a section named "Assets" (which you may
|
|
|
|
have to expand). The name of the file indicates which DF version, platform, and
|
|
|
|
architecture the build supports - the platform and architecture (64-bit or
|
|
|
|
32-bit) **must** match your build of DF. The DF version should also match your
|
|
|
|
DF version - see `above <installing-df-version>` for details. For example:
|
2020-07-18 01:16:52 -06:00
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
* ``dfhack-50.07-r1-Windows-64bit.zip`` supports 64-bit DF on Windows
|
2020-07-18 01:16:52 -06:00
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
In between stable releases, we may create beta releases to test new features.
|
|
|
|
These are available via the beta release channel on Steam or from our regular
|
|
|
|
Github page as a pre-release tagged with a "beta" suffix.
|
2020-07-18 01:16:52 -06:00
|
|
|
|
|
|
|
.. warning::
|
|
|
|
|
|
|
|
Do *not* download the source code from GitHub, either from the releases page
|
|
|
|
or by clicking "Download ZIP" on the repo homepage. This will give you an
|
|
|
|
incomplete copy of the DFHack source code, which will not work as-is. (If
|
|
|
|
you want to compile DFHack instead of using a pre-built release, see
|
2023-01-14 19:48:50 -07:00
|
|
|
`building-dfhack-index` for instructions.)
|
2020-07-18 01:16:52 -06:00
|
|
|
|
|
|
|
Installing DFHack
|
|
|
|
=================
|
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
If you are installing from Steam, this is handled for you automatically. The
|
|
|
|
instructions here are for manual installs.
|
|
|
|
|
2020-07-18 01:16:52 -06:00
|
|
|
When you `download DFHack <downloading>`, you will end up with a release archive
|
|
|
|
(a ``.zip`` file on Windows, or a ``.tar.bz2`` file on other platforms). Your
|
|
|
|
operating system should have built-in utilities capable of extracting files from
|
|
|
|
these archives.
|
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
The release archives contain a ``hack`` folder where DFHack binary and system
|
|
|
|
data is stored, a ``stonesense`` folder that contains data specific to the
|
|
|
|
`stonesense` 3d renderer, and various libraries and executable files. To
|
|
|
|
install DFHack, copy all of the files from the DFHack archive into the root DF
|
2023-04-10 21:35:05 -06:00
|
|
|
folder, which should already include a ``data`` folder and a ``save`` folder,
|
2023-04-10 19:29:41 -06:00
|
|
|
among other things. Some redistributions of Dwarf Fortress may place DF in
|
|
|
|
another folder, so ensure that the ``hack`` folder ends up next to the ``data``
|
|
|
|
folder, and you'll be fine.
|
2020-07-18 01:16:52 -06:00
|
|
|
|
|
|
|
Uninstalling DFHack
|
|
|
|
===================
|
|
|
|
|
2023-01-04 11:30:10 -07:00
|
|
|
Just renaming or removing the ``dfhooks`` library file is enough to disable
|
|
|
|
DFHack. If you would like to remove all DFHack files, consult the DFHack install
|
|
|
|
archive to see the list of files and remove the corresponding files in the Dwarf
|
|
|
|
Fortress folder. Any DFHack files left behind will not negatively affect DF.
|
2020-07-18 01:16:52 -06:00
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
On Steam, uninstalling DFHack will cleanly remove everything that was installed
|
2023-01-04 11:30:10 -07:00
|
|
|
with DFHack, so there is nothing else for you to do.
|
2023-04-10 19:29:41 -06:00
|
|
|
|
|
|
|
Note that Steam will leave behind the ``dfhack-config`` folder, which contains
|
|
|
|
all your personal DFHack-related settings and data. If you keep this folder,
|
|
|
|
all your settings will be restored when you reinstall DFHack later.
|
2020-07-18 10:35:04 -06:00
|
|
|
|
|
|
|
Upgrading DFHack
|
|
|
|
================
|
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
Again, if you have installed from Steam, your copy of DFHack will automatically be kept up to date. This section is for manual installers.
|
2020-10-12 22:24:29 -06:00
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
First, remove the ``hack`` and ``stonesense`` folders in their entirety. This
|
|
|
|
ensures that files that don't exist in the latest version are properly removed
|
|
|
|
and don't affect your new installation.
|
2020-10-12 22:24:29 -06:00
|
|
|
|
2023-04-10 19:29:41 -06:00
|
|
|
Then, extract the DFHack release archive into your Dwarf Fortress folder,
|
2023-01-04 11:30:10 -07:00
|
|
|
overwriting any remaining top-level files.
|