SamboyCoding / RimworldBetterLoading

Mod for the game RimWorld to add a fancier loading screen.
https://steamcommunity.com/sharedfiles/filedetails/?id=1999454301
21 stars 10 forks source link

Exception thrown when entering main menu: HugsLibChecker is deprecated #19

Closed Vectorial1024 closed 2 months ago

Vectorial1024 commented 2 months ago

Stacktrace

Error while instantiating a mod of type HugsLibChecker.HugsLibChecker: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: void Verse.Log.Error(string,bool)
[Ref D7D86B26]
 at <0x242c3c6d320 + 0x0003a> <unknown method>
 at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
 at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0 
   --- End of inner exception stack trace ---
[Ref 8FB7CB47]
 at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x00213] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00095] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0 
     - PREFIX me.samboycoding.blm: Void BetterLoading.Stage.InitialLoad.StageInitMods:OnActivatorCreateInstance(Type type, Object[] args)
 at Verse.LoadedModManager.CreateModClasses () [0x00076] in <957a20e0be784a65bc32cf449445b937>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
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 ()

Recommendation

Remove HugsLibChecker since it is deprecated; ref: https://github.com/UnlimitedHugs/RimworldHugsLibChecker

HugsLibChecker is no longer supported, nor required in Rimworld versions 1.1+ Dependencies between mods can now easily be achieved with appropriate tags in your About.xml file.

Vectorial1024 commented 2 months ago

Apologies. After a quick check, there are no HugsLibChecker being used in Better Loading.

Actual possible cause ref https://steamcommunity.com/workshop/filedetails/discussion/2537588364/4356746036672093760/

Closing.