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

Invocation exception thrown while loading game #9

Open
rubankopli opened this issue Oct 27, 2022 · 0 comments
Open

Invocation exception thrown while loading game #9

rubankopli opened this issue Oct 27, 2022 · 0 comments

Comments

@rubankopli
Copy link

rubankopli commented Oct 27, 2022

Summary

When launching the game the mod manager show that the mod is failing to load due to a target invocation exception being thrown on a call to System.Boolean EnhancedInventory.Hooks.ItemsFilter_ShouldShowItem_Blueprint::Prefix(Kingmaker.UI.Common.FilterType filter, System.Boolean& __result) with exception message System.ArgumentException: Undefined target method for patch

Version

Game version: 0.25.0.0
Mod version: 1.0.10
Manager version: 0.23.3

Relevant information

  • Had toybox mod installed previously and used many of the QoL settings from it
  • Tried to launch game with all other mods uninstalled and ran into the same error

Log

Full log: Player.log

Excerpt from log for enhanced inventory lines:

[EnhancedInventory] Version '1.0.10'. Loading.
[EnhancedInventory] Optional mod 'InventorySearchBar' not found.
[EnhancedInventory] Optional mod 'WeightValueSorting' not found.
[EnhancedInventory] Optional mod 'HighlightImportantLoot' not found.
[EnhancedInventory] [Error] Error trying to call 'EnhancedInventory.Main.Load'.
[EnhancedInventory] [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. ---> HarmonyLib.HarmonyException: Patching exception in method null ---> System.ArgumentException: Undefined target method for patch method static System.Boolean EnhancedInventory.Hooks.ItemsFilter_ShouldShowItem_Blueprint::Prefix(Kingmaker.UI.Common.FilterType filter, System.Boolean& __result)
  at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.PatchClassProcessor.Patch () [0x0006a] in <5c856fb19ddb469d99459756a2e14341>:0 
   --- End of inner exception stack trace ---
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00127] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <5c856fb19ddb469d99459756a2e14341>:0 
  at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <5c856fb19ddb469d99459756a2e14341>:0 
  at EnhancedInventory.Main.Load (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00067] in D:\_wotr\code\EnhancedInventory\EnhancedInventory\src\Main.cs:48 
  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 <f46f63280a534843a2ef651655112f1e>:0 
[EnhancedInventory] Not loaded.
[EnhancedInventory] Loading time 0.04 s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant