FarmerAspen
Cowpoke
Hi! I'm having trouble with the mod Custom Tool Effect. My Smapi log (I know there are some other errors, I'm currently working on fixing my extensive mod list, lol!): https://smapi.io/log/a8697c3993a14443bed169a1e09a62bf
Is there a fix for this, or is it just too outdated? Thanks!
This is the error message, just in case:
Mod crashed on entry and might not work correctly. Technical details:
System.Exception: Harmony instance zaneyork.CustomToolEffect failed applying postfix to method StardewValley.TemporaryAnimatedSprite..ctor.
---> NullReferenceException: Object reference not set to an instance of an object.
at HarmonyLib.Patch.set_PatchMethod(MethodInfo value)
at HarmonyLib.PatchInfo.<>c__DisplayClass19_0.<Add>b__1(HarmonyMethod method, Int32 i)
at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext()
at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
at System.Collections.Generic.SparseArrayBuilder`1.ReserveOrAdd(IEnumerable`1 items)
at System.Linq.Enumerable.Concat2Iterator`1.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at HarmonyLib.PatchProcessor.Patch()
at StardewModdingAPI.Framework.ModLoading.RewriteFacades.HarmonyInstanceFacade.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler) in SMAPI\Framework\ModLoading\RewriteFacades\HarmonyInstanceFacade.cs:line 38
--- End of inner exception stack trace ---
at StardewModdingAPI.Framework.ModLoading.RewriteFacades.HarmonyInstanceFacade.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler) in SMAPI\Framework\ModLoading\RewriteFacades\HarmonyInstanceFacade.cs:line 50
at CustomToolEffect.ModEntry.<>c__DisplayClass1_0.<Entry>b__0(ConstructorInfo ctor) in E:\workspace\C#\SMAPI\MartyrPher\Mods\CustomToolEffect\CustomToolEffect\ModEntry.cs:line 40
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at CustomToolEffect.ModEntry.Entry(IModHelper helper) in E:\workspace\C#\SMAPI\MartyrPher\Mods\CustomToolEffect\CustomToolEffect\ModEntry.cs:line 38
at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1773
Is there a fix for this, or is it just too outdated? Thanks!
This is the error message, just in case:
Mod crashed on entry and might not work correctly. Technical details:
System.Exception: Harmony instance zaneyork.CustomToolEffect failed applying postfix to method StardewValley.TemporaryAnimatedSprite..ctor.
---> NullReferenceException: Object reference not set to an instance of an object.
at HarmonyLib.Patch.set_PatchMethod(MethodInfo value)
at HarmonyLib.PatchInfo.<>c__DisplayClass19_0.<Add>b__1(HarmonyMethod method, Int32 i)
at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext()
at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
at System.Collections.Generic.SparseArrayBuilder`1.ReserveOrAdd(IEnumerable`1 items)
at System.Linq.Enumerable.Concat2Iterator`1.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at HarmonyLib.PatchProcessor.Patch()
at StardewModdingAPI.Framework.ModLoading.RewriteFacades.HarmonyInstanceFacade.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler) in SMAPI\Framework\ModLoading\RewriteFacades\HarmonyInstanceFacade.cs:line 38
--- End of inner exception stack trace ---
at StardewModdingAPI.Framework.ModLoading.RewriteFacades.HarmonyInstanceFacade.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler) in SMAPI\Framework\ModLoading\RewriteFacades\HarmonyInstanceFacade.cs:line 50
at CustomToolEffect.ModEntry.<>c__DisplayClass1_0.<Entry>b__0(ConstructorInfo ctor) in E:\workspace\C#\SMAPI\MartyrPher\Mods\CustomToolEffect\CustomToolEffect\ModEntry.cs:line 40
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at CustomToolEffect.ModEntry.Entry(IModHelper helper) in E:\workspace\C#\SMAPI\MartyrPher\Mods\CustomToolEffect\CustomToolEffect\ModEntry.cs:line 38
at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1773