Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Auto Quarry Bush Reaction?  (Read 997 times)

Warlord255

  • Bay Watcher
  • Master Building Designer
    • View Profile
Auto Quarry Bush Reaction?
« on: April 30, 2019, 08:47:34 pm »

Forum and google searches have failed me.

Has anyone found or made an automatic reaction which processes Quarry Bushes exclusively? Queuing up the reaction is all well and dandy, but a bunch of other plants tend to get lumped in as well.
« Last Edit: April 30, 2019, 09:44:51 pm by Warlord255 »
Logged
DF Vanilla-Spice Revised: Better balance, more !!fun!!
http://www.bay12forums.com/smf/index.php?topic=173907.msg7968772#msg7968772

LeadfootSlim on Steam, LeadfootSlim#1851 on Discord. Hit me up!

FantasticDorf

  • Bay Watcher
    • View Profile
Re: Auto Quarry Bush Reaction?
« Reply #1 on: May 02, 2019, 02:04:23 pm »

May not be the answer you want but you can just hunt out the quarry bush exclusively in stockpiles and handle it as its own production line rather than use a massed pile.

Seperate out the nuts from the leaves by putting your querns/millstones nearby to your seed pile which draws from the farmers workshop which is fed by a collected quarry bush plant pile. Leaves diverted to the kitchen piles, nuts back into the pile for further production or recycling into the farming cycle.

If you have DFhack you can use it to also just find the relevant entries in stockpiles to speed this up, though they'll always be in the same place each time if you dont mod your game too much.
Logged

Wannabehero

  • Bay Watcher
    • View Profile
Re: Auto Quarry Bush Reaction?
« Reply #2 on: May 22, 2019, 12:03:26 pm »

The following reaction should specifically and only process quarry bushes to leaves and seeds, placing the leaves in an empty bag. It should also run automatically unless you turn that off in game.

Code: [Select]
[REACTION:CUSTOM_PROCESS_BUSH_AUTO]
[NAME:process quarry bush to bag (auto)]
[BUILDING:FARMER:NONE]
[REAGENT:plant:1:PLANT:NONE:PLANT_MAT:BUSH_QUARRY:STRUCTURAL]
[HAS_MATERIAL_REACTION_PRODUCT:SEED_MAT]
[REAGENT:bag:1:BOX:NONE:NONE:NONE]
[BAG][EMPTY][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:5:PLANT_GROWTH:LEAVES:PLANT_MAT:BUSH_QUARRY:LEAF]
[PRODUCT_TO_CONTAINER:bag]
[PRODUCT:100:1:SEED:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
[SKILL:PROCESSPLANTS]
[AUTOMATIC]

Remember, with custom reactions you need  to make sure to permit the reaction in your entity_default.txt file. Under the ENTITY:MOUNTAIN, add the following:

Code: [Select]
[PERMITTED_REACTION:CUSTOM_PROCESS_BUSH_AUTO]
Any additions to entity files requires the generation of a new world to take effect.
Logged

Warlord255

  • Bay Watcher
  • Master Building Designer
    • View Profile
Re: Auto Quarry Bush Reaction?
« Reply #3 on: May 22, 2019, 06:12:23 pm »

The following reaction should specifically and only process quarry bushes to leaves and seeds, placing the leaves in an empty bag. It should also run automatically unless you turn that off in game.

Code: [Select]
[REACTION:CUSTOM_PROCESS_BUSH_AUTO]
[NAME:process quarry bush to bag (auto)]
[BUILDING:FARMER:NONE]
[REAGENT:plant:1:PLANT:NONE:PLANT_MAT:BUSH_QUARRY:STRUCTURAL]
[HAS_MATERIAL_REACTION_PRODUCT:SEED_MAT]
[REAGENT:bag:1:BOX:NONE:NONE:NONE]
[BAG][EMPTY][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:5:PLANT_GROWTH:LEAVES:PLANT_MAT:BUSH_QUARRY:LEAF]
[PRODUCT_TO_CONTAINER:bag]
[PRODUCT:100:1:SEED:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT]
[SKILL:PROCESSPLANTS]
[AUTOMATIC]

Remember, with custom reactions you need  to make sure to permit the reaction in your entity_default.txt file. Under the ENTITY:MOUNTAIN, add the following:

Code: [Select]
[PERMITTED_REACTION:CUSTOM_PROCESS_BUSH_AUTO]
Any additions to entity files requires the generation of a new world to take effect.

You are a saint, sir. With your permission (and after a bit of testing) I would love to add this to the next release of Vanilla-Spice. Thank you so much!
Logged
DF Vanilla-Spice Revised: Better balance, more !!fun!!
http://www.bay12forums.com/smf/index.php?topic=173907.msg7968772#msg7968772

LeadfootSlim on Steam, LeadfootSlim#1851 on Discord. Hit me up!

Wannabehero

  • Bay Watcher
    • View Profile
Re: Auto Quarry Bush Reaction?
« Reply #4 on: May 23, 2019, 11:19:24 am »

Be my guest, I wrote it for you!
Logged