Issue Help with SMAPI game errors (overridden draw loop) - log included

dwainjoseph

Greenhorn
Here is the most recent log: https://smapi.io/log/ad50fcf9503147a3b958e2129b75ac69
Running latest game version on Windows

Primary error is
ERRORgameAn error occured in the overridden draw loop: System.NullReferenceException: Object reference not set to an instance of an object.

From the looks of it, it appears the errors stem from the game itself? I have cleaned up as many of the mod errors as I have found. My girlfriend and I encounter lots of errors in multiplayer, but I am having these errors even in single player (log included is in single player). I can't make heads of tails of it!

Can anyone help? Thank you u in advance!
 
Last edited by a moderator:
Thanks for the log. Looking a bit deeper into that section.
It seems to be some issue related to the horse/stable.

Code:
14:39:45    ERROR    game    An error occured in the overridden draw loop: System.NullReferenceException: Object reference not set to an instance of an object.
at StardewValley.AnimatedSprite.UpdateSourceRect() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\AnimatedSprite.cs:line 33
at StardewValley.Characters.Horse.draw(SpriteBatch b) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Characters\Horse.cs:line 569
at StardewValley.GameLocation.drawCharacters(SpriteBatch b) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 10576
at StardewValley.GameLocation.draw(SpriteBatch b) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 5926
at StardewValley.Locations.BuildableGameLocation.draw(SpriteBatch b) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Locations\BuildableGameLocation.cs:line 238
at StardewValley.Farm.draw_PatchedBy<DJ-STLN.Krutonium.CombatControls>(Object b, SpriteBatch)
at StardewModdingAPI.Framework.SGame.DrawImpl(GameTime gameTime, RenderTarget2D target_screen) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SGame.cs:line 205
at StardewModdingAPI.Framework.SGame._draw(GameTime gameTime, RenderTarget2D target_screen) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SGame.cs:line 1310
14:39:45    ERROR    game    An error occured in the base update loop: System.NullReferenceException: Object reference not set to an instance of an object.
at StardewValley.Buildings.Stable.getSourceRectForMenu() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Buildings\Stable.cs:line 3
at StardewValley.Buildings.Building.Update(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Buildings\Building.cs:line 828
at StardewValley.Buildings.Stable.Update(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Buildings\Stable.cs:line 44
at StardewValley.Locations.BuildableGameLocation.UpdateWhenCurrentLocation(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Locations\BuildableGameLocation.cs:line 212
at StardewValley.Farm.UpdateWhenCurrentLocation_PatchedBy<ppja.MoreTreesforMFM>(Object time, GameTime)
at StardewValley.Game1.UpdateLocations(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 49
at StardewValley.Game1._update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 11765
at StardewValley.Game1.Update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 10860
at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SGame.cs:line 883

It starts with a reference to Combat Controls, but then repeats with multiple other mods.
Yalkin33 on the mod page for "Combat Controls" recommends using this updated fork of the mod: https://www.nexusmods.com/stardewvalley/mods/10496?tab=description

There's also a few mods that can be updated as recomended by SMAPI.

You said this log was during singleplayer, but if it's you & your girlfriend's mutliplayer save. It can still have corrupt data from any mods she might have.
Can you have her share a log if that's the case?
 
Thanks I see she has a couple Ridgeside Village NPC errors due to what appears to be a conflict with the Market Day mod.

Code:
21:00:23    ERROR    game    Failed parsing schedule for NPC Naomi:
0 Custom_Ridgeside_ShiroHouse 5 5 0/730 Custom_Ridgeside_LogCabinHotelLobby 14 6 2/1600 Custom_Ridgeside_RidgesideVillage 89 40 0/1900 Custom_Ridgeside_ShiroHouse 5 5 0/2400 Custom_Ridgeside_ShiroHouse 24 5 2 naomi_sleep
ArgumentException: In warpCharacter, the character's currentLocation must not be null
   at StardewValley.Game1.warpCharacter(NPC character, GameLocation targetLocation, Vector2 position) in stardewvalley\Farmer\Farmer\Game1.cs:line 11238
   at StardewValley.NPC.parseMasterSchedule_PatchedBy<ceruleandeep.MarketDay>(NPC this, String rawData)
21:00:23    ERROR    game    Failed parsing schedule for NPC Olivia:
0 Custom_JenkinsHouse 19 5 0/610 Custom_JenkinsHouse 5 8 0/700 Custom_JenkinsHouse 32 37 0/900 Custom_JenkinsHouse 6 31 0/1100 Custom_JenkinsHouse 5 39 3/1300 Custom_JenkinsHouse 23 10 0/1500 Custom_JenkinsHouse 15 13 3/1600 Custom_JenkinsHouse 32 37 2/1800 Town 61 53 2/1900 Custom_JenkinsHouse 22 5 0/2100 Custom_JenkinsHouse 19 5 1 Olivia_Sleep
ArgumentException: In warpCharacter, the character's currentLocation must not be null
   at StardewValley.Game1.warpCharacter(NPC character, GameLocation targetLocation, Vector2 position) in stardewvalley\Farmer\Farmer\Game1.cs:line 11238
   at StardewValley.NPC.parseMasterSchedule_PatchedBy<ceruleandeep.MarketDay>(NPC this, String rawData)
21:00:23    ERROR    game    Failed parsing schedule for NPC Victor:
0 Custom_JenkinsHouse 31 5 0/610 Custom_JenkinsHouse 31 5 1/700 Custom_JenkinsHouse 6 8 0/830 Custom_JenkinsHouse 30 37 0/1000 Custom_OliviaCellar 14 9 2/1100 Custom_OliviaCellar 6 6 0 Victor_Wine1/1400 Town 53 52 2/1700 Custom_JenkinsHouse 30 37 0/1800 Custom_JenkinsHouse 27 6 2/2100 Custom_JenkinsHouse 31 5 1 Victor_Sleep
ArgumentException: In warpCharacter, the character's currentLocation must not be null
   at StardewValley.Game1.warpCharacter(NPC character, GameLocation targetLocation, Vector2 position) in stardewvalley\Farmer\Farmer\Game1.cs:line 11238
   at StardewValley.NPC.parseMasterSchedule_PatchedBy<ceruleandeep.MarketDay>(NPC this, String rawData)
view raw log | download

But, as for the horse/stable related issue that you're having. The only mod that I see in her log that may be an issue related to this, is "Secretariat".
It appears to be in need of an update: https://www.nexusmods.com/stardewvalley/mods/7537?tab=description

I'd also recommend you try downloading the latest version of Secretariat.
It hasn't had an update in about a year and a half. So, there may still be some issues, but it tweaks the horse speed. And, for multiplayer you generally want everyone to have the same mods for compatibility purposes.
 
Top