xiaoxiao921 / ItemLib

library for custom items in RoR2
1 stars 1 forks source link

Cant run preloader #1

Closed djgamerr closed 5 years ago

djgamerr commented 5 years ago

[Message: BepInEx] BepInEx 5.0.0.0 - Risk of Rain 2 [Message: BepInEx] Compiled in Unity v2018 mode [Info : BepInEx] Running under Unity v2018.3.0.7248423 [Message: BepInEx] Preloader started [Info : BepInEx] Loaded 1 patcher methods from BepInEx.MonoMod.Loader [Debug : BepInEx] Loaded 0 patcher methods from Mono.Cecil [Debug : BepInEx] Loaded 0 patcher methods from Mono.Cecil.Mdb [Debug : BepInEx] Loaded 0 patcher methods from Mono.Cecil.Pdb [Debug : BepInEx] Loaded 0 patcher methods from Mono.Cecil.Rocks [Debug : BepInEx] Loaded 0 patcher methods from MonoMod.Utils [Info : BepInEx] 2 patcher plugin(s) loaded [Info : BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader] [Info : BepInEx] Patching [Assembly-CSharp] with [BepInEx.MonoMod.Loader/BepInEx.MonoMod.Loader.Patcher] [Message: MonoMod] [Main] Scanning for mods in directory. [Message: MonoMod] [ReadMod] Loading mod dir: D:\Steam\steamapps\common\Risk of Rain 2\BepInEx\monomod [Message: MonoMod] [ReadMod] Loading mod: D:\Steam\steamapps\common\Risk of Rain 2\BepInEx\monomod\Assembly-CSharp.ItemLib.MM.dll [Message: MonoMod] [Main] mm.AutoPatch(); [Message: MonoMod] [AutoPatch] Parsing rules in loaded mods [MonoMod] [RulesModder] [Write] Writing modded module into output stream. [Fatal : BepInEx] Could not run preloader! [Fatal : BepInEx] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.PlatformNotSupportedException: Operation is not supported on this platform. at MonoMod.Utils.FastReflectionHelper.CreateFastDelegate (System.Reflection.MethodBase method, System.Boolean directBoxValueAccess) [0x0003e] in <9f5e5b1e932c4b10bb604114932729d8>:0 at MonoMod.Utils.FastReflectionHelper.GetFastDelegate (System.Reflection.MethodInfo method, System.Boolean directBoxValueAccess) [0x00016] in <9f5e5b1e932c4b10bb604114932729d8>:0 at MonoMod.MonoModder.ParseRulesInType (Mono.Cecil.TypeDefinition type, System.Type rulesTypeMMILRT) [0x000b0] in <9d1f57981f8646bf95ddef66d1c6053b>:0 at MonoMod.MonoModder.ParseRules (Mono.Cecil.ModuleDefinition mod) [0x00046] in <9d1f57981f8646bf95ddef66d1c6053b>:0 at MonoMod.MonoModder.AutoPatch () [0x00029] in <9d1f57981f8646bf95ddef66d1c6053b>:0 at BepInEx.MonoMod.Loader.RuntimeMonoModder.PerformPatches (System.String modDirectory) [0x0004f] in <c5ad8670c2564b5d960f5892ec03e7eb>:0 at BepInEx.MonoMod.Loader.Patcher.Patch (Mono.Cecil.AssemblyDefinition assembly) [0x00095] in <c5ad8670c2564b5d960f5892ec03e7eb>: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 <0000d56de0ae43ca875d7babfd990580>: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) [0x0004b] in <0000d56de0ae43ca875d7babfd990580>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <0000d56de0ae43ca875d7babfd990580>:0 at BepInEx.Preloader.Preloader+<>c__DisplayClass5_0.<GetPatcherMethods>b__0 (Mono.Cecil.AssemblyDefinition& ass) [0x0000c] in <d2ebb626c4504255bfcd45c2946c5164>:0 at BepInEx.Preloader.Patching.AssemblyPatcher.PatchAndLoad (System.String directory) [0x0015a] in <d2ebb626c4504255bfcd45c2946c5164>:0 at BepInEx.Preloader.Preloader.Run () [0x00168] in <d2ebb626c4504255bfcd45c2946c5164>:0

xiaoxiao921 commented 5 years ago

use updated version of monomod, instruction here

https://thunderstore.io/package/xiaoxiao921/ItemLib/

djgamerr commented 5 years ago

Yep, now it works.