Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Stockpile macros: brewable plants/seeds selection  (Read 614 times)

Lav

  • Bay Watcher
    • View Profile
Stockpile macros: brewable plants/seeds selection
« on: February 07, 2017, 04:18:28 am »

Just sharing some of my personal tweaks.

Stockpile plant/seed selection macros for vanilla DF.

Macros are to be run in Stockpile details screen. No matter where you are in that screen, macro will do the following:

1. Enable Food category in the stockpile.
2. Block everything there.
3. Select all brewable/non-brewable plants, fruits and their respective seeds.

First macro will select everything brewable, the second will select everything non-brewable.

Plants that can produce threads or dyes are included in the non-brewable category, even if they can produce some booze.

Plants that can be brewed AND milled/processed for food are included in the brewable category.

Macros select both seeds and plants for each category. That's not because I'm advising you to keep your seed and plant stockpiles combined, I just decided that it's easier to run a single macro and then disable the unneeded category manually than to have two additional macros. :-)

Note that the macros rely on data entries and their ordering in game raws. This means they are only valid for non-modded vanilla DF. Using them with modified raws will result in your plants, fruits and seeds being selected without any rhyme or reason. Nothing bad will happen, you just won't get a useful selection with these macros.

To use the macros, drop them in the data/init/macros directory of your DF installation. Go to any of your stockpile details, load the macro you want (Ctrl-L by default), play it (Ctrl-P by default) and enjoy.

Tested on 43.05 but should be perfectly compatible with everything from 40.01 and upwards, unless plant/tree raws have been modified somewhere. If I'm wrong to assume that, please advise.
Logged
Seems to be the way with things on this forum; if an invention doesn't involve death by magma then you know someone's going to go out of their way to make sure it does involve death by magma... then it gets acknowledged as being a great invention.