Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: We don't need no stinkin' barrels  (Read 1500 times)

Assassinfox

  • Bay Watcher
  • [FANCIFUL]
    • View Profile
    • Raging at the Box
We don't need no stinkin' barrels
« on: February 25, 2011, 07:26:27 pm »

So, I created a reaction to brew eggs into egg nog, modeled after the mead reaction:

Code: [Select]
[REACTION:MAKE_EGGNOG]
[NAME:make egg nog]
[BUILDING:STILL:CUSTOM_E]
[REAGENT:A:1:EGG:NONE:NONE:NONE]
[UNROTTEN]
[HAS_MATERIAL_REACTION_PRODUCT:NOG_MAT]
[REAGENT:B:1:BARREL:NONE:NONE:NONE]
[EMPTY]
[DOES_NOT_ABSORB]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:5:DRINK:NONE:GET_MATERIAL_FROM_REAGENT:A:NOG_MAT]
[PRODUCT_TO_CONTAINER:B]
[PRODUCT_DIMENSION:150]
[SKILL:BREWING]

For some odd reason, though, my brewer is brewing the egg nog, dumping it on the floor, and then just putting the barrel back into the furniture stockpile.  I know some people don't like egg nog, but this is a little ridiculous.  Is the PRODUCT_TO_CONTAINER tag just broken?  I've never actually tried brewing mead before.

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #1 on: February 25, 2011, 07:34:37 pm »

He knows it's bad.  Eggnog has mayo and sugar in it.  And more sugar.

Assassinfox

  • Bay Watcher
  • [FANCIFUL]
    • View Profile
    • Raging at the Box
Re: We don't need no stinkin' barrels
« Reply #2 on: February 25, 2011, 07:36:35 pm »

My mod's about dwarves living in chocolate caves and beating each other over the head with lollipops and my brewer is concerned with the calories in her egg nog?

Bdthemag

  • Bay Watcher
  • Die Wacht am Rhein
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #3 on: February 25, 2011, 07:40:45 pm »

Guess it doesn't have manners either, can you code that in?
Logged
Well, you do have a busy life, what with keeping tabs on wild, rough-and-tumble forum members while sorting out the drama between your twenty two inner lesbians.
Your drunk posts continue to baffle me.
Welcome to Reality.

Brandstone

  • Bay Watcher
  • Come hug me bro
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #4 on: February 25, 2011, 07:50:01 pm »

Guess it doesn't have manners either, can you code that in?
Actually...

Assassinfox

  • Bay Watcher
  • [FANCIFUL]
    • View Profile
    • Raging at the Box
Re: We don't need no stinkin' barrels
« Reply #5 on: February 25, 2011, 10:04:13 pm »

Egg nog jokes aside, nobody knows what's wrong with my reaction?

Brandstone

  • Bay Watcher
  • Come hug me bro
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #6 on: February 25, 2011, 10:22:19 pm »

I don't think nog_mat is a valid tag there. That has to be a reaction class, and I don't think we can add new ones. In fact, I'm pretty sure you don't need to use has material reaction. It probably doesn't matter, but I also don't think you need the product_dimension and does_not_absorb tags.

Edit: What does k tell you about the gunk they're dropping on the floor?
« Last Edit: February 25, 2011, 10:23:50 pm by Brandstone »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #7 on: February 25, 2011, 10:48:37 pm »

We can add new ones easily.

Can you post the whole thing with added reaction classes and stuff? Is the material solid by chance?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Assassinfox

  • Bay Watcher
  • [FANCIFUL]
    • View Profile
    • Raging at the Box
Re: We don't need no stinkin' barrels
« Reply #8 on: February 25, 2011, 11:12:34 pm »

I don't think nog_mat is a valid tag there. That has to be a reaction class, and I don't think we can add new ones. In fact, I'm pretty sure you don't need to use has material reaction.

Actually, you can create new reaction classes.  Half of this mod runs on custom reaction classes.

Here's my modded eggshell material template:

Spoiler (click to show/hide)

I then went into all the megabeast and domestic egglayers and individually changed their eggs to use this template instead of the default.  Then, I added something like this to each one:

Spoiler (click to show/hide)

Running the reaction gives me a workshop with a stack of 60 egg nog and an empty barrel.  When the still is deconstructed, the egg nog seems to mysteriously vanish.
« Last Edit: February 25, 2011, 11:18:29 pm by Assassinfox »
Logged

Brandstone

  • Bay Watcher
  • Come hug me bro
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #9 on: February 26, 2011, 08:16:26 am »

I guess it's time for me to read up reaction classes. The more you know!

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #10 on: February 26, 2011, 12:03:10 pm »

Are there any errors in the error log?
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

D_E

  • Bay Watcher
    • View Profile
Re: We don't need no stinkin' barrels
« Reply #11 on: February 26, 2011, 12:22:59 pm »

Are you sure that DRINK requires a PRODUCT_DIMENSION?

When I was experimenting with reaction-made alcohol in the previous release (.18), I don't think I needed that.  I also discovered that there was an upper limit to the number of DRINK objects that could be placed in a barrel in one go.  I believe PRODUCT:100:20 worked, but PRODUCT:100:30 resulted in the product being dumped on the floor.  (Oddly enough, putting PRODUCT:100:15 twice resulted in a total of 30 drink being put into the barrel).

So basically I think there's something wrong with the amount of DRINK being produced, that's causing it to not fit in the barrel.
Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)

Assassinfox

  • Bay Watcher
  • [FANCIFUL]
    • View Profile
    • Raging at the Box
Re: We don't need no stinkin' barrels
« Reply #12 on: February 26, 2011, 02:54:36 pm »

I copied all the values from the mead reaction.  Is mead getting dumped out of barrels too?

Maybe it has to do with the number of eggs in a stack as opposed to the units of honey typically used in the reaction.  I'll try messing with the output.  Thanks.