RimWorld

RimWorld

SocialWealth
Errors On Launch
I'm getting these errors on launch:

Exception reading SocialWealth_Ideo.xml as XML: System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 235, position 7.
[Ref BAEA57BC]
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) [0x00029] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlTextReaderImpl.ParsePI (System.Text.StringBuilder piInDtdStringBuilder) [0x00079] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlTextReaderImpl.ParsePI () [0x00000] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x00055] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlTextReaderImpl.Read () [0x00085] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlLoader.LoadNode (System.Boolean skipOverWhitespace) [0x0025b] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlLoader.LoadDocSequence (System.Xml.XmlDocument parentDoc) [0x0001b] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlLoader.Load (System.Xml.XmlDocument doc, System.Xml.XmlReader reader, System.Boolean preserveWhitespace) [0x000b4] in <506b716a330a4f09bc4a846352df3f09>:0
at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x0002e] in <506b716a330a4f09bc4a846352df3f09>:0
<0x2adb91e73b0 + 0x0047f> <unknown method>
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Core, Assembly-CSharp.dll] Verse.Log.Warning(System.String text)
[Core, Assembly-CSharp.dll] Verse.LoadableXmlAsset..ctor(System.IO.FileInfo file, Verse.ModContentPack mod)
[Core, Assembly-CSharp.dll] Verse.DirectXmlLoader+<>c__DisplayClass1_0.<XmlAssetsInModFolder>b__0()
[System, mscorlib.dll] System.Threading.ThreadHelper.ThreadStart_Context(System.Object state)
[System, mscorlib.dll] System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state)
[System, mscorlib.dll] System.Threading.ThreadHelper.ThreadStart()
,
Could not load defs for mod feldoh.SocialWealth: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 9A448CBB]
at BetterStacktraces.Src.Patches.LoadDefsPatch.Prefix (Verse.ModContentPack __instance, System.Boolean hotReload) [0x0002d] in <2d68442db6bf48258b7cea6e358740dc>:0
at Verse.ModContentPack.LoadDefs (System.Boolean hotReload) [0x00008] in <cb53cd4422904947932d33f561ad8d15>:0
- PREFIX Alexey.BetterStacktraces: Void BetterStacktraces.Src.Patches.LoadDefsPatch:Prefix(ModContentPack __instance, Boolean hotReload)
at Verse.LoadedModManager.LoadModXML (System.Boolean hotReload) [0x00032] in <cb53cd4422904947932d33f561ad8d15>:0
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch2(System.String)
[Core, Assembly-CSharp.dll] Verse.LoadedModManager.LoadModXML(System.Boolean hotReload)
[Core, Assembly-CSharp.dll] Verse.LoadedModManager.LoadAllActiveMods(System.Boolean hotReload)
[Core, Assembly-CSharp.dll] Verse.PlayDataLoader.DoPlayLoad()
[Core, Assembly-CSharp.dll] Verse.PlayDataLoader.LoadAllPlayData(System.Boolean recovering)
[Core, Assembly-CSharp.dll] Verse.Root+<>c.<Start>b__10_1()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.RunEventFromAnotherThread(System.Action action)
[Core, Assembly-CSharp.dll] Verse.LongEventHandler+<>c.<UpdateCurrentAsynchronousEvent>b__28_0()
[System, mscorlib.dll] System.Threading.ThreadHelper.ThreadStart_Context(System.Object state)
[System, mscorlib.dll] System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state)
[System, mscorlib.dll] System.Threading.ThreadHelper.ThreadStart()
,
Could not resolve cross-reference to RimWorld.AbilityDef named SocialWealth_ConvertOrDie (wanter=grantedAbilities)

Possible Matches:
[Source: SocialWealth]
[File: D:\Steam\steamapps\workshop\content\294100\3148727084\1.6\Patches\SocialWealthPatches.xml]

[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch2(System.String)
[Core, Assembly-CSharp.dll] Verse.DirectXmlCrossRefLoader.TryResolveDef(System.String defName, Verse.FailMode failReportMode, System.Object debugWanterInfo)
[Core, Assembly-CSharp.dll] Verse.DirectXmlCrossRefLoader+WantedRefForList`1[[RimWorld.AbilityDef, Assembly-CSharp, Version=1.6.9348.31746, Culture=neutral, PublicKeyToken=null]].TryResolve(Verse.FailMode failReportMode)
[Core, Assembly-CSharp.dll] Verse.DirectXmlCrossRefLoader+<>c__DisplayClass16_0.<ResolveAllWantedCrossReferences>b__0(Verse.DirectXmlCrossRefLoader+WantedRef wantedRef)
[Core, Assembly-CSharp.dll] Verse.GenThreading+<>c__DisplayClass7_1`1[[Verse.DirectXmlCrossRefLoader+WantedRef, Assembly-CSharp, Version=1.6.9348.31746, Culture=neutral, PublicKeyToken=null]].<ParallelForEach>b__0(System.Object _)
[System, mscorlib.dll] System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object state)
[System, mscorlib.dll] System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
[System, mscorlib.dll] System.Threading.ThreadPoolWorkQueue.Dispatch()
[System, mscorlib.dll] System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
,
Failed to find Verse.RulePackDef named SocialWealth_Sentence_ConvertOrDie_Success. There are 511 defs of this type loaded.

[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch2(System.String)
[Core, Assembly-CSharp.dll] Verse.DefDatabase`1[[Verse.RulePackDef, Assembly-CSharp, Version=1.6.9348.31746, Culture=neutral, PublicKeyToken=null]].GetNamed(System.String defName, System.Boolean errorOnFail)
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.GenDefDatabase.GetDef_Patch2(System.Type, System.String, System.Boolean)
[Core, Assembly-CSharp.dll] RimWorld.DefOfHelper.BindDefsFor(System.Type type)
[System, mscorlib.dll] System.Threading.Tasks.Parallel+<>c__DisplayClass33_0`2[[System.Type, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<ForEachWorker>b__0(System.Int32 i)
[System, mscorlib.dll] System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<ForWorker>b__1(System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion)
[System, mscorlib.dll] System.Threading.Tasks.TaskReplicator+Replica`1[[System.Threading.Tasks.RangeWorker, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ExecuteAction(System.Boolean& yieldedBeforeCompletion)
[System, mscorlib.dll] System.Threading.Tasks.TaskReplicator+Replica.Execute()
[System, mscorlib.dll] System.Threading.Tasks.TaskReplicator+Replica+<>c.<.ctor>b__4_0(System.Object s)
[System, mscorlib.dll] System.Threading.Tasks.Task.InnerInvoke()
[System, mscorlib.dll] System.Threading.Tasks.Task.Execute()
[System, mscorlib.dll] System.Threading.Tasks.Task.ExecutionContextCallback(System.Object obj)
[System, mscorlib.dll] System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task& currentTaskSlot)
[System, mscorlib.dll] System.Threading.Tasks.Task.ExecuteEntry(System.Boolean bPreventDoubleExecution)
[System, mscorlib.dll] System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
[System, mscorlib.dll] System.Threading.ThreadPoolWorkQueue.Dispatch()
[System, mscorlib.dll] System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
,
Failed to find Verse.RulePackDef named SocialWealth_Sentence_ConvertOrDie_Failure. There are 511 defs of this type loaded.

[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch2(System.String)
[Core, Assembly-CSharp.dll] Verse.DefDatabase`1[[Verse.RulePackDef, Assembly-CSharp, Version=1.6.9348.31746, Culture=neutral, PublicKeyToken=null]].GetNamed(System.String defName, System.Boolean errorOnFail)
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.GenDefDatabase.GetDef_Patch2(System.Type, System.String, System.Boolean)
[Core, Assembly-CSharp.dll] RimWorld.DefOfHelper.BindDefsFor(System.Type type)
[System, mscorlib.dll] System.Threading.Tasks.Parallel+<>c__DisplayClass33_0`2[[System.Type, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<ForEachWorker>b__0(System.Int32 i)
[System, mscorlib.dll] System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<ForWorker>b__1(System.Threading.Tasks.RangeWorker& currentWorker, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion)
[System, mscorlib.dll] System.Threading.Tasks.TaskReplicator+Replica`1[[System.Threading.Tasks.RangeWorker, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ExecuteAction(System.Boolean& yieldedBeforeCompletion)
[System, mscorlib.dll] System.Threading.Tasks.TaskReplicator+Replica.Execute()
[System, mscorlib.dll] System.Threading.Tasks.TaskReplicator+Replica+<>c.<.ctor>b__4_0(System.Object s)
[System, mscorlib.dll] System.Threading.Tasks.Task.InnerInvoke()
[System, mscorlib.dll] System.Threading.Tasks.Task.Execute()
[System, mscorlib.dll] System.Threading.Tasks.Task.ExecutionContextCallback(System.Object obj)
[System, mscorlib.dll] System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
[System, mscorlib.dll] System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task& currentTaskSlot)
[System, mscorlib.dll] System.Threading.Tasks.Task.ExecuteEntry(System.Boolean bPreventDoubleExecution)
[System, mscorlib.dll] System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
[System, mscorlib.dll] System.Threading.ThreadPoolWorkQueue.Dispatch()
[System, mscorlib.dll] System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
.

Any ideas?
< >
Showing 1-4 of 4 comments
I fixed this; you had an extra deceleration, getting rid of that fixed this.
But it's exposed some error trying to load a texture of Taggerung_Grignr_Hat, so there's some dependency for that in here, which I'm trying to track down(I don't want to replace my stranger).

Any help would be appreciated!
This has something going on with Social Wealth, like it's a dependency for it or something(Errors only without this):

Could not load Texture2D at 'Things/Item/Equipment/Headgear/GrignrHat/GrignrHat' for def 'Taggerung_Grignr_Hat' in any active mod or in base resources.
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch2(System.String)
[Core, Assembly-CSharp.dll] Verse.ContentFinder`1[[UnityEngine.Texture2D, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].Get(System.String itemPath, System.Boolean reportFailure)
[Core, Assembly-CSharp.dll] Verse.Graphic_Single.Init(Verse.GraphicRequest req)
[Core, Assembly-CSharp.dll] Verse.GraphicDatabase.GetInner(Verse.GraphicRequest req)
[Core, Assembly-CSharp.dll] Verse.GraphicDatabase.Get(Verse.GraphicRequest req)
[Core, Assembly-CSharp.dll] Verse.GraphicDatabase.Get(System.Type graphicClass, System.String path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color color, UnityEngine.Color colorTwo, Verse.GraphicData data, System.Collections.Generic.List`1[Verse.ShaderParameter] shaderParameters, System.String maskPath)
[Core, Assembly-CSharp.dll] Verse.GraphicData.Init()
[Core, Assembly-CSharp.dll] Verse.GraphicData.get_Graphic()
[Core, Assembly-CSharp.dll] Verse.ThingDef.<PostLoad>b__398_0()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.ExecuteToExecuteWhenFinished()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.UpdateCurrentAsynchronousEvent()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.LongEventsUpdate(System.Boolean& sceneChanged)
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Root.Update_Patch1(Verse.Root)
[Core, Assembly-CSharp.dll] Verse.Root_Entry.Update()
,
Could not load Texture2D at 'Things/Item/Equipment/Headgear/GrignrHat/GrignrHat' for def 'Taggerung_Grignr_Hat_Custom' in any active mod or in base resources.
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch2(System.String)
[Core, Assembly-CSharp.dll] Verse.ContentFinder`1[[UnityEngine.Texture2D, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].Get(System.String itemPath, System.Boolean reportFailure)
[Core, Assembly-CSharp.dll] Verse.Graphic_Single.Init(Verse.GraphicRequest req)
[Core, Assembly-CSharp.dll] Verse.GraphicDatabase.GetInner(Verse.GraphicRequest req)
[Core, Assembly-CSharp.dll] Verse.GraphicDatabase.Get(Verse.GraphicRequest req)
[Core, Assembly-CSharp.dll] Verse.GraphicDatabase.Get(System.Type graphicClass, System.String path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color color, UnityEngine.Color colorTwo, Verse.GraphicData data, System.Collections.Generic.List`1[Verse.ShaderParameter] shaderParameters, System.String maskPath)
[Core, Assembly-CSharp.dll] Verse.GraphicData.Init()
[Core, Assembly-CSharp.dll] Verse.GraphicData.get_Graphic()
[Core, Assembly-CSharp.dll] Verse.ThingDef.<PostLoad>b__398_0()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.ExecuteToExecuteWhenFinished()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.UpdateCurrentAsynchronousEvent()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.LongEventsUpdate(System.Boolean& sceneChanged)
[Harmony, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Root.Update_Patch1(Verse.Root)
[Core, Assembly-CSharp.dll] Verse.Root_Entry.Update()
Taggerung  [developer] 10 Aug @ 9:20am 
it was just a mistake. Used one of the files just a place to keep a chunk of xml for another mod and failed to clean it up, that's all. Removed now
Thanks, mate!
< >
Showing 1-4 of 4 comments
Per page: 1530 50