Issue SMAPI Not a crash but loops until you exit

OronTheNoldo

Newcomer
An error appears only when you host a server not always but some thing like 75-80% of time

[13:51:39 ERROR game] An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
at StardewValley.Monsters.Monster.behaviorAtGameTick(GameTime time) in stardewvalley\Farmer\Farmer\Monsters\Monster.cs:line 529
at StardewValley.Monsters.Grub.behaviorAtGameTick(GameTime time) in stardewvalley\Farmer\Farmer\Monsters\Grub.cs:line 181
at FarmTypeManager.ModEntry.GrubFTM.behaviorAtGameTick(GameTime time) in D:\Esca\Stardew\Mods\FarmTypeManager\FarmTypeManager\Classes\In-Game\Monsters\GrubFTM.cs:line 33
at StardewValley.Monsters.Grub.update(GameTime time, GameLocation location) in stardewvalley\Farmer\Farmer\Monsters\Grub.cs:line 132
at StardewValley.GameLocation.updateCharacters(GameTime time) in stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 3511
at StardewValley.GameLocation.updateEvenIfFarmerIsntHere(GameTime time, Boolean ignoreWasUpdatedFlush) in stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 3542
at StardewValley.Game1.UpdateLocations(GameTime time) in stardewvalley\Farmer\Farmer\Game1.cs:line 6492
at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4867
at StardewValley.Game1.Update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 3974
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1117

Full log attached https://smapi.io/log/3e8d54bfb54143d0b90285ee4329a223
 
Thanks for the log, it looks related to FarmTypeManager. Maybe one of the mods that depends on it is the issue; you can try removing a couple of those temporarily to see if it helps.


But, I see you're also missing the Error Handler mod from SMAPI; which helps fix some bugs.
Redownload SMAPI: https://smapi.io/

Extract it; then go into the SMAPI 3.18.2 installer/internal/windows/ folder, and extract the 'install.dat' file.
Go into the extracted folder, and copy the "ErrorHandler" mod from the Mods folder back over into your own Mods folder.
 

OronTheNoldo

Newcomer
Already done so, loop show not so often, but still remains. I wonder why in single player it runs perfect, but in multiplayer it appears? I mean it appears when all is loaded and after server starts, on the start of new day.
 
Last edited:
Already done so, loop show not so often, but still remains. I wonder why in single player it runs perfect, but in multiplayer it appears? I mean it appears when all is loaded and after server starts, on the start of new day.
Unfortunately, I'm not really sure. Probably a good question for the mod author.

FarmTypeManager does store its own per-save data in its own folder. Under the "data" folder.

So you could always try deleting those files to see if it resets this weirdness.
Though, you may want to back them up first; just in case it works. That way you'll have something that can be investigated further.

Code:
    TRACE    Farm Type Manager    FarmTypeManager/data farm data loaded successfully.
13:19:28    TRACE    Farm Type Manager    Starting forage generation for this file: FarmTypeManager/data/AncientHome_336379906.json
13:19:28    TRACE    Farm Type Manager    Starting large object generation for this file: FarmTypeManager/data/AncientHome_336379906.json
13:19:28    TRACE    Farm Type Manager    Starting ore generation for this file: FarmTypeManager/data/AncientHome_336379906.json
13:19:29    TRACE    Farm Type Manager    Starting monster generation for this file: FarmTypeManager/data/AncientHome_336379906.json

13:19:30    ERROR    game    An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
   at StardewValley.Monsters.Monster.behaviorAtGameTick(GameTime time) in stardewvalley\Farmer\Farmer\Monsters\Monster.cs:line 529
   at StardewValley.Monsters.Grub.behaviorAtGameTick(GameTime time) in stardewvalley\Farmer\Farmer\Monsters\Grub.cs:line 181
   at FarmTypeManager.ModEntry.GrubFTM.behaviorAtGameTick(GameTime time) in D:\Esca\Stardew\Mods\FarmTypeManager\FarmTypeManager\Classes\In-Game\Monsters\GrubFTM.cs:line 33
   at StardewValley.Monsters.Grub.update(GameTime time, GameLocation location) in stardewvalley\Farmer\Farmer\Monsters\Grub.cs:line 132
   at StardewValley.GameLocation.updateCharacters(GameTime time) in stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 3511
   at StardewValley.GameLocation.updateEvenIfFarmerIsntHere(GameTime time, Boolean ignoreWasUpdatedFlush) in stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 3542
   at StardewValley.Game1.UpdateLocations(GameTime time) in stardewvalley\Farmer\Farmer\Game1.cs:line 6492
   at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4867
   at StardewValley.Game1.Update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 3974
   at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1117
 
Top