边缘世界 RimWorld

边缘世界 RimWorld

Combat Extended
此主题已被锁定
Klausberger 2022 年 12 月 17 日 上午 8:09
Vanilla + 3 DLC + Harmony and CE
XML error: Duplicate XML node name combatPower in this XML block: <PawnKindDef ParentName="LightMechanoidKind"><defName>Mech_Militor</defName><label>militor</label><race>Mech_Militor</race><combatPower>45</combatPower><lifeStages><li><bodyGraphicData><texPath>Things/Pawn/Mechanoid/Militor</texPath><maskPath>Things/Pawn/Mechanoid/AllegianceOverlays/Mech_Slugger</maskPath><shaderType>CutoutWithOverlay</shaderType><graphicClass>Graphic_Multi</graphicClass><drawSize>1.25</drawSize><shadowData><volume>(0.3, 0.4, 0.3)</volume><offset>(0,0,-0.25)</offset></shadowData></bodyGraphicData></li><li><bodyGraphicData><texPath>Things/Pawn/Mechanoid/MilitorAncient</texPath><maskPath>Things/Pawn/Mechanoid/AllegianceOverlays/Mech_Slugger</maskPath><shaderType>CutoutWithOverlay</shaderType><graphicClass>Graphic_Multi</graphicClass><drawSize>1.25</drawSize><shadowData><volume>(0.3, 0.4, 0.3)</volume><offset>(0,0,-0.25)</offset></shadowData></bodyGraphicData></li></lifeStages><weaponTags><li>MechanoidGunShortRange</li></weaponTags><combatPower>90</combatPower><modExtensions><li Class="CombatExtended.LoadoutPropertiesExtension"><primaryMagazineCount><min>5</min><max>6</max></primaryMagazineCount></li></modExtensions></PawnKindDef>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.XmlInheritance:CheckForDuplicateNodes (System.Xml.XmlNode,System.Xml.XmlNode)
Verse.XmlInheritance:ResolveXmlNodeFor (Verse.XmlInheritance/XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodesRecursively (Verse.XmlInheritance/XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodesRecursively (Verse.XmlInheritance/XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodesRecursively (Verse.XmlInheritance/XmlInheritanceNode)
Verse.XmlInheritance:ResolveXmlNodes ()
Verse.XmlInheritance:Resolve ()
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>)
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
< >
正在显示第 1 - 6 条,共 6 条留言
Zan 2022 年 12 月 17 日 下午 5:54 
This was posted in another thread which helped me find the source of the problem

Go to your steam workshop folder, find CE folder and find Races_Mechanoid_Light. Then open it with notepad and delete (<Operation Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="Mech_Militor"]/combatPower</xpath>
<value>
<combatPower>60</combatPower>
</value>
</Operation>)
After that save the file and launch the game. Should be working just fine (probably). Atleast you won't be getting this annoying message anymore.

My version of Races_Mechanoid_Light.xml did not have this but instead:

<Operation Class="PatchOperationAdd">
<xpath>Defs/PawnKindDef[defName="Mech_Militor"]</xpath>
<value>
<combatPower>90</combatPower>
</value>
</Operation>

If you delete this and save it will remove the error and I assume use the default value of 45 it already had.
最后由 Zan 编辑于; 2022 年 12 月 17 日 下午 5:55
McClain 2022 年 12 月 23 日 上午 5:30 
Same issue, same mod-load order, all three DLC. Attempted the fix discussed above, it only created more error messages about it failing to load various traits of some kind.
McClain 2022 年 12 月 23 日 上午 11:36 
The development snapshot linked on the github repository does not have this problem. I recommend using it.
An Overburdened Warrior 2022 年 12 月 24 日 上午 3:49 
引用自 Zan
This was posted in another thread which helped me find the source of the problem

Go to your steam workshop folder, find CE folder and find Races_Mechanoid_Light. Then open it with notepad and delete (<Operation Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="Mech_Militor"]/combatPower</xpath>
<value>
<combatPower>60</combatPower>
</value>
</Operation>)
After that save the file and launch the game. Should be working just fine (probably). Atleast you won't be getting this annoying message anymore.

My version of Races_Mechanoid_Light.xml did not have this but instead:

<Operation Class="PatchOperationAdd">
<xpath>Defs/PawnKindDef[defName="Mech_Militor"]</xpath>
<value>
<combatPower>90</combatPower>
</value>
</Operation>

If you delete this and save it will remove the error and I assume use the default value of 45 it already had.

I can confirm that this does seem to resolve the issue. For anybody interested, the file is located at: YourSteamDir/steamapps/workshop/content/294100/2890901044/Biotech/Patches/ThingDefs_Races/Races_Mechanoids_Light.xml

All you have to do is find and remove the section listed in the comment above and save the file. This will resolve the error until the team addresses it in a future update.
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50