JohN100x1 / IsekaiMod

An unbalanced gameplay mod for Pathfinder: Wrath of the Righteous
MIT License
20 stars 11 forks source link

5.4.2 - Crash Loading - Main.Load TargetInvocationExcpetion #204

Open anialimogia opened 3 months ago

anialimogia commented 3 months ago

To Reproduce Steps to reproduce the behavior:

  1. Launch wotr with Mods actived :

    • ToyBox (1.5.34)
    • Tabletop Tweaks Core (0.7.6)
    • UnityManager (0.28.2)
  2. On menu, activate Isekai Mod => Error in Tabs Logs

Or Launch wotr with Mods actived :

here log exception :

[IsekaiMod] PostPatchInitializer: IsekaiMod, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
[IsekaiMod] [Error] Error trying to call 'IsekaiMod.Main.Load'.
[IsekaiMod] [Exception] TargetInvocationException - Exception has been thrown by the target of an invocation.
**System.Reflection.TargetInvocationException**: Exception has been thrown by the target of an invocation. ---> **System.TypeLoadException: VTable setup of type IsekaiMod.Components.ExtraSummonCount failed**
  at (wrapper managed-to-native) System.RuntimeType.GetMethodsByName_native(System.RuntimeType,intptr,System.Reflection.BindingFlags,bool)
  at System.RuntimeType.GetMethodsByName (System.String name, System.Reflection.BindingFlags bindingAttr, System.Boolean ignoreCase, System.RuntimeType reflectedType) [0x0001b] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.RuntimeType.GetMethodCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) [0x00010] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.RuntimeType.GetMethods (System.Reflection.BindingFlags bindingAttr) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at HarmonyLib.AccessTools.GetDeclaredMethods (System.Type type) [0x00013] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 
  at TabletopTweaks.Core.Utilities.PostPatchInitializer+<>c.<Initialize>b__0_1 (System.Type x) [0x00000] in <8ce35fab0a0c43228de158570e7aacda>:0 
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00051] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at TabletopTweaks.Core.Utilities.PostPatchInitializer.Initialize (TabletopTweaks.Core.ModLogic.ModContextBase context) [0x000dc] in <8ce35fab0a0c43228de158570e7aacda>:0 
  at IsekaiMod.Main.Load (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00056] in <0374bcdeeee14121895e17de9dc2bd50>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <695d1cc93cca45069c528c15c9fdd749>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at UnityModManagerNet.UnityModManager+ModEntry.Invoke (System.String namespaceClassnameMethodname, System.Object& result, System.Object[] param, System.Type[] types) [0x00011] in <edf4be290c884482876de946a0f9e363>:0 
[IsekaiMod] Not loaded.
bkeath commented 4 days ago

Try the other branches that are ahead of this branch.