rileyzzz / RailroaderRD

Experimental RailDriver mod for Railroader.
MIT License
1 stars 1 forks source link

Patching exception in method null #2

Closed njc3006 closed 3 months ago

njc3006 commented 4 months ago

Booted up the game after today's patch (5/24/24) and an exception is being thrown when the game is loaded

[20:30:23.11 INF Railloader.ModLoading.ModLoader] Attempting to load mod RailroaderRD (RailDriver) [20:30:23.19 ERR Railloader.ModLoading.ModLoader] Failed to instantiate plugin RailroaderRD.RailroaderRD: 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.Void RailroaderRD.PlayerController_HandleCameraInput_Patch::Prefix(Character.PlayerController instance) at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x0006e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00154] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x0009e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.Harmony.b10_0 (System.Type type) [0x00007] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.Harmony.PatchAll () [0x0001d] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at RailroaderRD.RailroaderRD..ctor (Railloader.IModdingContext moddingContext, Railloader.IModDefinition self) [0x00027] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in :0 --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in :0 at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in :0 at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :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) [0x0022b] in :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) [0x0009c] in :0 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in :0 at Railloader.ModLoading.ModLoader.LoadMod (Railloader.ModLoading.Mod mod) [0x00540] in <58959326a4624a0da4c55f010c7ed0e1>:0 [20:30:23.20 ERR Railloader.ModLoading.ModLoader] Could not load D:\SSDSteamLibrary\steamapps\common\Railroader\Mods\RailroaderRD\RailroaderRD.dll for RailroaderRD (RailDriver): 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.Void RailroaderRD.PlayerController_HandleCameraInput_Patch::Prefix(Character.PlayerController instance) at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x0006e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00154] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x0009e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.Harmony.b10_0 (System.Type type) [0x00007] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.Harmony.PatchAll () [0x0001d] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at RailroaderRD.RailroaderRD..ctor (Railloader.IModdingContext moddingContext, Railloader.IModDefinition self) [0x00027] in :0 at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in :0 --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in :0 at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in :0 at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :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) [0x0022b] in :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) [0x0009c] in :0 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in :0 at Railloader.ModLoading.ModLoader.LoadMod (Railloader.ModLoading.Mod mod) [0x005c0] in <58959326a4624a0da4c55f010c7ed0e1>:0 [20:30:23.20 INF Railloader.ModLoading.ModManager] Successfully loaded 2 mods:

njc3006 commented 3 months ago

Fixed in latest release