边缘世界 RimWorld

边缘世界 RimWorld

[FSF] Complex Jobs (Legacy Version)
此主题已被锁定
Hades 2019 年 11 月 24 日 上午 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://psteamcommunity.yuanyoumao.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>
最后由 Hades 编辑于; 2019 年 11 月 24 日 上午 5:07
< >
正在显示第 1 - 4 条,共 4 条留言
FrozenSnowFox  [开发者] 2019 年 11 月 24 日 下午 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 2019 年 11 月 24 日 下午 2:21 
Thanks for the solid reply. I will try out those suggestions and see how it goes,
Hades 2019 年 11 月 25 日 上午 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.
最后由 Hades 编辑于; 2019 年 11 月 25 日 上午 5:52
FrozenSnowFox  [开发者] 2019 年 11 月 25 日 下午 12:02 
Glad to hear that fixed it and its working properly now.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50