RimWorld

RimWorld

[FSF] Complex Jobs (Legacy Version)
Denne tråd er blevet låst
Hades 24. nov. 2019 kl. 5:03
Mod compatibility
Hi FSF,

The compatibility issue I have with my mod (Rimworld Farming) is that when your mod is enabled they pawns can't be assigned to make compost.

The defs for the recipe is here... any ideas on what might be causing the issue with your mod?

My mod page is:
https://steamcommunity.com/sharedfiles/filedetails/?id=1718638765

<RecipeDef>
<defName>RF_MakeCompost</defName>
<label>make compost</label>
<description>Gather materials to compost.</description>
<jobString>Making compost.</jobString>
<allowMixingIngredients>true</allowMixingIngredients>
<ingredientValueGetterClass>IngredientValueGetter_Nutrition</ingredientValueGetterClass>
<requiredGiverWorkType>Cooking</requiredGiverWorkType>
<researchPrerequisite>RF_Composting</researchPrerequisite>
<workAmount>200</workAmount>
<workSpeedStat>CookSpeed</workSpeedStat>
<workSkill>Cooking</workSkill>
<effectWorking>ButcherFlesh</effectWorking>
<soundWorking>Recipe_ButcherCorpseFlesh</soundWorking>
<ingredients>
<li>
<filter>
<categories>
<li>FoodRaw</li>
<li>PlantFoodRaw</li>
</categories>
</filter>
<count>0.25</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>FoodRaw</li>
<li>PlantFoodRaw</li>
</categories>
</fixedIngredientFilter>
<defaultIngredientFilter>
<categories>
<li>FoodRaw</li>
</categories>
<disallowedCategories>
<li>EggsFertilized</li>
</disallowedCategories>
</defaultIngredientFilter>
<products>
<RF_Compost>1</RF_Compost>
</products>
<recipeUsers>
<li>CraftingSpot</li>
<li>ButcherSpot</li>
<li>TableButcher</li>
</recipeUsers>
</RecipeDef>
Sidst redigeret af Hades; 24. nov. 2019 kl. 5:07
< >
Viser 1-4 af 4 kommentarer
FrozenSnowFox  [udvikler] 24. nov. 2019 kl. 12:32 
Without trying your mod I'd say it looks like the worktype not matching. My mod adds a new job Butchering which uses the work type FSFButcher for handling bills at the butcher table and butcher spot but your recipe is looking for the work type Cooking. I can patch that easily enough to make it compatible. However you also have crafting spot listed as a possible crafting bench. Now even in vanilla the crafting spot uses crafting for its work type not cooking. Since it's also got a mismatched work type it should also not work correctly.

Now from looking at several vanilla recipes I don't think worktype is actually required? Some recipes have it and others don't. The butchering recipes don't list a worktype and neither do a bunch of the misc production recipes. Since the benches themselves need a worktype to do a bill I'm not sure why the worktype is listed on some recipes. I THINK removing the field <requiredGiverWorkType> should fix the issue without causing problems.

If not I'll have to patch it myself although I would recommend you double check the crafting spot without a colonist assigned to cooking. Since its the exact same issue it shouldn't work at the crafting spot either even in vanilla.
Hades 24. nov. 2019 kl. 14:21 
Thanks for the solid reply. I will try out those suggestions and see how it goes,
Hades 25. nov. 2019 kl. 5:49 
You were right... removing the field <requiredGiverWorkType> fixed the issue for both vanilla, with your mod... and with the 15 other mods that I typically play with.

Uploading the patch now for my mod. Thanks again.

P.S. I also use your mod... was taking a break from Rimworld so wasn't really sure why it stopped working now.
Sidst redigeret af Hades; 25. nov. 2019 kl. 5:52
FrozenSnowFox  [udvikler] 25. nov. 2019 kl. 12:02 
Glad to hear that fixed it and its working properly now.
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50