Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 ... 7

Author Topic: Reaction Tutorial/Information  (Read 8765 times)

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #30 on: April 08, 2010, 07:12:56 pm »

Yeah, I was typing it up while half asleep. I'll take another look later on and try my fingers at it, so to speak. Heh.
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #31 on: April 09, 2010, 01:20:36 am »

I'm trying to get the option of taking seed out of plant.
But I think I have a problem

[REACTION:EXTRACT_SEED]
   [NAME:extract seed]
   [BUILDING:KITCHEN:NONE]
   [REAGENT:A:1:PLANT:NONE:PLANT_MAT:STRUCTURAL][UNROTTEN]
   [PRODUCT:100:3:PLANT:SEED:GET_MATERIAL_FROM_REAGENT:A:SEED]
   [SKILL:COOK]

I get no error log (I did get some before while I was having fun trying).
Now this seems to make sense for me, but seems not for the game...

NB : Kitchen and Cook are only for test to have as many things known to work well

[PRODUCT:100:3:SEEDS:NONE:PLANT_MAT:GET_MATERIAL_FROM_REAGENT:A:NONE]

Haven't tried it yet though.
Logged
Finis sanctificat media.

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #32 on: April 09, 2010, 02:42:11 am »

[PRODUCT:100:3:SEEDS:NONE:PLANT_MAT:GET_MATERIAL_FROM_REAGENT:A:SEEDS]

I think that'll result in something closer to correct, since otherwise you're liable to get a Seed made of the regular plant, rather than its seeds which is liable to be odd.
Logged

shadow_slicer

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #33 on: April 09, 2010, 08:57:30 am »

[PRODUCT:100:1CORPSEPIECE:BONE:CREATURE_MAT:<CREAURE>:BONE]
Well, you're missing a colon, for one thing...
I'll give it a shot and see what happens, will post results here.

EDIT: No dice.
The reactions appear but nothing is produced.

I've also been trying to get this to work. I tried for a while, but still nothing is produced. If you have multiple products, the other products are still produced normally. The same thing happens for CORPSE as well. I think it's likely Toady either forgot to implement this, or specifically disabled it. I'll file a bug report and see what comes up...

Edit: Issue #877
« Last Edit: April 09, 2010, 09:11:31 am by shadow_slicer »
Logged

Zurin

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #34 on: April 09, 2010, 09:07:20 am »

double post fail
« Last Edit: April 09, 2010, 09:11:27 am by Zurin »
Logged

Zurin

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #35 on: April 09, 2010, 09:07:51 am »

[PRODUCT:100:3:SEEDS:NONE:PLANT_MAT:GET_MATERIAL_FROM_REAGENT:A:SEEDS]

I think that'll result in something closer to correct, since otherwise you're liable to get a Seed made of the regular plant, rather than its seeds which is liable to be odd.

This doesn't give error (unlike the first proposal) but nothing shows up in the kitchen...
Same result with [PRODUCT:100:3:SEEDS:NONE:PLANT_MAT:GET_MATERIAL_FROM_REAGENT:A:NONE] that was proposed
« Last Edit: April 09, 2010, 09:10:43 am by Zurin »
Logged

Erk

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #36 on: April 09, 2010, 10:50:40 am »

Are you trying to take the plants out of barrels? That still doesn't work...
Logged
'River' cancels eat: Food is problematic.

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #37 on: April 09, 2010, 11:36:41 am »

There's SEED_MAT tag in the DF. ;-)

So, i think the right way will be like this.

reaction_other.txt:

[REACTION:EXTRACTSEEDS]
        [NAME:extract seeds]
        [BUILDING:KITCHEN:CUSTOM_W]
[REAGENT:A:1:PLANT:NONE:PLANT_MAT:STRUCTURAL][REACTION_CLASS:EXTSEEDS]
[HAS_MATERIAL_REACTION_PRODUCT:SEED_MAT]
[PRODUCT:100:3:SEEDS:NONE:PLANT_MAT:GET_MATERIAL_FROM_REAGENT:A:SEED_MAT]
[SKILL:COOK]

Add into material_template_default.txt, somewhere about line 2053, before [SEED_MAT] line:
[REACTION_CLASS:EXTSEEDS]
[MATERIAL_REACTION_PRODUCT:SEED_MAT:LOCAL_PLANT_MAT:SEEDS]


Pure logic analysis, didn't tried that myself.

Also it seems that changing structure of [seed_mat] sequence will corrupt the usual way of getting seeds while brewing/milling plants.
Logged
Finis sanctificat media.

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #38 on: April 09, 2010, 11:48:25 am »

Hmm.

Maybe everything's even easier. Just a reaction without editing template defaults.

[REACTION:EXTRACT_SEED]
   [NAME:extract seed]
   [BUILDING:KITCHEN:NONE]
   [REAGENT:A:1:PLANT:NONE:PLANT_MAT:STRUCTURAL]
[HAS_MATERIAL_REACTION_PRODUCT:SEED_MAT][PRODUCT:100:3:SEEDS:NONE:PLANT_MAT:GET_MATERIAL_FROM_REAGENT:A:SEED_MAT]
   [SKILL:COOK]
Logged
Finis sanctificat media.

Zurin

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #39 on: April 09, 2010, 12:26:11 pm »

No error but I don't get the possibility to order my dwarf to try make the reaction (same with all other proposal made).

And solution with adding in material...txt give me huge error (save game doesn't load) : "Missing reaction definition"
« Last Edit: April 09, 2010, 12:32:07 pm by Zurin »
Logged

masterstick

  • Escaped Lunatic
    • View Profile
Re: Reaction Tutorial/Information
« Reply #40 on: April 09, 2010, 02:41:21 pm »

i cant seem to get my reagent to work the dwarves keep grabbing plump helms instead of seeds

[REACTION:FARM_001]
[NAME:Plump Helmet]
[BUILDING:FARM:NONE]
[REAGENT:A:1:SEED:NONE:MUSHROOM_HELMET_PLUMP:SEED]
[PRODUCT:100:1:PLANT:NO_SUBTYPE:PLANT_MAT:MUSHROOM_HELMET_PLUMP:PLANT]
[SKILL:FARMER]

Logged

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #41 on: April 09, 2010, 02:44:49 pm »

Try this instead?
[REAGENT:A:1:SEED:NONE:PLANT_MAT:MUSHROOM_HELMET_PLUMP:SEED]
Logged

masterstick

  • Escaped Lunatic
    • View Profile
Re: Reaction Tutorial/Information
« Reply #42 on: April 09, 2010, 02:59:30 pm »

nope still the same problem
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Reaction Tutorial/Information
« Reply #43 on: April 09, 2010, 09:32:52 pm »

No error but I don't get the possibility to order my dwarf to try make the reaction (same with all other proposal made).

And solution with adding in material...txt give me huge error (save game doesn't load) : "Missing reaction definition"
Haha, yes, this demands regenning the world.

Other reactions maybe too.
Logged
Finis sanctificat media.

Intelligent Shade of Blue

  • Bay Watcher
  • Sanity Loss: 0/1d4 points
    • View Profile
Re: Reaction Tutorial/Information
« Reply #44 on: April 09, 2010, 11:18:54 pm »

So, I'm looking to create a meat grinder type workshop, though without a big list of tokens (the wiki is incredibly incomplete in that regard) I'm stumbling through the dark and not even sure if it will be possible. My original idea was for it to use live creatures like the butcher's shop, but instead of having all sorts of parts as the product, the meat grinder just spits out some ground meat and blood. It seems using live creatures is impossible, unfortunately (though I would love to be proven wrong), and I am not sure how/if a corpse can be used in a reaction.

Anyways, while I am at a loss as to how to create a meat grinder workshop, I thought i would try to make a basic grinder that could grind bones into meal for cooking. In material_template_default.txt, I see that bone meal is the powder form for bone. My questions are 1) how would I set up a reaction to turn solid bone into powder, and 2) would it be possible to set the bone meal as [EDIBLE_COOKED] but not whole bones?
Logged
[COLOR:PRUSSIAN_BLUE]
[NAME:ISoB]
[RGB:0:49:83]
Pages: 1 2 [3] 4 5 ... 7