hawkfalcon / Stardew-Mods

Stardew-Mods by hawkfalcon and ceruleandeep (Better Junimos, CustomQuestExpiration, & more)
MIT License
15 stars 32 forks source link

Junimo won't work when hut is built outside of farm #65

Closed GitHub-Sysadmin closed 2 months ago

GitHub-Sysadmin commented 3 months ago

Description of the bug: When the Junimo Hut is built in locations outside the default farm area, such as Grampleton Field, the Junimo NPCs do not spawn to plant seeds from the hut. Despite providing fruit as payment and mixed seeds for planting, no action occurs.

Steps to reproduce:

Build a Junimo Hut in a location outside the default farm area (e.g., Grampleton Field).
Provide fruit as payment and place mixed seeds in the hut.
Wait for the expected seed planting action, which does not occur.

Expected behavior: Junimo NPCs should spawn and plant the seeds located in the Junimo Hut, regardless of the hut’s location on the map.

Actual behavior: No Junimo NPCs spawn, and no seeds are planted when the Junimo Hut is built outside the default farm area.

Game version and mod version:

Stardew Valley: 1.6(Latest version)
Better Junimo: 3.0.0

Platform: PC

SMAPI log: https://smapi.io/log/7da19a94bdaa4437ad17688725846464

Screenshots or video StardewModdingAPI_xModI3wnSI StardewModdingAPI_bWGK0Wpjh9

Other mods: There are over 600 additional mods installed along with Better Junimo, none of which should conflict with this mod.

GitHub-Sysadmin commented 3 months ago

update: trying to open the status report of a junimo hut will give this error code: [game] An error occurred in the base update loop: System.Collections.Generic.KeyNotFoundException: The given key '00000000-0000-0000-0000-000000000000' was not present in the dictionary. at BetterJunimos.Utils.JunimoAbilities.<>c__DisplayClass18_0.<ItemInHut>b__0(String item) in /Users/tristenmiller/Desktop/development/Stardew-Mods/BetterJunimos/Abilities/JunimoAbilities.cs:line 223 at System.Linq.Enumerable.Any[TSource](IEnumerable1 source, Func2 predicate) at BetterJunimos.Utils.JunimoAbilities.IdentifyJunimoAbility(GameLocation location, Vector2 pos, Guid hutGuid) in /Users/tristenmiller/Desktop/development/Stardew-Mods/BetterJunimos/Abilities/JunimoAbilities.cs:line 123 at BetterJunimos.Patches.PatchSearchAroundHut.SearchHutGrid(JunimoHut hut, Int32 radius, GameLocation farm, Guid id) in /Users/tristenmiller/Desktop/development/Stardew-Mods/BetterJunimos/Patches/JunimoHutPatches.cs:line 109 at BetterJunimos.Patches.PatchSearchAroundHut.SearchAroundHut(JunimoHut hut) in /Users/tristenmiller/Desktop/development/Stardew-Mods/BetterJunimos/Patches/JunimoHutPatches.cs:line 46 at BetterJunimos.Patches.PatchSearchAroundHut.Prefix(JunimoHut __instance, Boolean& __result) in /Users/tristenmiller/Desktop/development/Stardew-Mods/BetterJunimos/Patches/JunimoHutPatches.cs:line 36 at StardewValley.Buildings.JunimoHut.areThereMatureCropsWithinRadius_PatchedBy<com.hawkfalcon.BetterJunimos>(JunimoHut this) at StardewValley.Buildings.JunimoHut.updateWhenFarmNotCurrentLocation_PatchedBy<Spiderbuttons.ButtonsExtraBooksCore>(JunimoHut this, GameTime time) at StardewValley.GameLocation.updateEvenIfFarmerIsntHere(GameTime time, Boolean ignoreWasUpdatedFlush) at StardewValley.Game1._UpdateLocation_PatchedBy<leclair.bettercrafting>(Game1 this, GameLocation location, GameTime time) at StardewValley.Game1.<>c__DisplayClass711_0.<UpdateLocations>b__0(GameLocation location) at StardewValley.Utility.ForEachLocation(Func2 action, Boolean includeInteriors, Boolean includeGenerated) at StardewValley.Game1.UpdateLocations(GameTime time) at StardewValley.Game1._update(GameTime gameTime) at StardewValley.Game1.Update(GameTime gameTime) at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) `

hawkfalcon commented 2 months ago

I think this is now fixed