fluffy-mods / ModManager

managing mods should be easy
Other
85 stars 33 forks source link

Mod Manager Fails to load mod list/mod tab #165

Open Herder05 opened 2 years ago

Herder05 commented 2 years ago

Describe the bug

(was done after updating rimworld to version 1.3.3326) When clicking the mod manager the game lags and then never opens the mod tab Expected behavior
mod tab to open Steps to reproduce

  1. update rimworld with mod manager installed and active
  2. open the mod tab with dev mode open
  3. mod tab doesn't open

Other mods

not that I am aware of I saw a few other people reporting the issue on the steam workshop page so i don't think this is just me but i never saw one on github

Output log

https://gist.github.com/224b5f5926a7b5a557efe0f0a29725aa

Save game

n/a

Screenshots

n/a

Environment

Game

aracecat commented 2 years ago

I second this. I'm on Garuda Linux (Arch-based)

TatharNuar commented 2 years ago

I'm also experiencing this when the mod is enabled. I can only fix it by disabling the mod inside ModsConfig.xml. I get the following error in the debug log too:

Error while instantiating a mod of type ModManager.ModManager: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not resolve type with token 01000017 (from typeref, class/assembly Steamworks.PublishedFileId_t, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
  at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Reflection.MonoMethod.GetPseudoCustomAttributes () [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.MonoCustomAttrs.GetPseudoCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType) [0x0000a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x0001f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x00037] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Boolean inherit) [0x00024] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Reflection.MonoMethod.GetCustomAttributes (System.Boolean inherit) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at HarmonyLib.PatchTools+<>c__DisplayClass2_0.<GetPatchMethod>b__0 (System.Reflection.MethodInfo m) [0x00000] in <afae5a8d84e24373b604e1b6d209d116>:0 
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at HarmonyLib.PatchTools.GetPatchMethod (System.Type patchType, System.String attributeName) [0x00018] in <afae5a8d84e24373b604e1b6d209d116>:0 
  at HarmonyLib.PatchClassProcessor..ctor (HarmonyLib.Harmony instance, System.Type type) [0x000a1] in <afae5a8d84e24373b604e1b6d209d116>:0 
  at HarmonyLib.Harmony.CreateClassProcessor (System.Type type) [0x00000] in <afae5a8d84e24373b604e1b6d209d116>:0 
  at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00000] in <afae5a8d84e24373b604e1b6d209d116>:0 
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <afae5a8d84e24373b604e1b6d209d116>:0 
  at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <afae5a8d84e24373b604e1b6d209d116>:0 
  at ModManager.ModManager..ctor (Verse.ModContentPack content) [0x00031] in <862aa367688244d9a8aafe80d90499ab>:0 
  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 ---
  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) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Verse.LoadedModManager.CreateModClasses () [0x00076] in <99518a644a3e4a7ea3fde566568df84a>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LoadedModManager:CreateModClasses ()
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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 ()
Karel-Kroeze commented 2 years ago

Hi all, are you on the latest version of the mod? @Herder05 your initial log suggests that you're on the previous version of Mod Manager. The last RimWorld release bundled a new version of the SteamWorks API, which is why you're seeing this error.

If you're on the latest version of RimWorld, make sure you have the latest version of the mod (v4.5.1096). If you're on an earlier version of RimWorld (pre 1.3.3321 - I think) you'll need to use an earlier version of Mod Manager (v4.4.1086).

Note that this is one area where the steam version of the mod is easier, as that bundles both versions (and all previous versions since 1.1 or so), and automatically uses the correct version of the mod for your version of RimWorld.

TatharNuar commented 2 years ago

@Karel-Kroeze I'll check for a mod version number, but I'm on the Steam version of the mod.

TatharNuar commented 2 years ago

Steam pushed some workshop content today, and now enabling the mod works properly. It says version 3.8.1038 in the modded menu, and Rimworld version 1.3.3326 rev562. No newer mod version is available to me.