RimWorld
Combat Extended
Тема закрыта
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 ()
< >
Сообщения 16 из 6
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; 17 дек. 2022 г. в 17:55
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.
The development snapshot linked on the github repository does not have this problem. I recommend using it.
Автор сообщения: 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.
< >
Сообщения 16 из 6
Показывать на странице: 1530 50