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

Skyrim Style Lockpicking MiniGame

It just requires the 0-sphereiicore and my lockpicking mod
Hi @xyth
If I copy 0-sphereiicore and Lock mods to the folder with DMT mods, during the build process I get many errors, from the text of which it appears that all 0-sphereiicore mods are needed for the build (

Code:
Parsing arguments
Running BackupFiles
Backup dll found: D:\Games\steamapps\common\7 Days To Die DMT\DMT/Backups/SP/19.4b7/Assembly-CSharp.dll
Running DeployDlls
Deploying DLLs
Running LocalisationPatch
Localisation no longer handled in DMT after A17
Running InitialPatchTask
Compiling Roslyn Scripts assembly for InitialPatch...
Built patch file in 0ms
PatchMods compile successful
Found patcher mods: 3



Hooking harmony
Hooking console commands
Running CreateModDll
Compiling Mods.dll...
Compiling Roslyn Scripts assembly for InitialPatch...
Built in 0ms
Mods.dll compile successful

Parsing arguments
Running LinkedPatchTask
Built patch file in 0ms
PatchMods compile successful
Found patcher mods: 3
Link patching 3 files

Parsing arguments
Running FinalPatchTask
Built patch file in 0ms
PatchMods compile successful
Found patcher mods: 3
Final patching 3 files
Running CreateHarmonyDlls
Compiling Harmony mod for 0-SphereIICore...
Compiling Roslyn Scripts assembly for FinalPatch...
warning CS1701: Assuming assembly reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' used by 'UnityEngine.CoreModule' matches identity 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' of 'mscorlib', you may need to supply runtime policy
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\XML\ModInfo.cs(31,33): warning CS0168: The variable 'e' is declared but never used
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\Blocks\BlockSecureLoot.cs(66,13): warning CS0162: Unreachable code detected
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(75,22): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(75,51): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(76,22): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(76,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(62,28): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(63,28): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(89,34): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(90,34): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(128,87): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(191,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(192,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(195,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(273,162): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
process exited with error code -1
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(276,132): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(283,52): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(286,91): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(290,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(291,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(294,77): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(338,60): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
Failed to compile Harmony dll Harmony-0-SphereIICore.dll
Build failed
 
Last edited by a moderator:
I want to make review video this mod on my Youtube channel, and at the same time talk about DMT, but I can't install it (

 
Got it working on a dedi server for 9 others a few days ago and works fine in multiplayer, we all really like what you done with it good work. Hope it gets more features in  a20. 1 Minor gripe would be changing from arrow keys to a and d.

 
Hi @xyth
If I copy 0-sphereiicore and Lock mods to the folder with DMT mods, during the build process I get many errors, from the text of which it appears that all 0-sphereiicore mods are needed for the build (

Parsing arguments
Running BackupFiles
Backup dll found: D:\Games\steamapps\common\7 Days To Die DMT\DMT/Backups/SP/19.4b7/Assembly-CSharp.dll
Running DeployDlls
Deploying DLLs
Running LocalisationPatch
Localisation no longer handled in DMT after A17
Running InitialPatchTask
Compiling Roslyn Scripts assembly for InitialPatch...
Built patch file in 0ms
PatchMods compile successful
Found patcher mods: 3



Hooking harmony
Hooking console commands
Running CreateModDll
Compiling Mods.dll...
Compiling Roslyn Scripts assembly for InitialPatch...
Built in 0ms
Mods.dll compile successful

Parsing arguments
Running LinkedPatchTask
Built patch file in 0ms
PatchMods compile successful
Found patcher mods: 3
Link patching 3 files

Parsing arguments
Running FinalPatchTask
Built patch file in 0ms
PatchMods compile successful
Found patcher mods: 3
Final patching 3 files
Running CreateHarmonyDlls
Compiling Harmony mod for 0-SphereIICore...
Compiling Roslyn Scripts assembly for FinalPatch...
warning CS1701: Assuming assembly reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' used by 'UnityEngine.CoreModule' matches identity 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' of 'mscorlib', you may need to supply runtime policy
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\XML\ModInfo.cs(31,33): warning CS0168: The variable 'e' is declared but never used
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\Blocks\BlockSecureLoot.cs(66,13): warning CS0162: Unreachable code detected
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(75,22): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(75,51): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(76,22): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(76,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(62,28): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(63,28): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(89,34): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(90,34): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(128,87): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(191,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(192,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(195,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(273,162): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
process exited with error code -1
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(276,132): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(283,52): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(286,91): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(290,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(291,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(294,77): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(338,60): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
Failed to compile Harmony dll Harmony-0-SphereIICore.dll
Build failed



From the output, it looks like you're not including PatchScripts\FoodSpoilagePatch.cs in the build.

But, I don't know what you mean by this: "it appears that all 0-sphereiicore mods are needed for the build."

0-SphereIICore is one mod. You need to install and build all of it. If you're trying to just pick and choose which files or folders you include, then of course you're going to get errors.

 
From the output, it looks like you're not including PatchScripts\FoodSpoilagePatch.cs in the build.

But, I don't know what you mean by this: "it appears that all 0-sphereiicore mods are needed for the build."

0-SphereIICore is one mod. You need to install and build all of it. If you're trying to just pick and choose which files or folders you include, then of course you're going to get errors.
I am trying to install only a lock picking mod. But apparently, in order to install a mod for hacking with a lock, you need to add other mods, including a mod for spoiling food (

 
Can someone just tell me which folders and files I must to copy from the SphereIICore archive to the DMT Mods folder?

This is what is in the archive
image.png

 
For the lockpicking mod to build with DMT you ONLY need the 0-SphereIICore for it to build and load properly.  Maybe you have an old version of his core.   But you DO NOT need any other mods.   Your doing something wrong, but I'm not sure what.  Video proof below:

https://youtu.be/Z8Gn6cHsFps

 
Last edited by a moderator:
For the lockpicking mod to build with DMT you ONLY need the 0-SphereIICore for it to build and load properly.  Maybe you have an old version of his core.   But you DO NOT need any other mods.   Your doing something wrong, but I'm not sure what.  Video proof below:

https://youtu.be/Z8Gn6cHsFps
I watched your video before reading this message) I am allready subscribed to your channel)
I download the 0-SphereIICore archive from the link provided in the first post of this thread.
Show me what your DMT mod folder looks like, please. Perhaps, in addition to the 0-SphereIICore folder and the Lockpick mod folder, you need to copy other files from the archive to the DMT folder?

 
No other files are needed.  You likely did not setup DMT properly.  You might want to ask for DMT help in that forum.  There is nothing wrong with this mod, or SphereII's Core.  Make sure your using version 19.3.1.14 of the core.

 
Can someone just tell me which folders and files I must to copy from the SphereIICore archive to the DMT Mods folder?

This is what is in the archive
View attachment 19927


I don't know where you got that archive, but it is not a "SphereIICore archive." It looks like an archive of the entire SphereII repository - including all his mods and modlets.

The files inside the "0-SphereIICore" folder - and only those files - are part of the SphereIICore mod.

If building C# code using DMT is too complicated for you (as it is for many people), then I recommend using the Mod Launcher instead: http://7d2dmodlauncher.org/

You should be able to get both SphereII's Core mod and Xyth's lockpicking modlet directly through the Mod Launcher, and it will build any DMT or SDX mods/modlets automatically:

http://7d2dmodlauncher.org/HowToInstallMods.html

http://7d2dmodlauncher.org/ManagingModlets.html

 
I don't know where you got that archive, but it is not a "SphereIICore archive." It looks like an archive of the entire SphereII repository - including all his mods and modlets.

The files inside the "0-SphereIICore" folder - and only those files - are part of the SphereIICore mod.

If building C# code using DMT is too complicated for you (as it is for many people), then I recommend using the Mod Launcher instead: http://7d2dmodlauncher.org/

You should be able to get both SphereII's Core mod and Xyth's lockpicking modlet directly through the Mod Launcher, and it will build any DMT or SDX mods/modlets automatically:

http://7d2dmodlauncher.org/HowToInstallMods.html

http://7d2dmodlauncher.org/ManagingModlets.html
What does C# code coding have to do with installing a pre-made mod using DMT?
Mods are created so that people who do not know how to program can easily change their game.

I am interested in figuring out why this does not work for me in the case of DMT.

Moreover, the lock picking mod works only with DMT, as far as I know.

 
Survager said:
What does C# code coding have to do with installing a pre-made mod using DMT?

[...]

Moreover, the lock picking mod works only with DMT, as far as I know.


I'm going to assume that you don't know what DMT does.

The DMT mods that you download (like, say, SphereIICore) contain C# code that is structured in a way that the DMT tool can recognize. DMT then compiles that C# code, creates binary .dll files, and modifies the game's own .dll files to load them.

I am leaving out a lot of details, but that's the general idea. If you want to learn more, here's a good overview of DMT (including SDX and Harmony patching), written by SphereII:

https://7d2dmods.github.io/HarmonyDocs/

And here is the thread that you want if you are having trouble installing mods with DMT:

https://community.7daystodie.com/topic/13037-dmt-modding-tool/

Also: the lockpicking mod does not depend upon DMT. It depends upon SphereIICore. It is SphereIICore that must be compiled with DMT.

And, yes, you should compile all of the C# code inside the SphereIICore mod, even the code that is not directly relevant to lockpicking. That's how it is designed. It might be possible to isolate just the C# code that deals with lockpicking, but it wouldn't be easy. I am a C# programmer by trade, and I wouldn't want to do it.

 
Last edited by a moderator:
It turned out that, in general, DMT does not want to compile the SphereIICore mod for me, and it is not clear for what reason. Either my antivirus is blocking something, or something else ((( I had to stop using DMT (

 
I'm going to assume that you don't know what DMT does.

The DMT mods that you download (like, say, SphereIICore) contain C# code that is structured in a way that the DMT tool can recognize. DMT then compiles that C# code, creates binary .dll files, and modifies the game's own .dll files to load them.

I am leaving out a lot of details, but that's the general idea. If you want to learn more, here's a good overview of DMT (including SDX and Harmony patching), written by SphereII:

https://7d2dmods.github.io/HarmonyDocs/

And here is the thread that you want if you are having trouble installing mods with DMT:

https://community.7daystodie.com/topic/13037-dmt-modding-tool/

Also: the lockpicking mod does not depend upon DMT. It depends upon SphereIICore. It is SphereIICore that must be compiled with DMT.

And, yes, you should compile all of the C# code inside the SphereIICore mod, even the code that is not directly relevant to lockpicking. That's how it is designed. It might be possible to isolate just the C# code that deals with lockpicking, but it wouldn't be easy. I am a C# programmer by trade, and I wouldn't want to do it.


Someone earlier in this thread said they had this mod working for a dedicated server. Does this mod actually work for dedicated servers? It appears to be a mod, not a modlet, and reading through your explanation (compiling and modifying game files) it's still a bit unclear if it would work on a dedicated server. I would test it myself, but I can't. So I'm just going to ask you. Thank you.

 
Someone earlier in this thread said they had this mod working for a dedicated server. Does this mod actually work for dedicated servers? It appears to be a mod, not a modlet, and reading through your explanation (compiling and modifying game files) it's still a bit unclear if it would work on a dedicated server. I would test it myself, but I can't. So I'm just going to ask you. Thank you.


DMT mods will work on dedicated servers, but you will need to compile the mod on both the server and any clients that connect to it.

I'm not a MP guy so I don't really have the details about how to mod a server. It also depends upon how you are able to access the server, e.g. if it's your personal machine, a hosted machine that you can RDP into, or a hosted machine where you can only upload files via FTP or similar.

Anyone who has done a server install of a mod with extra code (like Darkness Falls) should be able to help you out a bit more.

 
DMT mods will work on dedicated servers, but you will need to compile the mod on both the server and any clients that connect to it.

I'm not a MP guy so I don't really have the details about how to mod a server. It also depends upon how you are able to access the server, e.g. if it's your personal machine, a hosted machine that you can RDP into, or a hosted machine where you can only upload files via FTP or similar.

Anyone who has done a server install of a mod with extra code (like Darkness Falls) should be able to help you out a bit more.


I was wondering if both the clients and server would need the mod -- that makes sense to me. Thank you.

 
I was wondering if both the clients and server would need the mod -- that makes sense to me. Thank you.


Just an FYI, that is also true of anything with custom assets, like new item icons. Servers only push the contents of the Configs directory (since that's all plain text and doesn't consume a lot of bandwidth).

But it's a lot easier to install modlets that don't have custom C# code - you just put the modlet into the Mods directory, no compiling or messing around with the game files.

 
How do I tweak the lockpick difficulty in the core? I looked at the blocks.xml and the .cs files but I can't find my way around towards just making the mod easier.

It seems to be really difficult as is, even with all 3 levels of the lockpicking perk. Lockpicks break instantly instead of wiggling at all, and the placement of the lock is about as specific as Advanced or Master locks are in Skyrim, which makes finding the exact spot take quite some time. I took 22 attempts to open a lock just now when I can open master locks just fine in Skyrim. I've yet to find a lock that is remotely easy.

Would there also be any way to speed up the lockpick cursor movement speed, or make it follow the mouse like it does in Skyrim? The way it is is really slow so it's easy to lose track of where I last found the correct spot in the lock. Trying to use my mouse seems to "rotate" the lockpick instead of actually moving it.

Regardless, this is a very interesting concept of a mod and being able to have this system in a game that didn't have a minigame whatsoever in place is impressive, and the work done here is really nice.

 
Back
Top