SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Error on loading content file on game launch on macOS

8of opened this issue ยท 4 comments

commented

Describe the bug
Freshly installed SMAPI tries to find files in the wrong folder for Steam version on macOS.

To Reproduce

  1. Install fresh Stardew Valley 1.4.5 (latest) on Steam
  2. Launch game once (check if launches fine)
  3. Install SMAPI 3.2 via install on Mac.command (check if no errors present)
  4. Do not install any mods
  5. Launch game from Steam
  6. 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

  1. Open Terminal
  2. Go to folder cd ~/Library/Application\ Support/Steam/steamapps/common/Stardew\ Valley/Contents/MacOS
  3. Create symlink ln -s ~/Library/Application\ Support/Steam/steamapps/common/Stardew\ Valley/Contents/Resources/Content Content
  4. Now SMAPI launches fine
  5. Mods are also work fine

Related issues
Probably #278, also files are different.

commented

Can you upload your SMAPI log (see instructions on that page) and post a link here?

commented

@Pathoschild sure thing

commented

@Pathoschild The problem is still exists in SMAPI 3.3.2. Should we reopen the issue?

commented

@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.