2022-07-10 00:01:46 -06:00
|
|
|
changelayer
|
|
|
|
===========
|
sync tags spreadsheet to git
spreadsheet - https://docs.google.com/spreadsheets/d/1hiDlo8M_bB_1jE-5HRs2RrrA_VZ4cRu9VXaTctX_nwk/edit#gid=170388995
sync command - for fname in *rst; do name=$(echo $fname | sed 's/[.]rst//'); tagline=$(egrep ",$name," ~/Downloads/DFHack\ taxonomy\ -\ Tool\ tags.csv | ~/Downloads/csvtotags.sh); sed -ri "s;[*]*Tags:.*;$tagline;" $fname; done
contents of csvtotags.sh -
fgrep . | sed -r 's/^[^,]+,([^,]+),[^.]+[.]"?,/\1,/' | awk -F, '
function tag(idx, tagname) {
if ($idx == "TRUE") {
if (hastag == 1) {printf(", ")}
printf("`tag/%s`", tagname)
hastag = 1
}
}
{
printf("%s", "**Tags:** ")
hastag = 0
tag(2, "adventure")
tag(3, "fort")
tag(4, "legends")
tag(5, "embark")
tag(6, "system")
tag(7, "dev")
tag(8, "auto")
tag(9, "productivity")
tag(10, "inspection")
tag(11, "design")
tag(12, "quickfort")
tag(13, "interface")
tag(14, "fps")
tag(15, "fix")
tag(16, "mod")
tag(17, "armok")
tag(18, "animals")
tag(19, "buildings")
tag(20, "items")
tag(21, "jobs")
tag(22, "map")
tag(23, "labors")
tag(24, "units")
tag(25, "stockpiles")
tag(26, "trees")
printf("\n")
}
'
2022-08-05 18:55:33 -06:00
|
|
|
**Tags:** `tag/fort`, `tag/armok`, `tag/map`
|
2022-07-23 17:03:40 -06:00
|
|
|
:dfhack-keybind:`changelayer`
|
2022-07-20 14:21:05 -06:00
|
|
|
|
2022-07-22 17:42:36 -06:00
|
|
|
:index:`Change the material of an entire geology layer.
|
|
|
|
<changelayer; Change the material of an entire geology layer.>` Note that one
|
|
|
|
layer can stretch across many z-levels, and changes to the geology layer will
|
|
|
|
affect all surrounding regions, not just your embark! Mineral veins and gem
|
|
|
|
clusters will not be affected. Use `changevein` if you want to modify those.
|
2022-07-20 14:21:05 -06:00
|
|
|
|
|
|
|
tl;dr: You will end up with changing large areas in one go, especially if you
|
|
|
|
use it in lower z levels. Use this command with care!
|
|
|
|
|
|
|
|
Usage::
|
|
|
|
|
|
|
|
changelayer <material RAW id> [<options>]
|
|
|
|
|
|
|
|
When run without options, ``changelayer`` will:
|
|
|
|
|
|
|
|
- only affect the geology layer at the current cursor position
|
|
|
|
- only affect the biome that covers the current cursor position
|
|
|
|
- not allow changing stone to soil and vice versa
|
|
|
|
|
|
|
|
You can use the `probe` command on various tiles around your map to find valid
|
|
|
|
material RAW ids and to get an idea how layers and biomes are distributed.
|
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
``changelayer GRANITE``
|
2022-07-20 14:21:05 -06:00
|
|
|
Convert the layer at the cursor position into granite.
|
2022-07-10 00:01:46 -06:00
|
|
|
``changelayer SILTY_CLAY force``
|
2022-07-20 14:21:05 -06:00
|
|
|
Convert teh layer at the cursor position into clay, even if it's stone.
|
2022-07-10 00:01:46 -06:00
|
|
|
``changelayer MARBLE all_biomes all_layers``
|
|
|
|
Convert all layers of all biomes which are not soil into marble.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
* If you use changelayer and nothing happens, try to pause/unpause the game
|
2022-07-20 14:21:05 -06:00
|
|
|
for a while and move the cursor to another tile. Then try again. If that
|
|
|
|
doesn't help, then try to temporarily change some other layer, undo your
|
|
|
|
changes, and try again for the layer you want to change. Saving and
|
|
|
|
reloading your map also sometimes helps.
|
2022-07-10 00:01:46 -06:00
|
|
|
* You should be fine if you only change single layers without the use
|
2022-07-20 14:21:05 -06:00
|
|
|
of 'force'. Still, it's advisable to save your game before messing with
|
2022-07-10 00:01:46 -06:00
|
|
|
the map.
|
2022-07-20 14:21:05 -06:00
|
|
|
* When you force changelayer to convert soil to stone, you might see some
|
|
|
|
weird stuff (flashing tiles, tiles changed all over place etc). Try
|
|
|
|
reverting the changes manually or even better use an older savegame. You
|
|
|
|
did save your game, right?
|
2022-07-23 17:03:40 -06:00
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
|
|
|
|
|
|
|
``all_biomes``
|
|
|
|
Change the corresponding geology layer for all biomes on your map. Be aware
|
|
|
|
that the same geology layer can AND WILL be on different z-levels for
|
|
|
|
different biomes.
|
|
|
|
``all_layers``
|
|
|
|
Change all geology layers on your map (only for the selected biome unless
|
|
|
|
``all_biomes`` is also specified). Candy mountain, anyone? Will make your map
|
|
|
|
quite boring, but tidy.
|
|
|
|
``force``
|
|
|
|
Allow changing stone to soil and vice versa. **THIS CAN HAVE WEIRD EFFECTS,
|
|
|
|
USE WITH CARE AND SAVE FIRST**. Note that soil will not be magically replaced
|
|
|
|
with stone. You will, however, get a stone floor after digging, so it will
|
|
|
|
allow the floor to be engraved. Similarly, stone will not be magically
|
|
|
|
replaced with soil, but you will get a soil floor after digging, so it could
|
|
|
|
be helpful for creating farm plots on maps with no soil.
|
|
|
|
``verbose``
|
|
|
|
Output details about what is being changed.
|