RimWorld

RimWorld

Plasteel But White
Error Help [FIXED]
XML error: Duplicate XML node name color in this XML block: <graphicData><texPath>Things/Building/Linked/RG_RockFlecked_Atlas</texPath><graphicClass>Graphic_Single</graphicClass><shaderType>CutoutComplex</shaderType><color>(205,205,205)</color><color>(205,205,205)</color></graphicData> Root node: <ThingDef ParentName="RockBase"><defName>MineablePlasteel</defName><label>compacted plasteel</label><description>Ancient compacted rubble rich in plasteel.</description><graphicData><texPath>Things/Building/Linked/RG_RockFlecked_Atlas</texPath><graphicClass>Graphic_Single</graphicClass><shaderType>CutoutComplex</shaderType><color>(205,205,205)</color><color>(205,205,205)</color></graphicData><statBases><MaxHitPoints>8000</MaxHitPoints></statBases><building><isResourceRock>true</isResourceRock><mineableThing>Plasteel</mineableThing><mineableYield>40</mineableYield><mineableScatterCommonality>0.05</mineableScatterCommonality><mineableScatterLumpSizeRange>2~8</mineableScatterLumpSizeRange><veinMineable>true</veinMineable></building></ThingDef> UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string) Verse.XmlInheritance:CheckForDuplicateNodes (System.Xml.XmlNode,System.Xml.XmlNode) 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 () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.LoadedModManager.ParseAndProcessXML_Patch3 (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>,bool) Verse.LoadedModManager:LoadAllActiveMods (bool) Verse.PlayDataLoader:DoPlayLoad () Verse.PlayDataLoader:LoadAllPlayData (bool) Verse.Root/<>c:<Start>b__6_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_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 ()

Just wondering if this error is related to this mod?
Last edited by Johnny; 9 Feb @ 7:36am
< >
Showing 1-5 of 5 comments
TThorn1 25 Jan @ 4:23pm 
I think I fixed it, so reposting comment.

In Patch_PlasteelButWhite.XML, under "<xpath>/Defs/ThingDef[defName="MineablePlasteel"]/graphicData/colorTwo</xpath>", replace <color> and </color> with <colorTwo> and </colorTwo>

Note that this must be done for the 255,255,255 one, not the 205,205,205 one, since that's supposed to be replacing <color>

Could be wrong as I've never actually made any xml code before, or any code really beyond hello world type stuff in school with html, but it removed the warning and makes logical sense to me.:GDNormal:
Johnny 29 Jan @ 6:04am 
oh ok, sry I'm not knowledgeable at all in this stuff, what should I do to fix this on my side?
Heavenly Guardian  [developer] 7 Feb @ 6:27pm 
Originally posted by TThorn1:
I think I fixed it, so reposting comment.

In Patch_PlasteelButWhite.XML, under "<xpath>/Defs/ThingDef[defName="MineablePlasteel"]/graphicData/colorTwo</xpath>", replace <color> and </color> with <colorTwo> and </colorTwo>

Note that this must be done for the 255,255,255 one, not the 205,205,205 one, since that's supposed to be replacing <color>

Could be wrong as I've never actually made any xml code before, or any code really beyond hello world type stuff in school with html, but it removed the warning and makes logical sense to me.:GDNormal:

Implemented! Thank you for taking the time to fix this silly little mod.
Heavenly Guardian  [developer] 7 Feb @ 6:28pm 
Originally posted by Johnny:
oh ok, sry I'm not knowledgeable at all in this stuff, what should I do to fix this on my side?

The XML fix is part of the mod now so it should work now.
Johnny 9 Feb @ 7:35am 
Can confirm I don't see the errors anymore ty! "silly" little mods like these are always appreciated ;)
< >
Showing 1-5 of 5 comments
Per page: 1530 50