pipakin/PipakinsMods

Incompatible with new MCE Major Update, 2.0.2

Opened this issue · 0 comments

Here's the offending line:

Traverse.Create(configManagerType).Method("RegisterMod", id, config).GetValue(id, config);

Trace from my bepinex console:

[Info   : Unity Log] [GatheringMod] Mod Config Enforcer detected, registering mod...
[Warning:  HarmonyX] AccessTools.Method: Could not find method for type ModConfigEnforcer.ConfigManager and name RegisterMod and parameters (string, BepInEx.Configuration.ConfigFile)
[Error  : Unity Log] Exception: cannot get method value without method
Stack trace:
HarmonyLib.Traverse.GetValue (System.Object[] arguments) (at <116dd996dda44480a48a0fc9ee2308ed>:0)
Pipakin.GatheringMod.GatheringConfig.InitConfig (System.String id, BepInEx.Configuration.ConfigFile config) (at <5a57e3682e8a43f0b6e722372b1e4297>:0)
Pipakin.GatheringMod.GatheringSkillMod.Awake () (at <5a57e3682e8a43f0b6e722372b1e4297>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()

[Error  :   BepInEx] Could not load [GatheringSkillCropReplantCompatibilityMod 1.0.0] because it has missing dependencies: com.github.johndowson.CropReplant