Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Why can't my reactions regeant (dwarven sugar) be detected?  (Read 1652 times)

Mr Crabman

  • Bay Watcher
  • A person with the head and pincers of a crab.
    • View Profile
Why can't my reactions regeant (dwarven sugar) be detected?
« on: February 05, 2022, 05:50:27 pm »

I defined this reaction:
Code: [Select]
[REACTION:MAKE_MARSHMALLOW]
    [NAME:make marshmallows]
    [BUILDING:KITCHEN:NONE]
    [REAGENT:A:150:POWDER_MISC:NONE:PLANT_MAT:POD_SWEET:MILL]
    [REAGENT:A:300:LIQUID_MISC:NONE:PLANT_MAT:POD_SWEET:EXTRACT][UNROTTEN]
    [PRODUCT:100:450:GLOB:NONE:PLANT_MAT:MARSHMALLOW:MARSHMALLOW]
    [SKILL:COOK]
    [AUTOMATIC]

But it won't work; despite my test where I have embarked with all the ingredients, the sugar reagent just won't be detected:



Why is it not being detected? I have like 20 units of dwarven sugar (and 5 syrup), that should be more than enough.

Atkana

  • Bay Watcher
  • [CURIOUSBEAST]
    • View Profile
Re: Why can't my reactions regeant (dwarven sugar) be detected?
« Reply #1 on: February 06, 2022, 02:22:09 am »

I believe in the case of container-based items (like liquids and powders) you usually also have to incorporate their container into the reaction as well. Another problem could be that you've assigned both of the reagents the same ID of A (which might be the reason, given the syrup seems to work fine without its container defined).
Try:
Code: [Select]
[REACTION:MAKE_MARSHMALLOW]
[NAME:make marshmallows]
[BUILDING:KITCHEN:NONE]
[REAGENT:sugar:150:POWDER_MISC:NONE:PLANT_MAT:POD_SWEET:MILL]
[REAGENT:sugar container:1:NONE:NONE:NONE:NONE]
[CONTAINS:sugar]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:syrup:300:LIQUID_MISC:NONE:PLANT_MAT:POD_SWEET:EXTRACT]
[UNROTTEN]
[REAGENT:syrup container:1:NONE:NONE:NONE:NONE]
[CONTAINS:syrup]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:450:GLOB:NONE:PLANT_MAT:MARSHMALLOW:MARSHMALLOW]
[SKILL:COOK]
[AUTOMATIC]

Mr Crabman

  • Bay Watcher
  • A person with the head and pincers of a crab.
    • View Profile
Re: Why can't my reactions regeant (dwarven sugar) be detected?
« Reply #2 on: February 06, 2022, 06:00:26 am »

Thank you; the container ended up being necessary for both, because while the task was added to the kitchen with just the sugar container (and the distinct names), it was canceled because suddenly it couldn't find any syrup, and I saw the syrup had vanished, and for some reason there was a pile of ash in the workshop beside the sugar bags...

So yeah, that did the trick.