Solved Stardew Valley Expanded Error

unicorniobolado

Greenhorn
Hello!
I need help with this issue, please!

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 1080

Here is the log: https://smapi.io/log/f16849b845444d2d9317ee69f039a189
 

UlyanaLeyana

Planter
Hello!
I need help with this issue, please!

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 1080

Here is the log: https://smapi.io/log/f16849b845444d2d9317ee69f039a189
Hi, can you please check if all music files are in the folder? there should be 28 of them
Stardew Valley Expanded\[SAAT] Stardew Valley Expanded
 

Sachiel

Newcomer
Hi, i have the same problem here
I checked the folder with the music files and it has exactly 28 files, apart from the 2 notepads
This is the error message that SWAPI displays

[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 1080


The error always happens in Camilla's event when she first takes the farmer to the castle, freezing the game afterwards.

Here my log: https://smapi.io/log/692de4f7e4894a399ce29d92ff9595cb
 

UlyanaLeyana

Planter
Hi, i have the same problem here
I checked the folder with the music files and it has exactly 28 files, apart from the 2 notepads
This is the error message that SWAPI displays

[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 1080


The error always happens in Camilla's event when she first takes the farmer to the castle, freezing the game afterwards.

Here my log: https://smapi.io/log/692de4f7e4894a399ce29d92ff9595cb
Hi, could you upload your save file folder? I want to look at this error and test it.
you can find it here
Code:
DISK:\Users\NAME\AppData\Roaming\StardewValley\Saves
or
Code:
%AppData%\StardewValley\Saves
 

UlyanaLeyana

Planter
Of course, here the files
14:51:48WARNSAAT.APICould not find a Cue with the name "cm:Nexus". See logs for details.
14:53:31WARNSAAT.APICould not find a Cue with the name "cm:CastleVillageOutpostAmbience". See logs for details.
14:53:31ERRORgameAn 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 1080
14:53:31ERRORgameAn 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 1080

I have tested the error. This error only appears if the music file is missing.
Could you please follow the steps?
  • launch the game via SMAPI
  • wait for the game to load until the "start" (new game, load) screen, don't load the save
  • type in SMAPI console
    Code:
    audioallocs
    hit ENTER
  • then type in SMAPI console
    Code:
    patch summary full
    hit ENTER
  • close the game
  • upload a new log
  • share it here
 
Last edited:

Sachiel

Newcomer
14:51:48WARNSAAT.APICould not find a Cue with the name "cm:Nexus". See logs for details.
14:53:31WARNSAAT.APICould not find a Cue with the name "cm:CastleVillageOutpostAmbience". See logs for details.
14:53:31ERRORgameAn 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 1080
14:53:31ERRORgameAn 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 1080

I have tested the error. This error only appears if the music file is missing.
Could you please follow the steps?
  • launch the game via SMAPI
  • wait for the game to load until the "start" (new game, load) screen, don't load the save
  • type in SMAPI console
    Code:
    audioallocs
    hit ENTER
  • then type in SMAPI console
    Code:
    patch summary full
    hit ENTER
  • close the game
  • upload a new log
  • share it here
Here the last log: https://smapi.io/log/a6c93ccc23a641fb8fed3ea2cb44da48

Music folder shows 28, I don't understand why SMAPI says no file :/
 

Attachments

UlyanaLeyana

Planter
Here the last log: https://smapi.io/log/a6c93ccc23a641fb8fed3ea2cb44da48

Music folder shows 28, I don't understand why SMAPI says no file :/
Your SMAPI sees these music files (this is confirmed in the last log) but during the cutscene the game cannot recognize them for some reason. I tested the cutscene with the same mods as you have several times and everything was fine. The errors only appeared when I deleted the music files.

What you can try to do:
  1. Temporarily disable your antivirus
  2. Add an exception to your antivirus for the Stardew Valley folders (for instructions search online for your antivirus name with the words "add folder exception"
  3. Redownload and install SMAPI
  4. Update Stardew Valley Expanded
  5. Check if the error is gone
 

Sachiel

Newcomer
Your SMAPI sees these music files (this is confirmed in the last log) but during the cutscene the game cannot recognize them for some reason. I tested the cutscene with the same mods as you have several times and everything was fine. The errors only appeared when I deleted the music files.

What you can try to do:
  1. Temporarily disable your antivirus
  2. Add an exception to your antivirus for the Stardew Valley folders (for instructions search online for your antivirus name with the words "add folder exception"
  3. Redownload and install SMAPI
  4. Update Stardew Valley Expanded
  5. Check if the error is gone
I understand, I uninstalled Stardew Valley and all the files that were left from SMAPI, reinstalled everything again and the error persists :/

Thanks for your time anyway
 

UlyanaLeyana

Planter
I understand, I uninstalled Stardew Valley and all the files that were left from SMAPI, reinstalled everything again and the error persists :/

Thanks for your time anyway
Can you try to update all mods that SMAPI tells you to update? and upload a new log again if the error still persists

06:23:41ALERTSMAPI CJB Cheats Menu 1.32.1: https://www.nexusmods.com/stardewvalley/mods/4 (you have 1.32.0)
06:23:41ALERTSMAPI CJB Item Spawner 2.2.1: https://www.nexusmods.com/stardewvalley/mods/93 (you have 2.2.0)
06:23:41ALERTSMAPI NPC Map Locations 2.11.1: https://www.nexusmods.com/stardewvalley/mods/239 (you have 2.11.0)
06:23:41ALERTSMAPI Seasonal Cute Characters 4.0.3: https://www.nexusmods.com/stardewvalley/mods/5450 (you have 4.0.1)
06:23:41ALERTSMAPI Seasonal Cute Characters SVE 2.3.3: https://www.nexusmods.com/stardewvalley/mods/5969 (you have 2.3.2)
06:23:41ALERTSMAPI Stardew Valley Expanded 1.14.17: https://www.nexusmods.com/stardewvalley/mods/3753 (you have 1.14.16
 
Last edited:

Sachiel

Newcomer
Can you try to update all mods that SMAPI tells you to update? and upload a new log again if the error still persists

06:23:41ALERTSMAPI CJB Cheats Menu 1.32.1: https://www.nexusmods.com/stardewvalley/mods/4 (you have 1.32.0)
06:23:41ALERTSMAPI CJB Item Spawner 2.2.1: https://www.nexusmods.com/stardewvalley/mods/93 (you have 2.2.0)
06:23:41ALERTSMAPI NPC Map Locations 2.11.1: https://www.nexusmods.com/stardewvalley/mods/239 (you have 2.11.0)
06:23:41ALERTSMAPI Seasonal Cute Characters 4.0.3: https://www.nexusmods.com/stardewvalley/mods/5450 (you have 4.0.1)
06:23:41ALERTSMAPI Seasonal Cute Characters SVE 2.3.3: https://www.nexusmods.com/stardewvalley/mods/5969 (you have 2.3.2)
06:23:41ALERTSMAPI Stardew Valley Expanded 1.14.17: https://www.nexusmods.com/stardewvalley/mods/3753 (you have 1.14.16
I updated to the new version of SVE 1.17 and it worked, without freezing
It's probably my version that was bugged in some file because it was translated to PT-BR

Thank you very much :D
 

UlyanaLeyana

Planter
I updated to the new version of SVE 1.17 and it worked, without freezing
It's probably my version that was bugged in some file because it was translated to PT-BR

Thank you very much :D
If you replace any files in the mod this is unfortunately not displayed in SMAPI. This error only appeared because of the translation (users have reported this issue here), because I tested on the same version 1.14.16 as yours and everything was fine.
glad to help
 
Last edited:
Top