边缘世界 RimWorld

边缘世界 RimWorld

Plasteel But White
Johnny 1 月 24 日 上午 6:12
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?
最后由 Johnny 编辑于; 2 月 9 日 上午 7:36
< >
正在显示第 1 - 5 条,共 5 条留言
TThorn1 1 月 25 日 下午 4:23 
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 1 月 29 日 上午 6:04 
oh ok, sry I'm not knowledgeable at all in this stuff, what should I do to fix this on my side?
Heavenly Guardian  [开发者] 2 月 7 日 下午 6:27 
引用自 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  [开发者] 2 月 7 日 下午 6:28 
引用自 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 2 月 9 日 上午 7:35 
Can confirm I don't see the errors anymore ty! "silly" little mods like these are always appreciated ;)
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50