边缘世界 RimWorld

边缘世界 RimWorld

Research Data
Gnefitisis一三 2023 年 7 月 14 日 上午 1:36
Mod Missing Harmony Dependency
Not a big deal for most players. But noticeable during testing.
< >
正在显示第 1 - 5 条,共 5 条留言
Gnefitisis一三 2023 年 7 月 14 日 上午 1:42 
Also, patch for Research Spot is bugged.
Here is correct fix:

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "ResearchSpot"]/comps</xpath>
<value>
<li Class="CompProperties_Refuelable">
<fuelLabel>Research Papers</fuelLabel>
<fuelConsumptionRate>1.0</fuelConsumptionRate>
<fuelCapacity>1.0</fuelCapacity>
<fuelFilter>
<thingDefs>
<li>ResearchPapers</li>
</thingDefs>
</fuelFilter>
<consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed>
<showAllowAutoRefuelToggle>true</showAllowAutoRefuelToggle>
</li>
</value>
</li>

YW
kongkim  [开发者] 2023 年 7 月 14 日 上午 6:49 
引用自 Gnefitisis一三
Also, patch for Research Spot is bugged.
Here is correct fix:

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "ResearchSpot"]/comps</xpath>
<value>
<li Class="CompProperties_Refuelable">
<fuelLabel>Research Papers</fuelLabel>
<fuelConsumptionRate>1.0</fuelConsumptionRate>
<fuelCapacity>1.0</fuelCapacity>
<fuelFilter>
<thingDefs>
<li>ResearchPapers</li>
</thingDefs>
</fuelFilter>
<consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed>
<showAllowAutoRefuelToggle>true</showAllowAutoRefuelToggle>
</li>
</value>
</li>

YW
Have not looks, but from what i remember the Research Spot did not have the /comps
Gnefitisis一三 2023 年 7 月 14 日 下午 1:56 
My patch is correct, because the earlier patches add the comps tag. Having this at the end causes an error because it's adding comp again.
kongkim  [开发者] 2023 年 7 月 15 日 上午 12:35 
引用自 Gnefitisis一三
My patch is correct, because the earlier patches add the comps tag. Having this at the end causes an error because it's adding comp again.
Ok, but i get no errors, and you say it add it again? But there are no /comps tag in research spot to start with?
Gnefitisis一三 2023 年 7 月 23 日 下午 10:58 
引用自 kongkim
引用自 Gnefitisis一三
My patch is correct, because the earlier patches add the comps tag. Having this at the end causes an error because it's adding comp again.
Ok, but i get no errors, and you say it add it again? But there are no /comps tag in research spot to start with?


Not sure why you got not error, but as I said, earlier you add comps so...

<li Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="ResearchSpot"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="ResearchSpot"]</xpath>
<value>
<comps/>
</value>
</nomatch>
</li>
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50