From 4bad609e3377d7f9171eaff2f77f7fcafa400ebd Mon Sep 17 00:00:00 2001 From: myk002 Date: Fri, 29 Jan 2021 12:20:25 -0800 Subject: [PATCH] use the search plugin for tallow aliases and document the dependency --- data/quickfort/aliases-common.txt | 6 +++--- docs/guides/quickfort-alias-guide.rst | 14 +++++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/data/quickfort/aliases-common.txt b/data/quickfort/aliases-common.txt index 483085bb4..721aadacf 100644 --- a/data/quickfort/aliases-common.txt +++ b/data/quickfort/aliases-common.txt @@ -104,7 +104,7 @@ plants: {foodprefix}b{Right}{Down 4}p^ booze: {foodprefix}b{Right}{Down 5}p{Down}p^ seeds: {foodprefix}b{Right}{Down 9}p^ dye: {foodprefix}b{Right}{Down 11}{Right}{Down 28}{togglesequence 4}^ -tallow: {foodprefix}b{Right}{Down 13}{Right}{Down}{togglesequence2 822}^ +tallow: {foodprefix}b{Right}{Down 13}{Right}stallow&p^ miscliquid: {foodprefix}b{Right}{Down 18}p^ forbidpreparedfood: {foodprefix}u^ @@ -113,7 +113,7 @@ forbidplants: {foodprefix}{Right}{Down 4}f^ forbidbooze: {foodprefix}{Right}{Down 5}f{Down}f^ forbidseeds: {foodprefix}{Right}{Down 9}f^ forbiddye: {foodprefix}{Right}{Down 11}{Right}{Down 28}{togglesequence 4}^ -forbidtallow: {foodprefix}{Right}{Down 13}{Right}{Down}{togglesequence2 822}^ +forbidtallow: {foodprefix}{Right}{Down 13}{Right}stallow&f^ forbidmiscliquid: {foodprefix}{Right}{Down 18}f^ permitpreparedfood: {forbidpreparedfood} @@ -122,7 +122,7 @@ permitplants: {foodprefix}{Right}{Down 4}p^ permitbooze: {foodprefix}{Right}{Down 5}p{Down}p^ permitseeds: {foodprefix}{Right}{Down 9}p^ permitdye: {forbiddye} -permittallow: {forbidtallow} +permittallow: {foodprefix}{Right}{Down 13}{Right}stallow&p^ permitmiscliquid: {foodprefix}{Right}{Down 18}p^ # the next two aliases are for compatibility with previous implementations of diff --git a/docs/guides/quickfort-alias-guide.rst b/docs/guides/quickfort-alias-guide.rst index aedb07173..efd8daea1 100644 --- a/docs/guides/quickfort-alias-guide.rst +++ b/docs/guides/quickfort-alias-guide.rst @@ -282,14 +282,18 @@ library, discussing their intended usage and detailing sub-aliases that you can define to customize their behavior. If you do define your own custom aliases in -``dfhack-config/quickfort/aliases.txt``, try to build on the library aliases. -For example, if you create an alias to modify particular furniture stockpile -settings, start your alias with ``{furnitureprefix}`` instead of -``s{Down 2}``. Using library prefixes will allow sub-aliases to work with your -aliases just like they do with library aliases. In this case, using +``dfhack-config/quickfort/aliases.txt``, try to build on library alias +components. For example, if you create an alias to modify particular furniture +stockpile settings, start your alias with ``{furnitureprefix}`` instead of +``s{Down 2}``. Using library prefixes will allow library sub-aliases to work +with your aliases just like they do with library aliases. In this case, using ``{furnitureprefix}`` will allow your stockpile customization alias to work with both stockpiles and hauling routes. +Note that some aliases use the DFHack-provided search prompts. If you get errors +while running ``#query`` blueprints, ensure the DFHack `search ` +plugin is enabled. + Naming aliases ~~~~~~~~~~~~~~