Hi! If you're looking for assistance with this mod, I need a smapi.io/log to help debug.
(also if you could run a ja_summary and a harmony_summary in console before sending the log that'd be much appreciated! Just type those words into SMAPI's console and hit enter.)
The mod is being overhauled for 1.6, but it's rather difficult and technical and is going to take some time. Please be patient as this is a very complicated mod.
Buying fertilizer at the fair gives you 20 of it, but only decreases available stock by 1. (So you could presumably get up to 210 of it if you were really patient with the fair games.)
[More Fertilizers] Mod crashed while transpiling virtual System.Void StardewValley.Crop::newDay(System.Int32 state, System.Int32 fertilizer, System.Int32 xTile, System.Int32 yTile, StardewValley.GameLocation environment): AtraShared.Utils.HarmonyHelper.NoMatchFoundException: The desired pattern wasn't found: LdArg 5 ldfld Netcode.NetBool StardewValley.GameLocation::isOutdoors call NULL brfalse.s NULL at AtraShared.Utils.HarmonyHelper.ILHelperThrowHelper.ThrowNoMatchFoundException[T](IEnumerable`1 codeInstructions) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelperExceptions.cs:line 137 at AtraShared.Utils.HarmonyHelper.ILHelper.FindFirst(CodeInstructionWrapper[] instructions, Int32 startindex, Nullable`1 intendedendindex) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelper.cs:line 285 at MoreFertilizers.HarmonyPatches.EverlastingFertilizer.CropNewDayTranspiler.Transpiler(IEnumerable`1 instructions, ILGenerator gen, MethodBase original) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\HarmonyPatches\EverlastingFertilizer\CropNewDayTranspiler.cs:line 47 Dear author It can be used, but there are errors. May I ask what the problem is?
This means you've installed a mod that doesn't work with More Fertilizers. Without the full log, I can't be sure who's the conflict (which is why I ask for the full log in my pinned comment.)
The items are simple JA items, if you'd like, you can add recipes yourself. See Json Assets documentation here; if you have further questions I recommend joining the official stardew discord and asking the #making-mods channel.
[More Fertilizers] The desired pattern wasn't found: call static StardewValley.Farmer StardewValley.Game1::get_player() ldc.i4.0 NULL LdLoc [More Fertilizers] Mod crashed while transpiling Crop.harvest: System.InvalidOperationException: Operation is not valid due to the current state of the object. at CommunityToolkit.Diagnostics.ThrowHelper.ThrowInvalidOperationException[T]() at AtraShared.Utils.HarmonyHelper.ILHelper.FindFirst(CodeInstructionWrapper[] instructions, Int32 startindex, Nullable`1 intendedendindex) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelper.cs:line 283 at MoreFertilizers.HarmonyPatches.CropHarvestTranspiler.Transpiler(IEnumerable`1 instructions, ILGenerator gen, MethodBase original) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\HarmonyPatches\CropHarvestTranspiler.cs:line 339 [More Fertilizers] Mod crashed while applying harmony patches: HarmonyLib.HarmonyException: Patching exception in method virtual System.Boolean StardewValley.Crop::harvest(System.Int32 xTile, System.Int32 yTile, StardewValley.TerrainFeatures.HoeDirt soil, StardewValley.Characters.JunimoHarvester junimoHarvester) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Bad label content in ILGenerator. at System.Reflection.Emit.ILGenerator.GetLabelPos(Label lbl) at System.Reflection.Emit.ILGenerator.BakeByteArray() at System.Reflection.Emit.DynamicResolver..ctor(DynamicILGenerator ilGenerator) at System.Reflection.Emit.DynamicILGenerator.GetCallableMethod(RuntimeModule module, DynamicMethod dm) at System.Reflection.Emit.DynamicMethod.GetMethodDescriptor() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at MonoMod.RuntimeDetour.Platforms.DetourRuntimeNETPlatform.GetMethodHandle(MethodBase method) at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.GetIdentifiable(MethodBase method) at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.Pin(MethodBase method) at MonoMod.RuntimeDetour.DetourHelper.Pin[T](T method) at HarmonyLib.MethodPatcher.CreateReplacement(Dictionary`2& finalInstructions) at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo) at HarmonyLib.PatchClassProcessor.ProcessPatchJob(Job job) --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException(Exception exception, MethodBase original) at HarmonyLib.PatchClassProcessor.Patch() at HarmonyLib.Harmony.<PatchAll>b__10_0(Type type) at HarmonyLib.CollectionExtensions.Do[T](IEnumerable`1 sequence, Action`1 action) at MoreFertilizers.ModEntry.ApplyPatches(Harmony harmony) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\ModEntry.cs:line 634
Oops, sorry, that's my bad, that link is to my old github repo. This is the updated link: https://github.com/atravita-mods/StardewMods/tree/main/MoreFertilizers/MoreFertilizers#usage
Hi, I ran into some angry red line when I started the game. Can you help take a look? Here is my log. https://smapi.io/log/ed31e2ef08dc4caba7716143d8d4510206:26:27ERRORMore FertilizersThe desired pattern wasn't found: ldloca.s NULL call StardewValley.Object System.Collections.Generic.KeyValuePair`2::get_Value() ldfld Netcode.NetBool StardewValley.Object::bigCraftable call NULL Wildcard with predicate 06:26:27ERRORMore FertilizersMod crashed while transpiling System.Void StardewValley.Farm::addCrows(): System.InvalidOperationException: Operation is not valid due to the current state of the object. at CommunityToolkit.Diagnostics.ThrowHelper.ThrowInvalidOperationException[T]() at AtraShared.Utils.HarmonyHelper.ILHelper.FindFirst(CodeInstructionWrapper[] instructions, Int32 startindex, Nullable`1 intendedendindex) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelper.cs:line 283 at MoreFertilizers.HarmonyPatches.Compat.AddCrowsForExtendedToolsTranspiler.Transpiler(IEnumerable`1 instructions, ILGenerator gen, MethodBase original) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\HarmonyPatches\Compat\AddCrowsForExtendedToolsTranspiler.cs:line 37
Known, this one is harmless. Immersive Sprinklers broke one of my patches, but they're doing the same thing my patch did so it's actually fine. I'll put out an update in about a week or so that just disables this patch if Immersive Sprinklers is installed.
100 comments
(also if you could run a ja_summary and a harmony_summary in console before sending the log that'd be much appreciated! Just type those words into SMAPI's console and hit enter.)
Vortex semi-frequently mis-deploys mods!
To be honest, the entire mod is getting overhauled for 1.6 and who the heck knows when that will be done.
AtraShared.Utils.HarmonyHelper.NoMatchFoundException: The desired pattern wasn't found:
LdArg 5
ldfld Netcode.NetBool StardewValley.GameLocation::isOutdoors
call NULL
brfalse.s NULL
at AtraShared.Utils.HarmonyHelper.ILHelperThrowHelper.ThrowNoMatchFoundException[T](IEnumerable`1 codeInstructions) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelperExceptions.cs:line 137
at AtraShared.Utils.HarmonyHelper.ILHelper.FindFirst(CodeInstructionWrapper[] instructions, Int32 startindex, Nullable`1 intendedendindex) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelper.cs:line 285
at MoreFertilizers.HarmonyPatches.EverlastingFertilizer.CropNewDayTranspiler.Transpiler(IEnumerable`1 instructions, ILGenerator gen, MethodBase original) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\HarmonyPatches\EverlastingFertilizer\CropNewDayTranspiler.cs:line 47
Dear author
It can be used, but there are errors.
May I ask what the problem is?
I prefer self made ways of playing.
This mod is open source, so feel free to take the code for the Everlasting Fertilizer and make your own mod, but otherwise I'm not going to do that.
https://smapi.io/log/39e2ccbbbd2a40c994558cc35f66f7be
[More Fertilizers] The desired pattern wasn't found:
call static StardewValley.Farmer StardewValley.Game1::get_player()
ldc.i4.0 NULL
LdLoc
[More Fertilizers] Mod crashed while transpiling Crop.harvest:
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at CommunityToolkit.Diagnostics.ThrowHelper.ThrowInvalidOperationException[T]()
at AtraShared.Utils.HarmonyHelper.ILHelper.FindFirst(CodeInstructionWrapper[] instructions, Int32 startindex, Nullable`1 intendedendindex) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelper.cs:line 283
at MoreFertilizers.HarmonyPatches.CropHarvestTranspiler.Transpiler(IEnumerable`1 instructions, ILGenerator gen, MethodBase original) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\HarmonyPatches\CropHarvestTranspiler.cs:line 339
[More Fertilizers] Mod crashed while applying harmony patches:
HarmonyLib.HarmonyException: Patching exception in method virtual System.Boolean StardewValley.Crop::harvest(System.Int32 xTile, System.Int32 yTile, StardewValley.TerrainFeatures.HoeDirt soil, StardewValley.Characters.JunimoHarvester junimoHarvester)
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentException: Bad label content in ILGenerator.
at System.Reflection.Emit.ILGenerator.GetLabelPos(Label lbl)
at System.Reflection.Emit.ILGenerator.BakeByteArray()
at System.Reflection.Emit.DynamicResolver..ctor(DynamicILGenerator ilGenerator)
at System.Reflection.Emit.DynamicILGenerator.GetCallableMethod(RuntimeModule module, DynamicMethod dm)
at System.Reflection.Emit.DynamicMethod.GetMethodDescriptor()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeNETPlatform.GetMethodHandle(MethodBase method)
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.GetIdentifiable(MethodBase method)
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.Pin(MethodBase method)
at MonoMod.RuntimeDetour.DetourHelper.Pin[T](T method)
at HarmonyLib.MethodPatcher.CreateReplacement(Dictionary`2& finalInstructions)
at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
at HarmonyLib.PatchClassProcessor.ProcessPatchJob(Job job)
--- End of inner exception stack trace ---
at HarmonyLib.PatchClassProcessor.ReportException(Exception exception, MethodBase original)
at HarmonyLib.PatchClassProcessor.Patch()
at HarmonyLib.Harmony.<PatchAll>b__10_0(Type type)
at HarmonyLib.CollectionExtensions.Do[T](IEnumerable`1 sequence, Action`1 action)
at MoreFertilizers.ModEntry.ApplyPatches(Harmony harmony) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\ModEntry.cs:line 634
Unfortunately, I'm not sure I have the time right now to fix this, so you'll probably have to pick one or the other.
Just wondering if there's a special page to see all 21 of the MF with the better formatting on GitHub or if you're planning on updating that list?
But also, nice mod with great creativity and attention to detail :)
Here is my log.
https://smapi.io/log/ed31e2ef08dc4caba7716143d8d45102
06:26:27ERRORMore FertilizersThe desired pattern wasn't found:
ldloca.s NULL
call StardewValley.Object System.Collections.Generic.KeyValuePair`2::get_Value()
ldfld Netcode.NetBool StardewValley.Object::bigCraftable
call NULL
Wildcard with predicate
06:26:27ERRORMore FertilizersMod crashed while transpiling System.Void StardewValley.Farm::addCrows():
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at CommunityToolkit.Diagnostics.ThrowHelper.ThrowInvalidOperationException[T]()
at AtraShared.Utils.HarmonyHelper.ILHelper.FindFirst(CodeInstructionWrapper[] instructions, Int32 startindex, Nullable`1 intendedendindex) in C:\Users\night\source\repos\StardewModsSolution\AtraShared\Utils\HarmonyHelper\ILHelper.cs:line 283
at MoreFertilizers.HarmonyPatches.Compat.AddCrowsForExtendedToolsTranspiler.Transpiler(IEnumerable`1 instructions, ILGenerator gen, MethodBase original) in C:\Users\night\source\repos\StardewModsSolution\MoreFertilizers\MoreFertilizers\HarmonyPatches\Compat\AddCrowsForExtendedToolsTranspiler.cs:line 37