SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Cannot find libgdiplus when brew is used to install mono on Mac

h4xnoodle opened this issue ยท 3 comments

commented

I'm a new user to SMAPI, and attempting to install and use my first content patch mods.

I already had mono installed via brew, and so I was hoping it would work without needing to install the package. Unfortunately, after attempting all the efforts in #414 and elsewhere, it seems like mono with brew doesn't really cut it.

Describe the bug
Installing SMAPI & attempting to use a mod results in assembly/libs not found if mono is installed with brew on Mojave. Installing the framework package from openmono.com and reinstalling SMAPI resolves all issues.

To Reproduce
Exact steps which reproduce the bug, if possible. For example:

  1. brew install mono
  2. sh "install on Mac.command"
  3. unzip/mv <mods> that use libgdiplus
  4. Launch game
Mod crashed on entry and might not work correctly. Technical details: StardewModdingAPI.Framework.Exceptions.SContentLoadException: Failed loading content asset 'Buildings/house.png': couldn't find libgdiplus, which is needed to load mod images. Make sure Mono is installed and you're running the game through the normal launcher.
--
...

I attempted removing files and symlinking myself as per #414 and more random forum posts. The only thing that worked for me was installing the package instead of from brew.

Workaround

  1. brew uninstall mono
  2. Download mono framework install pkg from site linked in here https://stardewvalleywiki.com/Modding:Player_Guide/Getting_Started
  3. Reload terminal session, sh "install on Mac.command" and install SMAPI again
  4. Launch game from Steam

Mods work fine.

Log file
N/A

I see the other issues are closed about this: #344, #277, #414 so I'm mostly drawing attention to the work around for anyone who gets just as stuck and don't want to go down the rabbit hole others did when there is a simple work-around.

commented

Thanks! I'll close this since no SMAPI changes are needed, but it'll appear in search results if others have the same issue.

commented
commented

Thank you @h4xnoodle, this workaround saved me today. Only issue was to find the Mono framework on the wiki page, so I downloaded directly from https://www.mono-project.com/download/stable/