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

Can anyone update this mod's dll to work with v2.0?

gaveitatry

Refugee
This is the mod that I want updated to 7D2D v2.0.
https://www.nexusmods.com/7daystodie/mods/5903?tab=posts

It is throwing this error:
EXC Patching exception in method null --> Undefined target method for patch method static bool Third PersonView.Harmony.UpdateStepsSoundPatch::Prefix(EntityPlayerLocal_instance, float _distX, float _distZ)

I don't know anything about coding Harmony dlls but I asked an AI for help and it had me compare the Assembly-CSharp.dll from 7D2D v1.3 with the one from 7D2D v2.0.

I noticed that in > EntityPlayerLocal > OnUpdatePosition, the 7D2D v2.0's file had "this.updateStepSound(vector.x, vector.z, 0f)" instead of just "this.updateStepSound(vector.x, vector.z)".

So that led me to believe that I should update the mod dll's "public static bool Prefix(EntityPlayerLocal __instance, float _distX, float _distZ)" to "public static bool Prefix(EntityPlayerLocal __instance, float _distX, float _distZ, float _distY)".

I did so, but it still throws a similar error.

Obviously I am not the one to fix this mod, and the mod creator seems to maybe have abandoned the mod. So maybe someone else can look at it?
 
Back
Top