Skip to content

Commit 6921277

Browse files
committed
Add upgrading instructions
1 parent 128050c commit 6921277

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

docs/Installing.rst

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ operating system should have built-in utilities capable of extracting files from
9797
these archives.
9898

9999
The release archives contain several files and folders, including a ``hack``
100-
folder, a ``dfhack-config`` folder, and a ``dfhack.init-example`` file. All
101-
files from the DFHack archive need to be copied into the root DF folder, which
102-
should already include a ``data`` folder and a ``raw`` folder, among other
103-
things. Some packs and other redistributions of Dwarf Fortress may place DF in
104-
another folder, so ensure that the ``hack`` folder ends up next to the ``data``
105-
folder.
100+
folder, a ``dfhack-config`` folder, and a ``dfhack.init-example`` file. To
101+
install DFHack, copy all of the files from the DFHack archive into the root DF
102+
folder, which should already include a ``data`` folder and a ``raw`` folder,
103+
among other things. Some packs and other redistributions of Dwarf Fortress may
104+
place DF in another folder, so ensure that the ``hack`` folder ends up next to
105+
the ``data`` folder.
106106

107107
.. note::
108108

@@ -122,6 +122,26 @@ currently maintain a list of these files, so if you want to completely remove
122122
them, you should consult the DFHack archive that you installed for a full list.
123123
Generally, any files left behind should not negatively affect DF.
124124

125+
126+
Upgrading DFHack
127+
================
128+
129+
The recommended approach to upgrade DFHack is to uninstall DFHack first, then
130+
install the new version. This will ensure that any files that are only part
131+
of the older DFHack installation do not affect the new DFHack installation
132+
(although this is unlikely to occur).
133+
134+
It is also possible to overwrite an existing DFHack installation in-place.
135+
To do this, follow the installation instructions above, but overwrite all files
136+
that exist in the new DFHack archive (on Windows, this includes ``SDL.dll`` again).
137+
138+
.. note::
139+
140+
You may wish to make a backup of your ``dfhack-config`` folder first if you
141+
have made changes to it. Some archive managers (e.g. Archive Utility on macOS)
142+
will overwrite the entire folder, removing any files that you have added.
143+
144+
125145
Pre-packaged DFHack installations
126146
=================================
127147

0 commit comments

Comments
 (0)