Hi @xythIt just requires the 0-sphereiicore and my lockpicking mod
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
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
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 (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 watched your video before reading this message) I am allready subscribed to your channel)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
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
What does C# code coding have to do with installing a pre-made mod using DMT?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
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.
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.
I was wondering if both the clients and server would need the mod -- that makes sense to me. Thank you.