FunkFrog / ShareSuite

Risk of Rain 2 Item, Money, & Equipment sharing mod build upon BepInEx
https://thunderstore.io/package/FunkFrog-and-Sipondo/ShareSuite/
GNU General Public License v3.0
39 stars 26 forks source link

ItemDropAPI not initialized #32

Closed AeonLucid closed 5 years ago

AeonLucid commented 5 years ago

These are the mods I have installed.

[Info   :   BepInEx] Loading [AeonModdedBypass 1.0.0]
[Info   :   BepInEx] Loading [ShareSuite 1.9.1]
[Info   :   BepInEx] Loading [R2API 2.1.0]

These versions from Thunderstore:

BepInExPack: 2.0.0
R2API: 2.1.0
ShareSuite: 1.9.1

This is the error.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoMod.Utils.DynamicMethodDefinition.GenerateViaCecil (Mono.Cecil.TypeDefinition typeDef) [0x0018c] in <2195ddbf0070424d93785ddc4f2e862d>:0
  at MonoMod.Utils.DynamicMethodDefinition.Generate (System.Object context) [0x00031] in <2195ddbf0070424d93785ddc4f2e862d>:0
  at MonoMod.Utils.DynamicMethodDefinition.Generate () [0x00000] in <2195ddbf0070424d93785ddc4f2e862d>:0
  at MonoMod.RuntimeDetour.HookGen.HookEndpoint.UpdateILManipulated (System.Boolean force) [0x00017] in <918f995a72e749188a0cb75e5ba4da1e>:0
  at MonoMod.RuntimeDetour.HookGen.HookEndpoint._ManipulatorFailure (System.Boolean reapply) [0x00070] in <918f995a72e749188a0cb75e5ba4da1e>:0
  at MonoMod.RuntimeDetour.HookGen.HookEndpoint._ManipulatorFailure (System.Boolean reapply) [0x00061] in <918f995a72e749188a0cb75e5ba4da1e>:0
  at MonoMod.RuntimeDetour.HookGen.HookEndpoint.Modify (System.Delegate callback) [0x00025] in <918f995a72e749188a0cb75e5ba4da1e>:0
  at MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Modify (System.Reflection.MethodBase method, System.Delegate callback) [0x00028] in <918f995a72e749188a0cb75e5ba4da1e>:0
  at MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Modify[T] (System.Reflection.MethodBase method, System.Delegate callback) [0x00000] in <918f995a72e749188a0cb75e5ba4da1e>:0
  at IL.RoR2.BossGroup.add_DropRewards (MonoMod.Cil.ILContext+Manipulator ) [0x0000a] in <263815dd6ec942d68e5b27e702c49d56>:0
  at R2API.ItemDropAPI.SetHooks () [0x00000] in <e04d0156a97b453786cde8a7624bcfab>: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 <c6bd535f6ab848b4a13f34d01b756eef>: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 <c6bd535f6ab848b4a13f34d01b756eef>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <c6bd535f6ab848b4a13f34d01b756eef>:0
  at R2API.Utils.APISubmoduleHandler+<>c.<InvokeStage>b__5_1 (System.Reflection.MethodInfo m) [0x00000] in <e04d0156a97b453786cde8a7624bcfab>:0
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <c6bd535f6ab848b4a13f34d01b756eef>:0
  at R2API.Utils.APISubmoduleHandler.InvokeStage (System.Type type, R2API.Utils.InitStage stage) [0x00068] in <e04d0156a97b453786cde8a7624bcfab>:0
  at R2API.Utils.APISubmoduleHandler+<>c__DisplayClass3_0.<LoadAll>b__0 (System.Type t) [0x00000] in <e04d0156a97b453786cde8a7624bcfab>:0
  at R2API.Utils.EnumerableExtensions+<>c__DisplayClass0_0`1[T].<ForEachTry>b__0 (T element) [0x00000] in <e04d0156a97b453786cde8a7624bcfab>:0

I initially thought this was a R2API error but taking out ShareSuite fixes it.

FunkFrog commented 5 years ago

Resolved, will be fixed in the next update.