Jump to content
Sign in to follow this  
FiftyTifty

Ubuntu server - How to install DMT?

Recommended Posts

I've created a mod using DMT's Harmony library, that disables sleepers from respawning. It loads and works fine on my Windows 7 PC, both the client and the dedicated server.

 

However, that isn't the case for my Ubuntu server. I added the 0Harmony.dll, mods.dll, and DMT.dll files to the 7DaysToDieServer_Data\Managed folder, and copied my Mods folder over to the 7 Days To Die root folder. But the server does not load the added .dll files.

 

How do I properly install DMT for an Ubuntu server?

Share this post


Link to post
Share on other sites

Not even sure what DMT is, but based on the given info, this is what I found...

 

https://steamdb.info/app/648890/subs/

https://7d2dmods.github.io/HarmonyDocs/index.htm?DMTsHarmonyImplementation.html

 

It requires .NET 3.5 framework, and may not be compatible with Linux.

You can try the below to install the framework.

https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current

Share this post


Link to post
Share on other sites

Yeah, you would probably have to use Wine for the framework, and that's going to be really screwy working with the server.

 

Most likely it's not going to be compatible with Linux. Which is one of the primary reasons I've stayed away from these types of mods.

Share this post


Link to post
Share on other sites

Harmony, which DMT uses, is wholly compatible with both Linux and Windows. So it's really an issue of there being no instructions for installing DMT on Ubuntu.

Share this post


Link to post
Share on other sites

Harmony might be, but DMT isn't.

DMT is designed with .NET framework support as a requirement. And .NET isn't exactly compatible with Linux.

 

You might be able to run .NET in Linux using Wine, but that's only emulation, and may not sync at all with the dedicated server. Then you're going to have to end up running the Windows dedi on Wine, and by this point overhead cost is going to be so bad that you may as well just being using Windows.

Share this post


Link to post
Share on other sites

That's a grave misunderstanding. WINE is not emulating Windows; it's not a VM, but an open source implementation of Windows' various API calls. In terms of performance, WINE is actually faster than Windows when it comes to processing power. It's only in games where WINE wraps the calls to OpenGL that performance drops, as OpenGL is piss-awful at processing draw calls.

 

Currently trying to get playonlinux to work, but Linux is a complete nightmare and nothing is working as it should.

Share this post


Link to post
Share on other sites
Yep, it works just fine when run through WINE.

 

Are you running the Windows version of the dedi server in WINE, or just the MOD? Can you give more details on how you got this to work?

Share this post


Link to post
Share on other sites
Are you running the Windows version of the dedi server in WINE, or just the MOD? Can you give more details on how you got this to work?

 

I ran the Windows version of the dedicated server from WINE, yes. It was simply just uploading the dedicated server on my computer to my Ubuntu server, then using the command winefile to launch the bat file.

 

However, I found the source of the problem. You need to copy over not just 0Harmony.dll, Mods.dll, and DMT.dll, but also Assembly-CSharp.dll and Assembly-UnityScript.dll. Once I did that, the native Ubuntu server software for 7Days ran fine, though the log will output an error about some Windows forms. It doesn't halt execution nor harm anything, and you can connect just fine to the server.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...