Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Herder05 opened this issue Apr 7, 2022 · 5 comments
Open

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

Herder05 opened this issue Apr 7, 2022 · 5 comments
Labels
bug Something isn't working unverified

Comments

@Herder05
Copy link

Herder05 commented Apr 7, 2022

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

  • OS: Windows 10
  • 32/64 bits: 64

Game

  • 32/64 bits: 64
  • Steam/DRM free: Steam (put wrong thing earlier sorry)
  • Version: 1.3.3326
@Herder05 Herder05 added bug Something isn't working unverified labels Apr 7, 2022
@aracecat
Copy link

aracecat commented Apr 8, 2022

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

@TatharNuar
Copy link

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
Copy link
Contributor

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
Copy link

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

@TatharNuar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified
Projects
None yet
Development

No branches or pull requests

4 participants