RimWorld
獨角獸拓展
Jdalt40 2018 年 10 月 18 日 下午 11:53
Fix for duplicate comp nodes errors
<Operation Class="PatchOperationConditional">
<xpath>*/ThingDef[defName = "Thrumbo"]/comp</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "Thrumbo"]</xpath>
<value>
<comps>
<li Class="CompProperties_Shearable">
<woolDef>ThrumboWool</woolDef>
<shearIntervalDays>60</shearIntervalDays>
<woolAmount>200</woolAmount>
</li>
<li Class="CompProperties_Milkable">
<milkDef>ThrumboMilk</milkDef>
<milkIntervalDays>15</milkIntervalDays>
<milkAmount>5</milkAmount>
</li>
</comps>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "Thrumbo"]/comp</xpath>
<value>
<li Class="CompProperties_Shearable">
<woolDef>ThrumboWool</woolDef>
<shearIntervalDays>60</shearIntervalDays>
<woolAmount>200</woolAmount>
</li>
<li Class="CompProperties_Milkable">
<milkDef>ThrumboMilk</milkDef>
<milkIntervalDays>15</milkIntervalDays>
<milkAmount>5</milkAmount>
</li>
</value>
</match>
</Operation>
< >
目前顯示第 1-6 則留言,共 6
REDRODGER1234 2018 年 10 月 19 日 上午 7:37 
I believe I am having the same problem. Is this comment for players to input themselves or more for the author of the mod?
Poul Mavinger 2018 年 10 月 20 日 下午 7:52 
XML error: Duplicate XML node name comps in this XML block: <ThingDef ParentName="AnimalThingBase"><defName>Thrumbo</defName><label>thrumbo</label><description>A gigantic, graceful creature of unknown origin. The thrumbo is gentle by nature, but extremely dangerous when enraged. While its long fur is exceptionally beautiful, its hide is also incredibly resistant to damage. Its razor-sharp horn fetches a huge price.\n\nLegends say that an old thrumbo is the wisest creature in the universe - it simply chooses not to speak.</description><statBases><MoveSpeed>5.5</MoveSpeed><MarketValue>4000</MarketValue><ComfyTemperatureMin>-65</ComfyTemperatureMin><ComfyTemperatureMax>50</ComfyTemperatureMax><ArmorRating_Sharp>0.60</ArmorRating_Sharp><ArmorRating_Blunt>0.40</ArmorRating_Blunt><ArmorRating_Heat>0.30</ArmorRating_Heat><Flammability>0.5</Flammability></statBases><tools><li><label>horn</label><capacities><li>Scratch</li><li>Stab</li></capacities><power>23</power><cooldownTime>2</cooldownTime><linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup></li><li><capacities><li>Bite</li></capacities><power>28</power><cooldownTime>2.6</cooldownTime><linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup><chanceFactor>0.7</chanceFactor></li><li><label>left foot</label><capacities><li>Blunt</li></capacities><power>19</power><cooldownTime>2</cooldownTime><linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup></li><li><label>right foot</label><capacities><li>Blunt</li></capacities><power>19</power><cooldownTime>2</cooldownTime><linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup></li><li><label>head</label><capacities><li>Blunt</li></capacities><power>17</power><cooldownTime>2</cooldownTime><linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup><ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable><chanceFactor>0.2</chanceFactor></li></tools><race><body>QuadrupedAnimalWithHoovesAndHorn</body><herdMigrationAllowed>false</herdMigrationAllowed><baseBodySize>7</baseBodySize><baseHungerRate>3.5</baseHungerRate><baseHealthScale>8.0</baseHealthScale><foodType>VegetarianRoughAnimal, DendrovoreAnimal</foodType><leatherDef>Leather_Thrumbo</leatherDef><trainability>Advanced</trainability><gestationPeriodDays>60</gestationPeriodDays><manhunterOnDamageChance>1.00</manhunterOnDamageChance><wildness>0.9</wildness><lifeExpectancy>220</lifeExpectancy><lifeStageAges><li><def>AnimalBaby</def><minAge>0</minAge></li><li><def>AnimalJuvenile</def><minAge>2.0</minAge></li><li><def>AnimalAdult</def><minAge>4.0</minAge><soundCall>Pawn_Thrumbo_Call</soundCall><soundAngry>Pawn_Thrumbo_Angry</soundAngry><soundWounded>Pawn_Thrumbo_Pain</soundWounded><soundDeath>Pawn_Thrumbo_Death</soundDeath></li></lifeStageAges><soundMeleeHitPawn>Pawn_Melee_BigBash_HitPawn</soundMeleeHitPawn><soundMeleeHitBuilding>Pawn_Melee_BigBash_HitBuilding</soundMeleeHitBuilding><soundMeleeMiss>Pawn_Melee_BigBash_Miss</soundMeleeMiss><packAnimal>true</packAnimal><nameOnTameChance>1</nameOnTameChance><nuzzleMtbHours>80</nuzzleMtbHours><nameOnNuzzleChance>1</nameOnNuzzleChance><manhunterOnTameFailChance>0</manhunterOnTameFailChance></race><tradeTags><li>AnimalExotic</li></tradeTags><comps><li Class="GiddyUpCore.CompProperties_Mount"><drawFront>true</drawFront></li></comps><comps><li Class="CompProperties_Shearable"><woolDef>ThrumboWool</woolDef><shearIntervalDays>60</shearIntervalDays><woolAmount>200</woolAmount></li><li Class="CompProperties_Milkable"><milkDef>ThrumboMilk</milkDef><milkIntervalDays>15</milkIntervalDays><milkAmount>5</milkAmount></li></comps></ThingDef>
Verse.Log:Error(String, Boolean)
Verse.XmlInheritance:CheckForDuplicateNodes(XmlNode, XmlNode)
Verse.XmlInheritance:ResolveXmlNodeFor(XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodesRecursively(XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodesRecursively(XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodesRecursively(XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodes()
Verse.XmlInheritance:Resolve()
Verse.LoadedModManager:ParseAndProcessXML(XmlDocument, Dictionary`2)
Verse.LoadedModManager:LoadAllActiveMods()
Verse.PlayDataLoader:DoPlayLoad()
Verse.PlayDataLoader:LoadAllPlayData(Boolean)
Verse.Root:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()
Jdalt40 2018 年 10 月 21 日 上午 12:34 
This is not for users to fix, please do not try to fix it as a user
Jdalt40 2018 年 12 月 12 日 上午 12:51 
Refer to the message above you
Jdalt40 2018 年 12 月 12 日 上午 12:52 
ATTENTION EVERYBODY:

This isn't for users to fix, this is for the author to fix, if you fix it, you'll probably have the same errors as before by not doing it correctly.
Jdalt40 2018 年 12 月 12 日 上午 6:24 
I only gave the patch to replace part of the XML with, not the actual patch to replace with, that’s why I’m saying for the author to do this only.
< >
目前顯示第 1-6 則留言,共 6
每頁顯示: 1530 50