Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Specific barrel use  (Read 2051 times)

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: Specific barrel use
« Reply #15 on: August 24, 2014, 09:50:36 pm »

Hmmm... I looked it up and apparently the "cookable barrel" example shown is actually specifying a cookable liquid stored in a barrel (syrup, milk, etc.). It's still not going to store the resultant prepared meals in the input barrel, though. Sorry for the confusion.
Oh, that makes sense.

I just stumbled across this picture in the DFHack tips and tricks thread:
Spoiler: Large image: (click to show/hide)

It seems "empty, food_storage" is the actual way to specify the barrel, at least for brewing.
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

Loci

  • Bay Watcher
    • View Profile
Re: Specific barrel use
« Reply #16 on: August 25, 2014, 08:53:21 am »

Hmmm... I looked it up and apparently the "cookable barrel" example shown is actually specifying a cookable liquid stored in a barrel (syrup, milk, etc.). It's still not going to store the resultant prepared meals in the input barrel, though. Sorry for the confusion.
Oh, that makes sense.

I just stumbled across this picture in the DFHack tips and tricks thread:
Spoiler: Large image: (click to show/hide)

It seems "empty, food_storage" is the actual way to specify the barrel, at least for brewing.

Yes... and no. From the actual reaction in raw/objects/reaction_other.txt:

Spoiler (click to show/hide)

Note that the second reagent has some special tokens specifying that it is empty, doesn't contribute to the final stack size, and isn't destroyed in the reaction. Note also that the reaction has a "PRODUCT_TO_CONTAINER" token, specifying that the created products are placed into the barrel.

If you modify a kitchen reaction to require a barrel you need to make sure that all the necessary tokens are included--which may or may not be possible using that tool. Unfortunately, cooking jobs are not reactions in the raws, so they aren't simple to modify.
Logged
Pages: 1 [2]