fix example init file and related doc

develop
Myk Taylor 2023-01-09 15:33:04 -08:00
parent 0ccd9666f5
commit d918e2d9d8
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
3 changed files with 18 additions and 9 deletions

@ -0,0 +1,9 @@
# Example DFHack init scripts
This folder contains ready-to-use examples of DFHack init scripts.
You can use them by copying them to the dfhack-config/init folder.
You can use them unmodified, or you can customize them to better
suit your preferences.
For information on each of the files in this library, see the
[DFHack Example Configuration File Guide](https://docs.dfhack.org/en/stable/docs/guides/examples-guide.html).

@ -10,7 +10,7 @@
#on-new-fortress buildingplan set boulders false; buildingplan set logs false #on-new-fortress buildingplan set boulders false; buildingplan set logs false
# Disable cooking of useful item types when you start a new fortress. # Disable cooking of useful item types when you start a new fortress.
on-new-fortress ban-cooking tallow; ban-cooking honey; ban-cooking oil; ban-cooking seeds; ban-cooking brew; ban-cooking fruit; ban-cooking mill; ban-cooking thread; ban-cooking milk; ban-cooking booze on-new-fortress ban-cooking all
# Show a warning dialog when units are starving # Show a warning dialog when units are starving
repeat -name warn-starving -time 10 -timeUnits days -command [ warn-starving ] repeat -name warn-starving -time 10 -timeUnits days -command [ warn-starving ]
@ -40,8 +40,8 @@ enable automelt
enable tailor enable tailor
# auto-assigns nesting birds to nestbox zones and protects fertile eggs from # auto-assigns nesting birds to nestbox zones and protects fertile eggs from
# being cooked/eaten # being gathered and eaten
enable zone autonestbox nestboxes enable autonestbox nestboxes
# manages seed stocks # manages seed stocks
enable seedwatch enable seedwatch

@ -13,16 +13,16 @@ your preferences.
The ``init/`` subfolder The ``init/`` subfolder
----------------------- -----------------------
The :source:`init/ <data/examples/init>` subfolder contains useful DFHack The :source:`init/ <data/dfhack-config/init/examples>` subfolder contains useful
`init-files` that you can copy into your :file:`dfhack-config/init` folder -- DFHack `init-files` that you can copy into your :file:`dfhack-config/init`
the same directory as ``dfhack.init``. folder -- the same directory as ``dfhack.init``.
.. _onMapLoad-dreamfort-init: .. _onMapLoad-dreamfort-init:
:source:`onMapLoad_dreamfort.init <data/examples/init/onMapLoad_dreamfort.init>` :source:`onMapLoad_dreamfort.init <data/dfhack-config/init/examples/onMapLoad_dreamfort.init>`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is the config file that comes with the `dreamfort` set of blueprints, but This is the config file that designed for the `dreamfort` set of blueprints, but
it is useful (and customizable) for any fort. It includes the following config: it is useful (and customizable) for any fort. It includes the following config:
- Calls `ban-cooking` for items that have important alternate uses and should - Calls `ban-cooking` for items that have important alternate uses and should