RimWorld

RimWorld

Gore Upon Dismemberment
Narlindir 7 Jul, 2024 @ 2:02pm
[Bug] Log file bug
Error while instantiating a mod of type GoreUponDismemberment.GoreUponDismembermentMod: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Boolean GoreUponDismemberment.HarmonyPatches.FacialAnimationPatch3::Prepare() ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Sequence contains no matching element
[Ref 5CB7CB91]
at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate)
at GoreUponDismemberment.HarmonyPatches.FacialAnimationPatch3.TargetMethod ()
at GoreUponDismemberment.HarmonyPatches.FacialAnimationPatch3.Prepare ()
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)
--- End of inner exception stack trace ---
[Ref 9CBA8010]
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
at HarmonyLib.PatchClassProcessor.RunMethod[S,T] (T defaultIfNotExisting, T defaultIfFailing, System.Func`2[T,TResult] failOnResult, System.Object[] parameters)
--- End of inner exception stack trace ---
[Ref 2E97B788]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original)
at HarmonyLib.PatchClassProcessor.RunMethod[S,T] (T defaultIfNotExisting, T defaultIfFailing, System.Func`2[T,TResult] failOnResult, System.Object[] parameters)
at HarmonyLib.PatchClassProcessor.Patch ()
at HarmonyLib.Harmony. <PatchAll>b__10_0 (System.Type type)
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action)
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly)
at <0x2134303be80 + 0x00132> <unknown method>
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)
--- End of inner exception stack trace ---
[Ref 6FBB5221]
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters)
at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
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)
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)
at System.Activator.CreateInstance (System.Type type, System.Object[] args)
at Verse.LoadedModManager.CreateModClasses ()