RimWorld

RimWorld

Useful Marks
This topic has been locked
< >
Showing 1-11 of 11 comments
SandFox Jul 8 @ 4:19am 
An error occurred
Tried to create a texture from a different thread.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.SolidColorMaterials:NewSolidColorTexture (UnityEngine.Color)
ColoredMoodBar13.GenMapUI2:.cctor ()
System.RuntimeMethodHandle:GetFunctionPointer ()
MonoMod.Core.Platforms.Runtimes.MonoRuntime:Compile (System.Reflection.MethodBase)
MonoMod.Core.Platforms.PlatformTriple:Compile (System.Reflection.MethodBase)
MonoMod.Core.Platforms.PlatformTripleDetourFactory/Detour:CreateDetour ()
MonoMod.Core.Platforms.PlatformTripleDetourFactory/DetourBase:Apply ()
MonoMod.Core.Platforms.PlatformTripleDetourFactory:CreateDetour (MonoMod.Core.CreateDetourRequest)
MonoMod.Core.DetourFactory:CreateDetour (MonoMod.Core.IDetourFactory,System.Reflection.MethodBase,System.Reflection.MethodBase,bool)
HarmonyLib.PatchTools:DetourMethod (System.Reflection.MethodBase,System.Reflection.MethodBase)
HarmonyLib.PatchFunctions:UpdateWrapper (System.Reflection.MethodBase,HarmonyLib.PatchInfo)
HarmonyLib.PatchProcessor:Patch ()
HarmonyLib.Harmony:Patch (System.Reflection.MethodBase,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod)
UsefulMarks.UsefulMarksMod:PatchCMCCMB ()
UsefulMarks.UsefulMarksMod:.ctor (Verse.ModContentPack)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
System.Reflection.MonoCMethod:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&)
System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
System.Activator:CreateInstance (System.Type,object[])
Verse.LoadedModManager:CreateModClasses ()
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 ()
Also seeing a similar (or the exact same perhaps) error. The first few lines are definitely the same.
Not the same error but it broke the whole uI sometimes.



Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
[Ref 7B333B13]
at RimWorld.ColonistBarColonistDrawer.DrawIcons (UnityEngine.Rect rect, Verse.Pawn colonist) [0x00165] in <fcfab19af5d14a608a65ebd77f29482f>:0
at RimWorld.ColonistBarColonistDrawer.DrawColonist (UnityEngine.Rect rect, Verse.Pawn colonist, Verse.Map pawnMap, System.Boolean highlight, System.Boolean reordering) [0x00346] in <fcfab19af5d14a608a65ebd77f29482f>:0
- PREFIX Andromeda.UsefulMarks: Void UsefulMarks.ColonistBarColonistDrawer_DrawColonist_Patch:Prefix()
- POSTFIX Andromeda.UsefulMarks: Void UsefulMarks.ColonistBarColonistDrawer_DrawColonist_Patch:Postfix()
at RimWorld.ColonistBar.ColonistBarOnGUI () [0x00178] in <fcfab19af5d14a608a65ebd77f29482f>:0
at RimWorld.MapInterface.MapInterfaceOnGUI_BeforeMainTabs () [0x00049] in <fcfab19af5d14a608a65ebd77f29482f>:0
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x0001f] in <fcfab19af5d14a608a65ebd77f29482f>:0
at Verse.Root.OnGUI () [0x00046] in <fcfab19af5d14a608a65ebd77f29482f>:0
- POSTFIX UnlimitedHugs.HugsLib: Void HugsLib.Patches.Root_OnGUI_Patch:OnGUIHookUnfiltered()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch1 (Verse.Root)
I'm getting this error as well. The error does not mention this mod, but it's only thrown when this mod is enabled.

---------

Tried to create a texture from a different thread.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.SolidColorMaterials:NewSolidColorTexture (UnityEngine.Color)
ColoredMoodBar13.GenMapUI2:.cctor ()
System.RuntimeMethodHandle:GetFunctionPointer ()
MonoMod.Core.Platforms.Runtimes.MonoRuntime:Compile (System.Reflection.MethodBase)
MonoMod.Core.Platforms.PlatformTriple:Compile (System.Reflection.MethodBase)
MonoMod.Core.Platforms.PlatformTripleDetourFactory/Detour:CreateDetour ()
MonoMod.Core.Platforms.PlatformTripleDetourFactory/DetourBase:Apply ()
MonoMod.Core.Platforms.PlatformTripleDetourFactory:CreateDetour (MonoMod.Core.CreateDetourRequest)
MonoMod.Core.DetourFactory:CreateDetour (MonoMod.Core.IDetourFactory,System.Reflection.MethodBase,System.Reflection.MethodBase,bool)
HarmonyLib.PatchTools:DetourMethod (System.Reflection.MethodBase,System.Reflection.MethodBase)
HarmonyLib.PatchFunctions:UpdateWrapper (System.Reflection.MethodBase,HarmonyLib.PatchInfo)
HarmonyLib.PatchProcessor:Patch ()
HarmonyLib.Harmony:Patch (System.Reflection.MethodBase,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod)
UsefulMarks.UsefulMarksMod:PatchCMCCMB ()
UsefulMarks.UsefulMarksMod:.ctor (Verse.ModContentPack)
System.Reflection.RuntimeConstructorInfo:InternalInvoke (object,object[],bool)
System.Reflection.RuntimeConstructorInfo:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.RuntimeConstructorInfo:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&)
System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
System.Activator:CreateInstance (System.Type,object[])
Verse.LoadedModManager:CreateModClasses ()
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__10_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 ()
Skython Jul 15 @ 5:19pm 
I'm also seeing this error. Looks like it's due to Colored Coded Mood Bar (https://steamcommunity.com/sharedfiles/filedetails/?id=2006605356)
--------------------
Tried to create a texture from a different thread. UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string) Verse.SolidColorMaterials:NewSolidColorTexture (UnityEngine.Color) ColoredMoodBar13.GenMapUI2:.cctor () System.RuntimeMethodHandle:GetFunctionPointer () MonoMod.Core.Platforms.Runtimes.MonoRuntime:Compile (System.Reflection.MethodBase) MonoMod.Core.Platforms.PlatformTriple:Compile (System.Reflection.MethodBase) MonoMod.Core.Platforms.PlatformTripleDetourFactory/Detour:CreateDetour () MonoMod.Core.Platforms.PlatformTripleDetourFactory/DetourBase:Apply () MonoMod.Core.Platforms.PlatformTripleDetourFactory:CreateDetour (MonoMod.Core.CreateDetourRequest) MonoMod.Core.DetourFactory:CreateDetour (MonoMod.Core.IDetourFactory,System.Reflection.MethodBase,System.Reflection.MethodBase,bool) HarmonyLib.PatchTools:DetourMethod (System.Reflection.MethodBase,System.Reflection.MethodBase) HarmonyLib.PatchFunctions:UpdateWrapper (System.Reflection.MethodBase,HarmonyLib.PatchInfo) HarmonyLib.PatchProcessor:Patch () HarmonyLib.Harmony:Patch (System.Reflection.MethodBase,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod,HarmonyLib.HarmonyMethod) UsefulMarks.UsefulMarksMod:PatchCMCCMB () UsefulMarks.UsefulMarksMod:.ctor (Verse.ModContentPack) System.Reflection.RuntimeConstructorInfo:InternalInvoke (object,object[],bool) System.Reflection.RuntimeConstructorInfo:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.Reflection.RuntimeConstructorInfo:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&) System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) System.Activator:CreateInstance (System.Type,object[]) Verse.LoadedModManager:CreateModClasses () Verse.LoadedModManager:LoadAllActiveMods (bool) Verse.PlayDataLoader:DoPlayLoad () Verse.PlayDataLoader:LoadAllPlayData (bool) Verse.Root/<>c:<Start>b__10_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 ()
Otoya Jul 16 @ 7:29pm 
Here some more logs related: https://pastebin.com/3ddiu921 - so the difference here is only Verse.Log:Error (string) otherwise it looks exactly the same.
Otoya Jul 16 @ 7:30pm 
And Color Mood Bar can't do anything to fix it on their end.
I'd also really like to see a patch. I've used Color Coded Mood Bar forever, and trying to play without it causes me to miss when Colonists are unhappy until it's too late. Useful Marks is useful too, particularly during raids. Would be very helpful to be able to run both.
That_Guy Jul 18 @ 7:05am 
+1 for this as well!
Valafi Jul 18 @ 7:15am 
For 1.5, replacing the PatchCMCCMB call in the mod constructor with
LongEventHandler.ExecuteWhenFinished(PatchCMCCMB);
fixes it. IDK about 1.6.
Last edited by Valafi; Jul 18 @ 7:15am
Andromeda  [developer] Jul 18 @ 8:01am 
fixed
< >
Showing 1-11 of 11 comments
Per page: 1530 50