Missing DllNotFoundException SDL2
hyderjake opened this issue ยท 9 comments
SMAPI not running on Ubuntu 16.04, Stardew Valley steam version.
[12:43:16 ERROR SMAPI] SMAPI encountered a fatal error: System.DllNotFoundException: SDL2.dll at (wrapper managed-to-native) Sdl:GetVersion (Sdl/Version&) at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in :0 at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) [0
[12:43:16 ERROR SMAPI] SMAPI encountered a fatal error: System.DllNotFoundException: SDL2.dll at (wrapper managed-to-native) Sdl:GetVersion (Sdl/Version&) at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) [0x00000] in :0
My Linux VM for SMAPI testing runs Ubuntu 16.04, so it should be compatible. Based on some quick research, one possible solution is to make sure libSDL is installed on your machine.
I had libSDL ubuntu libraries installed so I found the windows version and placed it in the Stardew folder, however now there is a missing exception System.Reflection.Assembly.get_DefinedType() which should be in .NET system files, is there some launch command for steam that I need to add to get this to work?
I'm sorry, it is technically working it just isn't loading the mods, I think it was originally working but it was borderless so I didn't see that it was titled the Stardew Modding API, all mods should be compatible I thought, correct? and they work fine under windows. I have dual boot.
Unfortunately most mods are still Windows-only. Official SMAPI support for Linux is very new, so most mods haven't been updated yet. Make sure the mod says it supports Linux or has a Linux/Mono download.
Can you attach your latest error log?
[17:39:32 INFO SMAPI] SMAPI 1.1.1 with Stardew Valley 1.11 on Unix 4.4.0.47
[17:39:32 DEBUG SMAPI] Loading SMAPI...
[17:39:32 DEBUG SMAPI] Loading game...
[17:39:33 DEBUG SMAPI] Loading mods...
[17:39:33 TRACE SMAPI] GetDressed used Manifest.Authour, which is deprecated since SMAPI 1.0. This will break in a future version of SMAPI.
[17:39:33 TRACE SMAPI] GetDressed used Manifest.PerSaveConfigs, which is deprecated since SMAPI 1.0. This will break in a future version of SMAPI.
[17:39:33 ERROR SMAPI] Couldn't load mod for manifest '/home/jacob/.steam/steam/steamapps/common/Stardew Valley/Mods/GetDressed/manifest.json': an error occurred while loading the target DLL.
System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () <0x4075cc10 + 0x00015> in :0
at System.Reflection.Assembly+<>c__Iterator0.MoveNext () <0x4075ca40 + 0x00051> in :0
at System.Linq.Enumerable.Count[TSource](IEnumerable1 source, System.Func
2 predicate) <0x4075c7b0 + 0x000be> in :0
at StardewModdingAPI.Program.LoadMods () <0x40713d40 + 0x00bcb> in :0
[17:39:33 INFO SMAPI] Loaded mod: LookupAnything by Pathoschild, v1.7 | View metadata about anything by pressing a button.
[17:39:33 TRACE LookupAnything] Initialising with lookup keys 0 and F1.
[17:39:33 TRACE SMAPI] NPC Map Locations Mod used Manifest.Authour, which is deprecated since SMAPI 1.0. This will break in a future version of SMAPI.
[17:39:33 ERROR SMAPI] Couldn't load mod for manifest '/home/jacob/.steam/steam/steamapps/common/Stardew Valley/Mods/NPCMapLocations/manifest.json': an error occurred while loading the target DLL.
System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () <0x4075cc10 + 0x00015> in :0
at System.Reflection.Assembly+<>c__Iterator0.MoveNext () <0x4075ca40 + 0x00051> in :0
at System.Linq.Enumerable.Count[TSource](IEnumerable1 source, System.Func
2 predicate) <0x4075c7b0 + 0x000be> in :0
at StardewModdingAPI.Program.LoadMods () <0x40713d40 + 0x00bcb> in :0
[17:39:33 INFO SMAPI] Loaded mod: Trainer Mod by Zoryn, v1.0 | Registers several commands to use. Most commands are trainer-like in that they offer forms of cheating.
[17:39:33 DEBUG SMAPI] Loaded 2 mods.
[17:39:33 DEBUG SMAPI] Starting game...
[17:39:33 DEBUG SMAPI] Starting console...
[17:39:33 INFO SMAPI] Type 'help' for help, or 'help ' for a command's usage
[17:39:37 TRACE LookupAnything] Checking for update... none found.
lookup anything did start working, I must have had to restart it a couple of times