Which DMT mods are you trying to build? It seems like maybe one of the ModInfo.xml may be mal-formedI extract dmt from zip and that error get when use the "Refresh mods" button.
JinxWhich DMT mods are you trying to build? It seems like maybe one of the ModInfo.xml may be mal-formed
False positives. I use it daily, no problems here.Virustotal.com Showed positives from 12 different antivirus programs on the CSharp Assembly DLL file. Downloaded The dll file from a verified DLL distributing site and had 0 positives. Something here is fishy
Doesn't mean that something couldn't be happening that you don't know about- That's how most half decent viruses work. Regardless, I replaced the fishy CSharp DLL with the clean one and it works fine.False positives. I use it daily, no problems here.
Virustotal.com Showed positives from 12 different antivirus programs on the CSharp Assembly DLL file. Downloaded The dll file from a verified DLL distributing site and had 0 positives. Something here is fishy
Dang, not my skill set. Thanks for the prompt replyyou'd need to manually edit dlls and stitch it all together yourself so you'd need to know your way around c# and modding the game in general
Wait...so what you're saying is, that one won't have to continuously re-assemble it every time they want to add a mod that requires DMT?... The good news is that DLL doesn't even need to be in the release any more. DMT stopped relying on the game's DLL a while ago, I just need to update my code for building a release. ...
Hi, I need build my DMT mods all time I playing the game or just one time?
Wait...so what you're saying is, that one won't have to continuously re-assemble it every time they want to add a mod that requires DMT?
If so, I like it & can't wait for your new release LOL.
// BlockPoweredDoor
public override bool ActivateBlock(WorldBase _world, int _cIdx, Vector3i _blockPos, BlockValue _blockValue, bool isOn, bool isPowered)
{
//IL_0006: Expected I4, but got O
return ((BlockPoweredDoorPatchFunctions)/*Error near IL_0006: Stack underflow*/).ActivateBlock_Patch((WorldBase)/*Error near IL_0006: Stack underflow*/, (int)/*Error near IL_0006: Stack underflow*/, (Vector3i)/*Error near IL_0006: Stack underflow*/, (BlockValue)/*Error near IL_0006: Stack underflow*/, (byte)/*Error near IL_0006: Stack underflow*/ != 0, (byte)(int)this != 0);
}
Can anyone give me an example of a patch script that replaces an existing method with my own code? I'm trying to add my code in BlockPowerDoor.ActivateBlock but it keeps coming up like this, I get basically the same result when trying to add new methods as well, I can create the method but cant put anything in it.
// BlockPoweredDoor
public override bool ActivateBlock(WorldBase _world, int _cIdx, Vector3i _blockPos, BlockValue _blockValue, bool isOn, bool isPowered)
{
//IL_0006: Expected I4, but got O
return ((BlockPoweredDoorPatchFunctions)/*Error near IL_0006: Stack underflow*/).ActivateBlock_Patch((WorldBase)/*Error near IL_0006: Stack underflow*/, (int)/*Error near IL_0006: Stack underflow*/, (Vector3i)/*Error near IL_0006: Stack underflow*/, (BlockValue)/*Error near IL_0006: Stack underflow*/, (byte)/*Error near IL_0006: Stack underflow*/ != 0, (byte)(int)this != 0);
}
You would use a Harmony patch
[HarmonyPatch(typeof(Block))]
[HarmonyPatch("Init")]
public class Init
{
public static bool Prefix(ref Block __instance)
{
Debug.Log("Run me.");
return true;
}
}
The return true on a Prefix will allow the base Block's Init to run as well. if you return false, the base Block's Init will not run, just your code.
Parsing arguments
Running BackupFiles
Nope: Could not find a part of the path 'C:\Program Files (x86)\Steam\steamapps\common\7DaysToDie_Data\Managed\Assembly-CSharp.dll'.
process exited with error code -11234
I am trying to install a FOV mod for alpha 19, I don't know what I am doing wrong
I tried and it says it cannot be in the same file path as the mod folder or there would be build errors.It looks like you've not got the correct folder path in the settings area for DMT. Make sure you have the games folder name in it
e.g.
C:\Program Files (x86)\Steam\steamapps\common\7 Days to die
Not just C:\Program Files (x86)\Steam\steamapps\common
I tried and it says it cannot be in the same file path as the mod folder or there would be build errors.