• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Mods with .dlls not loading on Linux

XDM

New member
im trying to get a mod working (Ramos_MenuMusic) on linux native version of 7d2d and just dragging and dropping is not enough for this mod. it has a dll in it and that just not working on linux. i know sometimes these kinda mods can sometimes need a linux launch command or some thing to add onto steam launch parameters to work. is this the case here too?

 
I don't know, I play linux native and had no problems running mods with dlls included for years.  If you look into your game directory you will notice dozens of dlls in 7DaysToDie_Data/Managed/ already working flawlessly and the modders use harmony to add their dlls. Generally it should work

Now I guess that specific mod uses some calls to the OS that are windows-specific and that might make this fail. In that case and since you use steam you could just set up steam to start the non-native version with proton and likely that would interpret the windows-specific calls correctly. Hopefully the mod just uses some windows-specific sound library calls and not something that hacks your PC

 
Last edited by a moderator:
I don't know, I play linux native and had no problems running mods with dlls included for years.  If you look into your game directory you will notice dozens of dlls in 7DaysToDie_Data/Managed/ already working flawlessly and the modders use harmony to add their dlls. Generally it should work

Now I guess that specific mod uses some calls to the OS that are windows-specific and that might make this fail. In that case and since you use steam you could just set up steam to start the non-native version with proton and likely that would interpret the windows-specific calls correctly. Hopefully the mod just uses some windows-specific sound library calls and not something that hacks your PC
if you have the time and dont mind can you check if this mod works for you?
 

 
Sorry, I don't want to install dll mods without some level of trust to the mod author. Someone else here may be less chicken than me.

Though I have a further suggestion:  The dlls in vanilla are .net libraries AFAIK and probably can be used on native linux because of the .net implementation Mono. Maybe the mod uses c/c++ libraries and that is why it isn't working. You could start a shell and try "ldd xxx.dll". On a typical .net library ldd tells me:

mscorlib.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows, 3 sections




If the library in your mod does not say anything about .Net then that would be the case. Again, using proton might help.

You could also look into one of your logfiles, located in 7DaysToDieServer_Data and called "output_log_[date]...". Search for lines with the string "[MODS]" in it. A couple of lines should be about loading your mod and maybe there is an error message. Post that error message, it will contain clues to the problem.

 
Last edited by a moderator:
I'll have a look at the game's log and see if this pops up at all in there, but Steam nor the game is complaining with red output, which usually indicates an error with a mod. Normally, if there's a bad or incorrectly installed mod, the game will be halted with a red text screen, which I didn't get here.

 
All the shader errors do not get red output, and this failure to load a library is not even saying whether it is an error or warning:

Code:
Fallback handler could not load library /home/days/server.1.0.vanilla10/7DaysToDieServer_Data/MonoBleedingEdge/x86_64/data-0x559992333ee0.so
 
these are dot net dlls, you can view the code through dnSpy and verify its not shady.

This is also a way you can check dependencies, edit a method and it wont compile unless you have a refference needed, you can then search the method name and copy the file from a TRUSTED MICROSOFT SOURCE.

do not download shady dlls from random websites.

 
Back
Top