Issue SMAPI error when ending the day

Kerosene

Tiller
Hi, so basically when I'm trying to go to sleep to end a day, the game fades to black as usual but does not pop up the "game saved" text or the shipping screen and SMAPI log keeps producing error messages endlessly. I was playing for a few in-game days in a row, so I didn't change anything when it comes to files or mods; the error just happened randomly (Summer 27th to 28th, year 2, to be exact).
I also used to have that error when I had the Multiple Spouses mod installed, but since then I reinstalled the game and I'm not using it anymore, so I don't know what may be causing it. I'm pretty much an idiot when it comes to logs, codes etc, but I think it may have something to do with the Better Beehouses mod. Can anyone confirm this please? :(

Here's the log:
 
Thanks for the log.
I see what you mean about Beehouses potentially being the cause. But, it also references ProducerFramework on the same line, and both are on the day update.
You can certainly try temporarily removing them just to be sure.

But, I see in the error bits; it also mentions an issue related to an NPCs favorite item:
Code:
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the 'Mike' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the 'Custom NPC Wilford' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the '(CP) Make Gunther Real' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the '(CP) Make Marlon Real' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the 'Sorren Original NPC' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the '(CP) Linus Lives in a Cabin Dialogue' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the 'Ash's Littlewood Passport' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the 'Universally Loved Diamonds' content pack).
16:33:31    TRACE    SMAPI    Content Patcher edited Data/NPCGiftTastes (for the 'Alecto the Witch' content pack).

16:35:38    TRACE    SMAPI    Json Assets edited Data/NPCGiftTastes.

18:15:19    ERROR    game    FormatException: Input string was not in a correct format.
   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
   at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
   at StardewValley.NPC.getFavoriteItem() in stardewvalley\Farmer\Farmer\NPC.cs:line 4726
   at StardewValley.Object.DayUpdate_PatchedBy<Digus.ProducerFrameworkMod__tlitookilakin.BetterBeehouses>(Object this, GameLocation location)
   at StardewValley.GameLocation.DayUpdate(Int32 dayOfMonth)
   at StardewValley.Game1._newDayAfterFade()+MoveNext()
   at StardewValley.Game1.<>c.<newDayAfterFade>b__716_2()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
You may want to try temporarily removing a couple of those ContentPacks listed at the top; that edit the NPCGiftTastes file.
A few at a time; see if the crash stops or not.
 

Kerosene

Tiller
Thank you so much for your help! I checked the mods you mentioned; nothing seemed to be helping, but when I deleted the 'make Marlon real' and it did nothing, I tried deleting 'make Gil real' just to make sure (and they're both connected to each other). Turns out it was that mod, even though it's not on the list above. After deleting it everything is back to normal now, thanks again :heart:
 
Thank you so much for your help! I checked the mods you mentioned; nothing seemed to be helping, but when I deleted the 'make Marlon real' and it did nothing, I tried deleting 'make Gil real' just to make sure (and they're both connected to each other). Turns out it was that mod, even though it's not on the list above. After deleting it everything is back to normal now, thanks again :heart:
No prob, glad I could help a bit. ^-^

Ah, I see; nice work figuring the real mod out!
I went back, and it is in the log; I just missed it when copying it over:
16:35:39 TRACE SMAPI Content Patcher edited Data/NPCGiftTastes (for the '(CP) Make Gil Real' content pack).
 
Top