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

DMT Modding Tool

Status
Not open for further replies.
Are we supposed to have to reset game files every time we want to rebuild?
Bc I can't ever seem to rebuild. I always get the error
When DMT first runs, it creates a backup folder, with the DLL in it. Each time you re-run the tool, it reads from this backup folder, and not your target folder. If the back up folder does not exist, it makes a copy of the target's folders DLL.

I'm guessing that something is happening to your back up, which is either getting removed, or an already-modified DLL is getting there.

 
Is there anything else you need when trying to decompile the dll besides dnspy and the newest net core sdk? A little new and can't seem to figure out how to open the Assembly-CSharp.dll file with dnspy. dnspy does seem to compile by itself but doesn't look like the other dnspy i have seen in videos, meaning all it says on the top is dnspy and not dnspy v6.0.5. and whenever I drag and drop Assembly-CSharp.dll file into dnspy after it doesn't open the file.

 
Last edited by a moderator:
Is there anything else you need when trying to decompile the dll besides dnspy and the newest net core sdk? A little new and can't seem to figure out how to open the Assembly-CSharp.dll file with dnspy. dnspy does seem to compile by itself but doesn't look like the other dnspy i have seen in videos, meaning all it says on the top is dnspy and not dnspy v6.0.5. and whenever I drag and drop Assembly-CSharp.dll file into dnspy after it doesn't open the file.
Are you compiling from the repo? If you're in debug mode then drag and drop events don't fire through visual studio. Just download the dnSpy release from the GitHub page (or click the open icon and choose the dll that way)

 
Are you compiling from the repo? If you're in debug mode then drag and drop events don't fire through visual studio. Just download the dnSpy release from the GitHub page (or click the open icon and choose the dll that way)
I am compiling dnspy from the repo on github. Through VS2019 I cloned https://github.com/0xd4d/dnSpy.git from the dnspy github wiki section. When I run the dnspy repo and try to drag and drop the dll file it doesn't open the file but rather it opens up a folder overview with the dll filke name and a sub folder showing version.

 
can I use the modlets I have in and use this? I have a lot of them and I don't wont to give them up.
You can. DMT Launcher reads from a mod.xml, instead of ModInfo.xml. They won't show up in DMT to copy over unless you have a mod.xml, but you can manually copy them over into your target 7 Days to Die folder and the game will find them.

 
So let me get this correct you don't need the mods folder inside the game folder. I atm have a Mods folder on my desktop and in the game folder but the dmt is set to the desktop one. And it works.

 
So let me get this correct you don't need the mods folder inside the game folder. I atm have a Mods folder on my desktop and in the game folder but the dmt is set to the desktop one. And it works.
It depends on what kind of DMT mods you are applying. However, in most cases, the DMT mods will have to have an entry in the mods folder.

In addition to copying over the DMT mods' files into the Mods folder, it also modifies Assembly-CSharp.dll, and adds 0-Harmony.dll and DMT.dll. Once you've built DMT against a target, then you don't need to rebuild again unless the target changes, or you want to add more DMT mods.

 
Is there any definite compatibility with newly released A18 versions? Last update for DMT was a few weeks ago, and A18.2 was released yesterday. I imagine it wouldn't be, since the dll code gets changed even if a particular class wasn't modified by the devs.

 
Is there any definite compatibility with newly released A18 versions? Last update for DMT was a few weeks ago, and A18.2 was released yesterday. I imagine it wouldn't be, since the dll code gets changed even if a particular class wasn't modified by the devs.
There's a pretty easy way to find out: try it.

The hooks for DMT are pretty small and low level. There's a chance that it will break but it's unlikely. And if after 24 hours of release no one else has posted it's likely to be ok. Mods are more likely to break from version to version but the framework is usually stable, at least during major builds (A16.x, A17.x etc).

Cheers,

Hal

 
I keep getting the error on the image, and google could not help me.

Snippet.jpg

I tried reinstalling .NET Framework, building with a single mod, building with no mods, running the debugger; nothing works.

Am I missing something? My settings are correct AFAIK.

 
I keep getting the error on the image, and google could not help me.
View attachment 30842

I tried reinstalling .NET Framework, building with a single mod, building with no mods, running the debugger; nothing works.

Am I missing something? My settings are correct AFAIK.
That's a pretty old Alpha; I'm not sure if its been tested back that far. You may have better luck with the SDX Launcher.

 
There's a pretty easy way to find out: try it.
The hooks for DMT are pretty small and low level. There's a chance that it will break but it's unlikely. And if after 24 hours of release no one else has posted it's likely to be ok. Mods are more likely to break from version to version but the framework is usually stable, at least during major builds (A16.x, A17.x etc).

Cheers,

Hal
Aye fair enough, was just asking as it's downloading the now, and I've got to update the hooks for my mods. I'll gi'es it a go in a day or so once I've updated everything, and can give it a whirl.

 
Hi HAL, thank you so much for making this tool. I am getting a console error in-game on start-up which prevents me from interacting with the game (outside of the main menu). The error is:

Error registering commands

FileNotFoundException: Could not load file or assembly 'Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=[idk if this value is confidential but can post if needed] or one of its dependencies

I have tried verifying the game files, which fixes it, but it is broken once i rebuild with DMT. here's a pic of my mod menu + i have some modlets.

Thanks! DMTViewer_TVPXUvP7WZ.jpg

 
Hi HAL, thank you so much for making this tool. I am getting a console error in-game on start-up which prevents me from interacting with the game (outside of the main menu). The error is:
Error registering commands

FileNotFoundException: Could not load file or assembly 'Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=[idk if this value is confidential but can post if needed] or one of its dependencies

I have tried verifying the game files, which fixes it, but it is broken once i rebuild with DMT. here's a pic of my mod menu + i have some modlets.

Thanks! View attachment 30865
Hi 7DaysToTry,

It's hard to tell from that screenshot (forum pics get their size reduced, it's usually better to put it on a image sharing site and post the link) but it sounds like one of your mods is referencing Cecil. Have a look in the Scripts folder for your mods and in each file at the top you'll see something like

Code:
using System.Collections.Generic;
using UnityEngine;
See if one has

Code:
using Mono.Cecil;
And remove it (mod scripts shouldn't need to reference Cecil)

Or you can put the Mono.Cecil.dll file into your games Managed folder (the same place Assembly-CSharp.dll lives). So the game can load it. You can find Mono.Cecil.dll in the DMT folder.

Cheers,

Hal

 
That's a pretty old Alpha; I'm not sure if its been tested back that far. You may have better luck with the SDX Launcher.
I'm having the same issue he is.. What do you mean by a pretty old Alpha? I have the latest 7d2d installed, downloaded DMT yesterday...

 
In A18.2 it seems they merged Localization.txt and Localization - Quest.txt together. DMT will fail when applying the localization patch for the first time with 18.2 as it is now missing this file in the Config. I've just added a dummy file to fix this for now but wanted to let you guys know :)

 
Hi,

Same problem as mdf25 (

Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\N4TH\Downloads\DMTv1.0\DMT/Backups/SP/18.2b5/Config/Localization - Quest.txt'.)

I tried to create an empty Localization - Quest.txt and it now compiles. However, the game is "loading game data..." for ever !

I just installed the tool and would like to make sure it is working.

- is the dummy Localization - Quest.txt empty, or should it contain some header ?

- Do I need to put the mods I am compiling into the mod folder of the game ?

Thank you

 
Last edited by a moderator:
Hi,
Same problem as mdf25 (

Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\N4TH\Downloads\DMTv1.0\DMT/Backups/SP/18.2b5/Config/Localization - Quest.txt'.)

I tried to create an empty Localization - Quest.txt and it now compiles. However, the game is "loading game data..." for ever !

I just installed the tool and would like to make sure it is working.

- is the dummy Localization - Quest.txt empty, or should it contain some header ?

- Do I need to put the mods I am compiling into the mod folder of the game ?

Thank you
Just remove all references to Localization - Quests.txt that you can find.

 
Status
Not open for further replies.
Back
Top