This tool allows you to manipulate 3 region level features pre embark:
- Elevation (change region tile elevation)
- Biome (change region tile biome to any of the neighboring 9, including the local one)
- Change river course, elevation, and width. Elevation allows creation of aqueducts, gorges, and water falls.
- Change whether a river is a brook or a stream.
- Control the amount of water in the caverns. Only tested to a limited extent. This functionality also depends on other parameters
having compatible values elsewhere, plus the RNG.
- Manipulation of Features (Adamantine Spires, Volcanoes, Magma Pools, Passages, and Pits). The set of manipulations is limited to what the author finds reasonable. Limited testing has shown that adding Passages and Pits can result in cave-ins and draining of cavern lakes.
Note: all of these manipulations, except the brook/river one, are temporary. They are lost when another region is brought into focus, and they are likewise lost when embarking again in the same region as a previous fortress. However, the manipulations in effect when a fortress is created get "frozen" onto the fortress. This presumably can cause issues for adventure mode.
Also, changing river courses is messy, and only vaguely understood by the author, but some spectacular things can be generated.
https://www.dropbox.com/s/lap5tapg8if9p62/regionmanipulator.lua?dl=0 Version 0.15 2020-02-15.
The script can also be found here:
https://github.com/PatrikLundell/scripts/tree/own_scriptsThe tool is a Lua script that's intended to be stored in <DF folder>\hack\scripts and then invoked from the DFHack console by typing "regionmanipulator" into the console.
Change log:
0.15: Updated for 0.47.01 changes. Should be backwards compatible.
0.14: Fixed bug in river editing.
0.13: Reworked the UI and added manipulation of Features.
0.12: Added printing of help screen to DFHack console.
0.11: Added display of river entry/exit directions.
0.10: Replaced control scheme with command keys instead of tabbing through edit fields. Added mask to help screen to mask DF UI.
0.9: Added cursor starting on embark rectangle and "see through" view of the native DF region underneath the UI.
0.8: Added control of cavern water. This functionality is tested to a very limited extent.
0.7: Added description of the Biome reference coding DF uses to the help screen.
0.6: Fixed edit fields being one character too small.
0.5: Added ability to change a brook to a stream and vice versa.
0.4: No functionality change, just a better widget implementation internally.
0.3: Changed the UI to resemble a form with fields.
0.2: Allowed elevations to be negative down to -999.