10282 comments

  1. Pathoschild
    Pathoschild
    • premium
    • 4,049 kudos
    Locked
    Sticky
    Why does macOS detect SMAPI as malware?

    SMAPI does not contain malware; it seems something changed recently with the macOS security restrictions.

    You can follow the updated macOS install guide to fix that. Make sure to follow each step carefully, since it may not work if you skip a step.
  2. Pathoschild
    Pathoschild
    • premium
    • 4,049 kudos
    Locked
    Sticky
    STOP!
    Read this before asking for help or reporting an issue. Common questions are answered here.


    What's new in SMAPI 4.2?
    SMAPI 4.2 has various bug fixes and improvements, an improved translation API, and mod events on the shipping menu.

    See the release highlights and release notes for more info.
    How do I update?
    Just run the new installer, it'll update previous files automatically.
    Is it safe to update?
    There are no expected breaking changes. All mods which work with SMAPI 4.1 should work with 4.2 too.

    Feel free to report issues with SMAPI itself here, but issues with specific mods should be reported on those mods' pages instead.
    I have issues with SMAPI on Android?
    This page is SMAPI for PC (Linux/macOS/Windows) and Steam Deck. This is not the page for SMAPI on Android; see the Android install guide for more info.

    I used Vortex to install or update SMAPI, and it's not working or updating correctly.
    Vortex bypasses the SMAPI installer and often causes issues. Please do not ask for help with SMAPI issues here if you installed or updated it using Vortex.

    You can either:
    Where can I see fixes for common issues?
    See the mod troubleshooting guide!
    My antivirus reports a trojan or deletes SMAPI files?
    SMAPI most likely doesn't have a trojan; see SMAPI files disappear or antivirus complains for info on why your antivirus may be reporting it, how to check if it's safe, and how to install SMAPI when that happens.
    When I launch the game, the console appears temporarily and then exits, or Steam briefly shows "playing"?
    See Game doesn't launch in the troubleshooting guide for help with that.
    How do I ask for help?
    You can often get a faster response by asking the community instead. If you do ask here, upload your SMAPI log and add a link to your message. This has useful info like what versions you have, which mods are installed, what happened in the game, etc. Please do this even if you don't see an error in the log.
  3. beyondrecovery
    beyondrecovery
    • premium
    • 20 kudos
    hello, Pathos! Hope you are well and long time no speak! ^__^ I'm having a weird issue with SMAPI unfortunately. I'm just getting back into modding, and I'm testing a small pack of mods to make sure they're functional for 1.6

    anyway, long story short: SMAPI itself keeps freezing. The game itself is fine. But after the game launches, the SMAPI window will freeze after a short time has passed (as quickly as under 30 seconds). It won't let me scroll up to see anything that's passed, and it won't let me type a command. It may work at first, but if I have to go back a second or third time to type in a new command, it freezes. Sometimes it freezes in the middle of me typing a command. I'm not quite sure what's causing this. It may be a tech issue with my computer but I'm not sure what I should be looking for to figure it out.

    here's a log just in case since I don't know if it's a particular mod causing it: https://smapi.io/log/6a8dcc9b0859456b8e802a103f1d49cd

    EDIT: Ok I thiiiink I may have found the solution (knock on wood). Forcing my discrete graphics card on seems to have done the trick. For whatever reason, my laptop will not do it automatically even after following the instructions on the wiki, but if I do it manually, the freezing issue does indeed stop. 
    1. Aerozotic
      Aerozotic
      • member
      • 0 kudos
      How did you get it to work "forcing my discrete graphics card"?
    2. TheUnknownMutant
      TheUnknownMutant
      • member
      • 27 kudos
      you can find the answer here: https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting

      Run the game on your dedicated graphics card (Windows only)Many computers have two options for running games: integrated graphics (part of the processor) and dedicated graphics (a separate graphics card by NVIDIA or AMD). Stardew Valley should be run on the dedicated graphics, but that's not always the default (especially on laptops). If you're not sure if this applies to your computer, it's safe to just try the instructions below anyway — they just won't do anything if it doesn't apply.

      • From the start menu, search for Graphics Settings and open it.
      • In the window that opens, click "Browse" near the top and choose StardewModdingAPI.exe
         in your game folder (or Stardew Valley.exe if you play without mods).
      • In the app list, click "Options" under StardewModdingAPI (or Stardew Valley if you play without mods).
      • Change the Graphics preference to "High performance".
      • Save.
      • Check whether your issues still happen.
  4. elpias1
    elpias1
    • member
    • 0 kudos
    [SMAPI]SMAPI 4.2.1 与 Stardew Valley 1.6.15 build 24356 在 Microsoft Windows 11 家庭中文版[SMAPI]模组在这里:D:\SteamLibrary\steamapps\common\Stardew Valley\Mods[SMAPI]正在等待游戏启动...[游戏]游戏无法启动:Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException:无法创建图形设备---> PlatformNotSupportedException:MonoGame 需要 ARB_framebuffer_object 或 EXT_framebuffer_object。尝试更新您的图形驱动程序。在 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\Graphics\GraphicsDevice.OpenGL.FramebufferHelper.cs 的 Microsoft.Xna.Framework.GraphicsDevice.FramebufferHelper.Create(GraphicsDevice gd)处:第 32 行在 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\Graphics\GraphicsDevice.OpenGL.cs 的Microsoft.Xna.Framework.Graphics.Graphics.PlatformInitialize()处:第 343 行在 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Graphics\Graphics\Graphics\GraphicsDevice.cs:第 357 行的 Microsoft.Xna.Framework.Graphics.Graphics.Initialize() 处在 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\GraphicsDeviceManager.cs:第 144 行的Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation gdi)在Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice() 的 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\GraphicsDeviceManager.cs:第 115 行--- 内部异常堆栈跟踪---结束在 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\GraphicsDeviceManager.cs:第 123 行的Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice()在 Microsoft.Xna.Framework.Game.DoInitialize() 处 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:第 941 行在 Microsoft.Xna.Framework.Game.Run(GameRunBehavior) 在 D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:第 465 行在 SMAPI\Framework\SCore.cs:第 316 行的StardewModdingAPI.Framework.SCore.RunInteractively()[SMAPI]游戏已结束。按任意键退出。
    1. elpias1
      elpias1
      • member
      • 0 kudos
      请问解决方法
  5. Aerozotic
    Aerozotic
    • member
    • 0 kudos
    I have downloaded SMAPI from 2 different places. I get stuck on the loading screen before the game loads. When SMAPI did load the one time after waiting 10-20ish minutes the game crashed before I could load a save. How do I fix this?
    SMAPI logs: https://smapi.io/log/54cae0aa0e3c4236b27b9689ac0b5e6a
  6. ekoki
    ekoki
    • member
    • 0 kudos
    Hi! I've been playing Stardew Valley with SMAPI for over two years on the same setup. After updating to Stardew Valley 1.6 and SMAPI 4.2.1, I'm experiencing serious issues that never happened before.The game occasionally crashes to desktop with no visible error message from SMAPI, but the entire screen turns bright blue and overly saturated, almost like a broken display color LUT. Windows Event Viewer reports a crash in `coreclr.dll` (exception code `0xc0000005`), and sometimes even `dwm.exe` (the Windows Desktop Window Manager) crashes alongside it.Through testing, I found that the crashes do not happen at random — they occur during **specific mod-driven events**. These aren't mods that previously caused any problems — and the crashes seem to happen inconsistently depending on what’s happening in-game.I suspect these crashes are related to changes in how SMAPI 4.x handles .NET runtime, especially when mods use dynamic actions during events. Maybe something about memory access or UI handling has become less tolerant in .NET 6?I love SMAPI . I just wanted to share this because the new versions seem much more prone to hard crashes during mod event triggers, and it's been making the game hard to enjoy recently.Thanks so much for all your hard work.
    1. TheUnknownMutant
      TheUnknownMutant
      • member
      • 27 kudos
      I have the very same problem. Sadly, I don't get any error messages either, and my game crashes with the entire screen turning black.
  7. awanjiang
    awanjiang
    • member
    • 0 kudos
    [替代纹理] 与和谐补丁的问题:系统类型加载异常:无法从程序集 'AlternativeTextures, Version=7.3.0.0, Culture=neutral, PublicKeyToken=null' 加载类型 'StardewValley.ItemStockInformation',因为值类型不匹配。
       在 System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeMethodHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeMethodType declaringType)
       在 System.Reflection.RuntimeMethodInfo.<get_Signature>g__LazyCreateSignature|24_0()
       在 System.Reflection.RuntimeMethodInfo.get_ReturnType()
       在 HarmonyLib.Patch.GetMethod(MethodBase original)
       在 System.Linq.Enumerable.SelectArrayIterator`2.ToList()
       在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       在 HarmonyLib.PatchSorter.Sort(MethodBase original)
       在 HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
       在 HarmonyLib.PatchProcessor.Patch()
       在 AlternativeTextures.Framework.Patches.Shop Locations.ShopBuilderPatch.Apply(Harmony harmony) 于 C:\Users\Floogen\Documents\GitHub Repos\AlternativeTextures\AlternativeTextures\Framework\Patches\Shop Locations\ShopBuilderPatch.cs 第22行
       在 AlternativeTextures.AlternativeTextures.Entry(IModHelper helper) 于 C:\Users\Floogen\Documents\GitHub Repos\AlternativeTextures\AlternativeTextures\AlternativeTextures.cs 第146行
    [PyTK Lite] 使用 PyTK Lite
    [SpaceCore] 未能应用 'SpaceCore.Patches.SaveGamePatcher' 修补程序;某些功能可能无法正常工作。技术细节:
    System.InvalidOperationException: 无法找到方法 StardewValley.SaveGame.GetSerializer 进行修补。
       在 SpaceCore.Patches.SaveGamePatcher.Apply(Harmony harmony, IMonitor monitor) 中,C:\Users\space\Programming\StardewValley\StardewValleyMods\SpaceCore\Patches\SaveGamePatcher.cs 第 49 行
       在 Spacechase.Shared.Patching.HarmonyPatcher.Apply(Mod mod, IPatcher[] patchers) 中,C:\Users\space\Programming\StardewValley\StardewValleyMods\SpaceSharedPatching\HarmonyPatcher.cs 第 21 行
  8. torustinkie
    torustinkie
    • member
    • 0 kudos
    hi, my game keeps crashing :( https://smapi.io/log/2fca99b6a59646598c915cc016383547 is there any explanation anyone can think of?
  9. jinsiyv
    jinsiyv
    • member
    • 0 kudos
    [SMAPI]    Skipped mods
    [SMAPI]    --------------------------------------------------
    [SMAPI]       These mods could not be added to your game.
    [SMAPI]       - SMAPI 4.2.1 installer because the SMAPI installer isn't a mod (you can delete this folder after running the installer file).
  10. ZYL15911695094
    ZYL15911695094
    • member
    • 0 kudos
    只要使用SMAPI加载游戏就会出现[游戏]加载项目 (H) 的纹理 Characters\Farmer\hats 失败11。
    InvalidCastException:无法将类型为“System.Collections.Generic.Dictionary'2[System.Int32,System.String]”的对象强制转换为类型“Microsoft.Xna.Framework.Graphics.Texture2D”
    随后进入游戏所有帽子都不能正常显示,我尝试不用SMAPI进入游戏就是正常的,也尝试过把所有使用的MOD文件删除了,发现只要用SMAPI启动游戏就会出现这个情况,麻烦问下这要如何解决,谢谢~
  11. G0TH1KX
    G0TH1KX
    • member
    • 0 kudos
    im a bit confused, smapi was working fine for me yesterday, but now it keeps saying it cant find or load files, specifically seeming to be Mono.Cecil and 0Harmony, alongside maybe a few others? ive been searching and cant seem to find an answer on what to do anywhere, can anyone help?? im on windows and it wont even launch the game. just says game has ended.
  12. Michaelsaz2008
    Michaelsaz2008
    • member
    • 0 kudos
    I try get smapi install but it say it malware even if I Have allowed terminal to do so 
    1. Michaelsaz2008
      Michaelsaz2008
      • member
      • 0 kudos
      sorry for post this 3 times something is wrong with my os because I only post this onces
    2. Michaelsaz2008
      Michaelsaz2008
      • member
      • 0 kudos
      I manage to fix the issue that smapi is not loading