Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help with a reaction mod  (Read 497 times)

nirodragon

  • Bay Watcher
  • Nirodragon cancels sleep: Interrupted by DF.
    • View Profile
Help with a reaction mod
« on: May 13, 2009, 02:04:13 pm »

I'm having some trouble getting this reaction to work properly.
Code: [Select]
[REACTION:FEATHER_WOOD_TO_FOOD]
[NAME:Make sun berries from feather tree logs]
[SMELTER]
[REAGENT:1:WOOD:NO_SUBTYPE:WOOD:FEATHER]
[PRODUCT:100:20:FOOD:ITEM_FOOD_ROAST:PLANT:BERRY_SUN]
Specifically, it consumes the wood, but produces nothing.  I've tried several variations in the [PRODUCT] line, but nothing is produced.

Also, in the errorlog.txt, I get the following string each time I run the reaction:
Code: [Select]
Unrecognized Sphere Token: PLANT
What am I doing wrong?
Logged
Urist McMiner cancels Mine: Taking a dump
Urist McMiner was disgusted by a miasma lately

I can't believe I just went there...

Vucar Fikodastesh

  • Bay Watcher
  • Grand Master Explorer
    • View Profile
Re: Help with a reaction mod
« Reply #1 on: May 13, 2009, 06:01:26 pm »

The correct material token is "BERRY_SUN:NO_MATGLOSS]:".
Logged
I think it's a vastly amusing thought that elephants are so afraid of heights that when Dwarves invented the Z-axis, they couldn't bear to face dwarves in combat anymore.

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: Help with a reaction mod
« Reply #2 on: May 13, 2009, 07:05:43 pm »

I would suggest against creating prepared food with the smelter; they probably wouldn't work, what with all the data that persists from the cooked items.

In any case, here's a reaction for normal sun berries.

Code: [Select]
[REACTION:FEATHER_WOOD_TO_FOOD]
[NAME:Make sun berries from feather tree logs]
[SMELTER]
[REAGENT:1:WOOD:NO_SUBTYPE:WOOD:FEATHER]
[PRODUCT:100:50:PLANT:NO_SUBTYPE:BERRY_SUN:NO_MATGLOSS]
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.