pheonix99 / ToggleableThrowingWeapons

7 stars 2 forks source link

The mod on UMM shows as red "o!!!" #5

Open Wolfy339 opened 1 year ago

Wolfy339 commented 1 year ago

Greetings,

Since the last update, the mod has been showing as red for no apparent reason, I have both the last versions of Empress and thismod installed!

"[ToggleableThrowingWeapons] Version '1.3.0'. Loading. [ToggleableThrowingWeapons] ERROR: Patching exception in method static System.Collections.Generic.IEnumerable1 ToggleableThrowingWeapons.Patch.FixAttackStatReplacementFixed::TargetMethods() [ToggleableThrowingWeapons] HarmonyLib.HarmonyException: Patching exception in method static System.Collections.Generic.IEnumerable1 ToggleableThrowingWeapons.Patch.FixAttackStatReplacementFixed::TargetMethods() ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: System.Collections.Generic.IEnumerable1 HarmonyLib.AccessTools.AllTypes() 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 :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 :0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0 at HarmonyLib.PatchClassProcessor.RunMethod[S,T] (T defaultIfNotExisting, T defaultIfFailing, System.Func2[T,TResult] failOnResult, System.Object[] parameters) [0x000e2] in :0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in :0 at HarmonyLib.PatchClassProcessor.Patch () [0x00084] in :0 at HarmonyLib.Harmony.b__10_0 (System.Type type) [0x00007] in :0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in :0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in :0 at HarmonyLib.Harmony.PatchAll () [0x0001b] in :0 at ToggleableThrowingWeapons.Main.Load (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00016] in :0 ToggleableThrowingWeapons] Not loaded. [ToggleableThrowingWeapons] Loading time 8.43 s. "

ifarmpandas commented 11 months ago

Happens when using assembly install method with Unity Mod Manager. It loads the older Harmony library shipped with WotR instead of the one that comes with UMM.

Just copy the 0Harmony.dll file from <path to wotr>\Pathfinder Second Adventure\Wrath_Data\Managed\UnityModManager to <path to wotr>\Pathfinder Second Adventure\Wrath_Data\Managed and overwrite.