BepInEx / Il2CppInterop

A tool interoperate between CoreCLR and Il2Cpp at runtime
GNU Lesser General Public License v3.0
185 stars 59 forks source link

Sequence contains more than one element #119

Closed Try4646 closed 1 month ago

Try4646 commented 5 months ago

Game : Zero Hour Il2cpp MelonLoader 0.6.2

Latest.log

someguy told me this on the melonloader discord server image

ds5678 commented 1 month ago
System.InvalidOperationException: Sequence contains more than one element
   at System.Linq.ThrowHelper.ThrowMoreThanOneElementException()
   at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found)
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
   at Il2CppInterop.Runtime.Injection.InjectorHelpers.FindGenericMethodGetMethod() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/InjectorHelpers.cs:line 163
   at Il2CppInterop.Runtime.Injection.InjectorHelpers.Setup() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/InjectorHelpers.cs:line 67
   at Il2CppInterop.Runtime.Injection.ClassInjector.RegisterTypeInIl2Cpp(Type type, RegisterTypeOptions options) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Injection/ClassInjector.cs:line 188
   at Il2CppInterop.Runtime.DelegateSupport.ConvertDelegate[TIl2Cpp](Delegate delegate) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/DelegateSupport.cs:line 242
   at UnityEngine.Events.UnityAction`2.op_Implicit(Action`2 )
   at MelonLoader.Support.SceneHandler.Init() in D:\a\MelonLoader\MelonLoader\Dependencies\SupportModules\SceneHandler.cs:line 26

Il2CppInterop.Runtime.Injection.InjectorHelpers.FindGenericMethodGetMethod() doesn't exist anymore.