RimWorld

RimWorld

[SYR] Processor Framework
『Gecko』 Mar 28, 2023 @ 11:26am
Making a full functional baking oven, questions about multiple ingredients
Is there a possibility adding multiple ingredients with ratio like 1.2 wheat flour, 0.3 butter, 0.5 berries... and so on and process it into a pie for example?
A single ingredient stuff works, like a simple wheat flour in, baked bread out, but if the recipe gets complex, your mod won't process it, when logically approached, like this:

<ProcessorFramework.ProcessDef ParentName="GEX_BakingOvenLarge_Base"> <defName>GEX_Baking_ApplePie</defName> <thingDef>GEX_ApplePie</thingDef> <!-- Output --> <ingredientFilter> <!-- Input --> <li> <filter> <thingDefs> <li>GEX_Flour</li> </thingDefs> </filter> <count>0.75</count> </li> <li> <filter> <thingDefs> <li>GEX_Sugar</li> </thingDefs> </filter> <count>0.2</count> </li> <li> <filter> <thingDefs> <li>GEX_RawApples</li> </thingDefs> </filter> <count>1.6</count> </li> </ingredientFilter> </ProcessorFramework.ProcessDef>

It just throw out a "multiple thingdef recognized" error, which simply means to me "does not support this logic".
Sure, I could add a step in between, adding a "fruity_dough" or such, but well...
Would be easier having it right in place of the processing oven after all.
Last edited by 『Gecko』; Mar 28, 2023 @ 3:34pm