Error on loading content file on game launch on macOS
8of opened this issue ยท 4 comments
Describe the bug
Freshly installed SMAPI tries to find files in the wrong folder for Steam version on macOS.
To Reproduce
- Install fresh Stardew Valley 1.4.5 (latest) on Steam
- Launch game once (check if launches fine)
- Install SMAPI 3.2 via
install on Mac.command
(check if no errors present) - Do not install any mods
- Launch game from Steam
- Error occurs.
Terminal output on launch
...
[SMAPI] Starting game...
[SMAPI] Loaded 2 mods:
[SMAPI] Console Commands 3.2.0 by SMAPI | Adds SMAPI console commands that let you manipulate the game.
[SMAPI] Save Backup 3.2.0 by SMAPI | Automatically backs up all your saves once per day into its folder.
[game] The game failed to launch: Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found. ---> System.IO.FileNotFoundException: Content/Data/CraftingRecipes.xnb ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/mega/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS/Content/Data/CraftingRecipes.xnb".
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x10a06bc80 + 0x0022f> in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x10cb3abf0 + 0x00053> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) <0x10cb3aac0 + 0x0004a> in <filename unknown>:0
at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream (System.String safeName) <0x11472c6d0 + 0x00035> in <filename unknown>:0
at Microsoft.Xna.Framework.TitleContainer.OpenStream (System.String name) <0x114684310 + 0x0008c> in <filename unknown>:0
at Microsoft.Xna.Framework.TitleContainer.OpenStream (System.String name) <0x114684310 + 0x00136> in <filename unknown>:0
at Microsoft.Xna.Framework.Content.ContentManager.OpenStream (System.String assetName) <0x115511cc0 + 0x000bc> in <filename unknown>:0
--- End of inner exception stack trace ---
Workaround
- Open Terminal
- Go to folder
cd ~/Library/Application\ Support/Steam/steamapps/common/Stardew\ Valley/Contents/MacOS
- Create symlink
ln -s ~/Library/Application\ Support/Steam/steamapps/common/Stardew\ Valley/Contents/Resources/Content Content
- Now SMAPI launches fine
- Mods are also work fine
Related issues
Probably #278, also files are different.
Can you upload your SMAPI log (see instructions on that page) and post a link here?
@Pathoschild sure thing
- Link with log: https://smapi.io/log/87aabd7c15fa452c999e355fa156bc7d
- Can reproduce it in SMAPI 3.3.2 as well
- Workaround from first post works as well
@Pathoschild The problem is still exists in SMAPI 3.3.2. Should we reopen the issue?
@8of Sorry for the slow response! It seems to be a support issue (which aren't tracked on GitHub), since SMAPI works fine for other MacOS players. Can you come ask in #using-mods on Discord so we can look into why that's happening for you? If it's confirmed as a SMAPI bug we can open a specific ticket for it.