Issue An error occurred in the base update loop SDV Expanded Freezing

GreensCreekClan

Greenhorn
When I warp from Ginger Island to the First Slash Clan Island. SMAPI gives the following error, repeated at least 100 times. Any ideas on how to fix this? It's happened several times now, on different game days, but always at the same warp, and the only way out is ctrl,alt,del, so I lose the whole day.

[game] An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
at StardewValley.CueWrapper.Stop(AudioStopOptions options) in stardewvalley\Farmer\Farmer\CueWrapper.cs:line 66
at StardewValley.Game1.updateMusic() in stardewvalley\Farmer\Farmer\Game1.cs:line 7901
at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4413
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

Edited to add link to error log: https://smapi.io/log/2df027fb2266401b8e9604ec35daf1db
 
Last edited:
When I warp from Ginger Island to the First Slash Clan Island. SMAPI gives the following error, repeated at least 100 times. Any ideas on how to fix this? It's happened several times now, on different game days, but always at the same warp, and the only way out is ctrl,alt,del, so I lose the whole day.

[game] An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
at StardewValley.CueWrapper.Stop(AudioStopOptions options) in stardewvalley\Farmer\Farmer\CueWrapper.cs:line 66
at StardewValley.Game1.updateMusic() in stardewvalley\Farmer\Farmer\Game1.cs:line 7901
at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4413
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

Edited to add link to error log: https://smapi.io/log/2df027fb2266401b8e9604ec35daf1db
Thanks for the log.

Okay, with some googling, and the info you provided. I think I see the issue. SDV Expanded seems to have typo'd the song name.

The wiki has the vanilla sounds list: https://stardewvalleywiki.com/Modding:Audio

And, your error is for "Rain" being missing. Like a lot of other SDV modded data; it's case-sensitive.

Code:
20:09:16    WARN    SAAT.API    Could not find a Cue with the name "Rain". See logs for details.
20:09:16    TRACE    SAAT.API    Caller: MonoGame.Framework
 Stack Trace:    at Microsoft.Xna.Framework.Audio.SoundBank.GetCue(String name) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Audio\Xact\SoundBank.cs:line 346
   at StardewValley.SoundBankWrapper.GetCue(String name) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\SoundBankWrapper.cs:line 35
   at SAAT.API.SAATSoundBankWrapper.GetCue(String name) in C:\Users\Weil\source\repos\SAAT\SAAT.API\SAATSoundBankWrapper.cs:line 85
20:09:16    ERROR    game    An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
   at StardewValley.CueWrapper.Play() in stardewvalley\Farmer\Farmer\CueWrapper.cs:line 51
   at StardewValley.Game1.updateMusic() in stardewvalley\Farmer\Farmer\Game1.cs:line 7909
   at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4413
   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
Can you try going into the SDV Expanded ContentPatcher pack:
D:\SteamLibrary\steamapps\common\Stardew Valley\Mods\Stardew Valley Expanded\[CP] Stardew Valley Expanded

And, open up the "content.json" file so we can edit it.
Go to Line '31301'

It should look like the following:
Code:
    {   
      //Fable Reef music que
      "Action": "EditMap",
      "Target": "Maps/Custom_FableReef",
      "When": { "Weather": "Rain", "LocationContext": "Island" },
      "MapProperties": { "Music": "Rain" },
      "Update": "OnLocationChange"
    },
Can you try changing on the MapProperties line; "Rain" to "rain"?
Like so.
"MapProperties": { "Music": "rain" },

Save, and then test in-game. It should fix it, but just want to verify.
 

GreensCreekClan

Greenhorn
Thank you, Mystic Tempest! I made that change, as you instructed so clearly, and I'm going to give it a run. I'll come back and let you know if I have any more troubles, but I'm sure you nailed it.
 
Thank you, Mystic Tempest! I made that change, as you instructed so clearly, and I'm going to give it a run. I'll come back and let you know if I have any more troubles, but I'm sure you nailed it.
No prob!

I didn't have any late-game, SDV Expanded saves to test in-game; hence I wanted to be sure.
But, I did manage to debug my way there to the island with another user's save; and confirm the same error, and that the fix works.

So, I'll post a report on the mod page to get it fixed for everyone. But, yea; definitely let me know if anything else pops up in error.
 
Top