Issue Game doesn't start

dionya

Cowpoke
Hi. Recently, after a long break, I decided to re-download Stardew Valley. Installed the game, downloaded the mods, put them in a folder and run them through smapi. The first time I was able to go in and play a little bit, but the controls were weird and the pause menu wouldn't open. I decided to restart the game. Launching via smapi and about to play, I clicked on the started game, but I was thrown back to the start menu. Decided to look in smapi, and there's something like this:

[game] Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found.
---> FileNotFoundException: Could not find file 'C:\GOG Games\Stardew Valley\Content\Maps\WizardHouseBasement.xnb'.
File name: 'C:\GOG Games\Stardew Valley\Content\Maps\WizardHouseBasement.xnb'
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor_PatchedBy<Platonymous.PyTK>(FileStream this, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream(String safeName) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\TitleContainer.Desktop.cs:line 29
at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 37
at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 276
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 289
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 319
at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 255
at StardewModdingAPI.Framework.ContentManagers.GameContentManager.<>c__DisplayClass6_0`1.<LoadExact>b__0() in SMAPI\Framework\ContentManagers\GameContentManager.cs:line 141
at StardewModdingAPI.Framework.Utilities.ContextHash`1.Track[TResult](T key, Func`1 action) in SMAPI\Framework\Utilities\ContextHash.cs:line 53
at StardewModdingAPI.Framework.ContentManagers.GameContentManager.LoadExact[T](IAssetName assetName, Boolean useCache)
at StardewModdingAPI.Framework.ContentManagers.BaseContentManager.LoadLocalized[T](IAssetName assetName, LanguageCode language, Boolean useCache) in SMAPI\Framework\ContentManagers\BaseContentManager.cs:line 188
at StardewModdingAPI.Framework.ContentManagers.BaseContentManager.Load[T](String assetName, LanguageCode language) in SMAPI\Framework\ContentManagers\BaseContentManager.cs:line 143
at StardewValley.GameLocation.loadMap(String mapPath, Boolean force_reload) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 1625
at StardewValley.GameLocation.reloadMap() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 1816
at StardewValley.GameLocation..ctor_PatchedBy<Platonymous.PyTK>(GameLocation this, String mapPath, String name)
at StardewValley.Game1.loadForNewGame_PatchedBy<SMAPI>(Boolean loadedGame)
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)
[SMAPI] An error occurred in the overridden update loop: Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found.
---> FileNotFoundException: Could not find file 'C:\GOG Games\Stardew Valley\Content\Maps\WizardHouseBasement.xnb'.
File name: 'C:\GOG Games\Stardew Valley\Content\Maps\WizardHouseBasement.xnb'
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor_PatchedBy<Platonymous.PyTK>(FileStream this, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream(String safeName) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\TitleContainer.Desktop.cs:line 29
at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 37
at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 276
--- End of inner exception stack trace ---
at StardewValley.SaveGame.getLoadEnumerator(String file)+MoveNext() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\SaveGame.cs:line 1578
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 701

The problem seems to be in the file 'WizardHouseBasement.xnb', but I looked it up, but there is no such file! I don't know what to do and really hope for your help (I apologize if this is some kind of trivial problem. I just don't know about it all)
smapi log, if it can help: https://smapi.io/log/2e1deea69c2d40e1bd6eb5f5500a7e81
 
Thanks for the log, The error is due to an old mod adding a new location to your save.

I can't 100% confirm the original mod, but it looks like one contender could be, Siv's Marriage mod:

It's pretty old, and not likely to work anymore though.
If you'd like to attempt to continue on that save. Upload your save, and I can delete that section for you.

How to find your saves:
 

dionya

Cowpoke
Thanks for the log, The error is due to an old mod adding a new location to your save.

I can't 100% confirm the original mod, but it looks like one contender could be, Siv's Marriage mod:

It's pretty old, and not likely to work anymore though.
If you'd like to attempt to continue on that save. Upload your save, and I can delete that section for you.

How to find your saves:
Thanks for your help! Should I send the save here or to you in a private message?
 
Thanks for your help! Should I send the save here or to you in a private message?
Either way is fine.
Though here it's easier since there's an 'attach files' button on the comment section.
In a PM you'd have to upload it somewhere externally, and link it to me.
 
Okay! Here's my save:
Thanks for the save. I was checking, and it loaded okay; and I realized I was being dumb.

Sorry, I messed up. That file appears to be a vanilla game file after all.
Not sure why it's not showing up though. Were you using any XNB mods by any chance?
As that could potentially cause issues.

You'll want to reset your files, or reinstall again:

After doing so; you may want to test that your unmodded Stardew runs okay.
Then try again with mods.
 
hey! im having issues with the game not opening up and I have no clue what to do- help?
but i know i have to give a log so here !

19:23:58INFOSMAPISMAPI 3.18.2 with Stardew Valley 1.5.6 (build 22018) on Microsoft Windows 11 Pro
19:23:58INFOSMAPIMods go here: C:\XboxGames\Stardew Valley\Content\Mods
19:23:58TRACESMAPILog started at 2023-02-24T01:23:58 UTC
19:24:02DEBUGSMAPIWaiting for game to launch...
19:24:02TRACEgameNoFpsCap: This feature is not available
19:24:02ERRORgameGame.Initialize() caught exception initializing XACT: FileNotFoundException: Content\XACT\FarmerSounds.xgs ---> DirectoryNotFoundException: Could not find a part of the path 'C:\XboxGames\Stardew Valley\Content\Content\XACT\FarmerSounds.xgs'. at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream(String safeName) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\TitleContainer.Desktop.cs:line 29 at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 37 at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 58 at Microsoft.Xna.Framework.Audio.AudioEngine.OpenStream(String filePath, Boolean useMemoryStream) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Audio\Xact\AudioEngine.cs:line 61 at Microsoft.Xna.Framework.Audio.AudioEngine..ctor(String settingsFile, TimeSpan lookAheadTime, String rendererId) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Audio\Xact\AudioEngine.cs:line 87 at StardewValley.Game1.Initialize() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 1821
19:24:02DEBUGSMAPILoading mod metadata...
19:24:02DEBUGSMAPILoading mods...
19:24:02TRACESMAPI Content (from Mods\Content)...
19:24:02TRACESMAPI Failed: it contains files, but none of them are manifest.json.
19:24:02TRACESMAPI Console Commands (from Mods\ConsoleCommands\ConsoleCommands.dll)...
19:24:03TRACESMAPI Error Handler (from Mods\ErrorHandler\ErrorHandler.dll)...
19:24:03TRACESMAPI Detected game patcher in assembly ErrorHandler.dll.
19:24:03TRACESMAPI Save Backup (from Mods\SaveBackup\SaveBackup.dll)...
19:24:03INFOSMAPILoaded 3 mods: This section is hidden. Click here to show it.
19:24:03INFOSMAPIFound 1 mod with warnings:
19:24:03ERRORSMAPI Skipped mods
19:24:03ERRORSMAPI --------------------------------------------------
19:24:03ERRORSMAPI These mods could not be added to your game.
19:24:03ERRORSMAPI - Content because it contains files, but none of them are manifest.json.
19:24:03DEBUGSMAPILaunching mods...
19:24:03DEBUGSMAPIMods loaded and ready!
19:24:03TRACESMAPIChecking for known software conflicts...
19:24:03TRACESave BackupAlready backed up today.
19:24:03TRACESMAPI None found!
19:24:03TRACESMAPIChecking for updates...
19:24:03ERRORgameThe game failed to launch: Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found. ---> FileNotFoundException: Content\Data/CraftingRecipes.xnb ---> DirectoryNotFoundException: Could not find a part of the path 'C:\XboxGames\Stardew Valley\Content\Content\Data\CraftingRecipes.xnb'. at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream(String safeName) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\TitleContainer.Desktop.cs:line 29 at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 37 at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 58 at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 276 --- End of inner exception stack trace --- at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 289 at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 319 at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Content\ContentManager.cs:line 255 at StardewModdingAPI.Framework.ContentManagers.GameContentManager.<>c__DisplayClass6_0`1.<LoadExact>b__0() in SMAPI\Framework\ContentManagers\GameContentManager.cs:line 141 at StardewModdingAPI.Framework.Utilities.ContextHash`1.Track[TResult](T key, Func`1 action) in SMAPI\Framework\Utilities\ContextHash.cs:line 53 at StardewModdingAPI.Framework.ContentManagers.GameContentManager.LoadExact[T](IAssetName assetName, Boolean useCache) at StardewModdingAPI.Framework.ContentManagers.BaseContentManager.LoadLocalized[T](IAssetName assetName, LanguageCode language, Boolean useCache) in SMAPI\Framework\ContentManagers\BaseContentManager.cs:line 152 at StardewModdingAPI.Framework.ContentManagers.BaseContentManager.Load[T](String assetName, LanguageCode language) in SMAPI\Framework\ContentManagers\BaseContentManager.cs:line 143 at StardewValley.CraftingRecipe.InitShared() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\CraftingRecipe.cs:line 33 at StardewValley.Game1.LoadContent() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 2882 at StardewModdingAPI.Framework.SGame.LoadContent() in SMAPI\Framework\SGame.cs:line 144 at StardewValley.GameRunner.LoadContent() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 939 at StardewValley.GameRunner.Initialize() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 774 at Microsoft.Xna.Framework.Game.DoInitialize() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 841 at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 465 at StardewModdingAPI.Framework.SCore.RunInteractively() in SMAPI\Framework\SCore.cs:line 306
19:24:03INFOSMAPIGame has ended. Press any key to exit.
19:24:03TRACESMAPI SMAPI okay.
19:24:03TRACESMAPI Checking for updates to 0 mods...
19:24:04TRACESMAPI All mods up to date.
 
hey! im having issues with the game not opening up and I have no clue what to do- help?
but i know i have to give a log so here !
Thanks, I can see some "File Not Found" errors for some of the vanilla game files.

First, I'd make sure you're not using any XNB mods.

Secondly, we'd usually verify game files like so: https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting#Reset_your_content_files
But, the instructions are currently only for Steam/GOG.

Assuming the screenshots for the Xbox app are still the same as the ones here:

Go into that Step 3; and instead of browsing the files, click "Verify and Repair".
Otherwise; do a clean reinstall of the game.
 

Ixalia_x

Newcomer
Can someone please help? I keep on getting this error whenever I start up the game and I can't hear the sounds at all

[game] Game.Initialize() caught exception initializing XACT:
FileNotFoundException: Could not find file 'D:\Elotia\Stardew.Valley.v1.5.6\Stardew.Valley.v1.5.6\Content\XACT\Wave Bank.xwb'.
File name: 'D:\Elotia\Stardew.Valley.v1.5.6\Stardew.Valley.v1.5.6\Content\XACT\Wave Bank.xwb'
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream(String safeName) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\TitleContainer.Desktop.cs:line 29
at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\TitleContainer.cs:line 37
at Microsoft.Xna.Framework.Audio.AudioEngine.OpenStream(String filePath, Boolean useMemoryStream) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Audio\Xact\AudioEngine.cs:line 61
at Microsoft.Xna.Framework.Audio.WaveBank..ctor(AudioEngine audioEngine, String waveBankFilename, Boolean streaming, Int32 offset, Int32 packetsize) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Audio\Xact\WaveBank.cs:line 113
at StardewValley.Game1.Initialize() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 1865
 
Top