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

[Mod] TormentedEmu's Fixes - A collection of various dll fixes and changes

TormentedEmu

New member
Gday from Down Under. Here is a small repository of various changes and fixes for both the vanilla and modded game.

https://github.com/TormentedEmu/7DTD-SDX-Mods

To install on a vanilla game, use SDX version 0.7.2 at least, from here:

GetLatestSdxDownload

To install on a modded game, either petition the mod maker to include these mods or edit your own Assembly using Dnspy or something similar. The source code provides details as to what opcodes need to be edited.

Mods:

MinibikeOpenUI - Allows inventory/map/etc to be opened while mounted on a minibike. Client side only required.

MinibikeImpact - Allows minibike to once again collide with entities such as zombies and animals. Client side only required since the calculations are done in the client, but this mod could also work on the dedicated server assembly.

NoExceptionHijack - Stops the command console from taking focus of your game whenever an exception is thrown. Client side only required.

ItemEatDelayRemover - Removes an animation delay check that can cause certain items, when consumed from the inventory, to fail to take effect. Client side only required.

ItemActionLauncherFix - Fixes a graphical glitch that leaves a crossbow bolt in the right hand when using modded crossbows. Client side only required.

ConsoleCommands - Adds the Mods.dll to the list of assemblies to be scanned for adding new commands to the game. Thanks to StompyNZ for the help with this mod. :) It works the same way as StompyNZ's mod but the code is patched differently.

Any problems, suggestions, and feedback are all greatly appreciated.

Cheers!

 
Last edited by a moderator:
Hi,

I'm getting an error when trying to build using SDX 0.7.1

If I try the minibikeopenui for example, I get:

ERROR: Failed to locate the method and code to modify in PlayerMoveController.

ERROR: System.Exception: Failed to modify all required methods!

at MinibikeOpenUI.ModifyAssembly(ModuleDefinition module)

at MinibikeOpenUI.Patch(ModuleDefinition module)

at SevenDaysToDiePlugin.BuildAndRunPatchModsTask.RunPatcherMods()

ERROR: Task Compile mod patcher scripts failed

Have tried building from vanilla, other mods seem to be OK... Any idea what I'm doing wrong?

 
Last edited by a moderator:
Hi,
I'm getting an error when trying to build using SDX 0.7.1

If I try the minibikeopenui for example, I get:

ERROR: Failed to locate the method and code to modify in PlayerMoveController.

ERROR: System.Exception: Failed to modify all required methods!

at MinibikeOpenUI.ModifyAssembly(ModuleDefinition module)

at MinibikeOpenUI.Patch(ModuleDefinition module)

at SevenDaysToDiePlugin.BuildAndRunPatchModsTask.RunPatcherMods()

ERROR: Task Compile mod patcher scripts failed

Have tried building from vanilla, other mods seem to be OK... Any idea what I'm doing wrong?


Hi Wildgrave, I tried the mod by itself on a fresh copy of the vanilla game and it patched ok. I think the problem might be that you are using a slightly older version of SDX. Try using the one I linked to above in my first post where it says GetLatestSDXDownload. Let me know if you still have problems.

I also tried using SDX 0.7.1 on a fresh vanilla copy and it also patched successfully.

Oh, are you trying to patch Alpha 16.4 (b8) ?

 
Last edited by a moderator:
Ah right, no sorry didn't spot the link to 0.7.2. Deleted everything, re-installed vanilla and 0.7.2 and works a treat now. Really love the MinibikeOpenUI! Good work!

 
Have My Own Modded Version 7D2D, now i want (Need Your

ItemActionLauncherFix

MinibikeOpenUI

)

Rund The 0.7.2 and it gives me that.:

Saving...

Done.

EVENT: Begin task: Copy payload dlls

Copy file: C:\sdxmodding\SDX0.7.2\SDX.Core.dll to C:\Users\Gabriel\Desktop\Obi/7DaysToDie_Data/Managed\SDX.Core.dll

Copy file: C:\sdxmodding\SDX0.7.2\SDX.Payload.dll to C:\Users\Gabriel\Desktop\Obi/7DaysToDie_Data/Managed\SDX.Payload.dll

EVENT: Begin task: Compile mod scripts

Dir not found: C:\sdxmodding\SDX0.7.2/Targets\7DaysToDie\Mods\ItemActionLauncherFix\Scripts

Dir not found: C:\sdxmodding\SDX0.7.2/Targets\7DaysToDie\Mods\MinibikeOpenUI\Scripts

Compiling Mods.dll...

Dir not found: C:\sdxmodding\SDX0.7.2/Targets\7DaysToDie\Mods\ItemActionLauncherFix\Scripts

Dir not found: C:\sdxmodding\SDX0.7.2/Targets\7DaysToDie\Mods\MinibikeOpenUI\Scripts

INFO: Built in 299ms

Mods.dll compile successful

EVENT: Begin task: Link modules

ERROR: This DLL has already been patched. Reset your backup and game files and try again.

ERROR: Task Link modules failed

EVENT: Action completed at: 26.05.2018 12:16:25 and took 6,75 seconds

I Can't do it with the Dnspy, im not a pro, pls help.

 
Yes. The current version of SDX doesn't allow you to add another mod on top of an assembly that has already been modded, sadly.

What mod are you using?

- - - Updated - - -

You can join us on Discord if you need help. It would be the best way :) Let me know if you want to join.

 
For anyone interested, I've added a new patch script that will allow you to enable the built in edit mode and prefab editor and will also allow you to save the world file you are working on with your changes to it.

Cheers!

 
Any thoughts about bbb like commands for those of us that run sdx mods on sp games sometimes? (Hal's method to import/export prefabs).

-lazyGup

 
Back
Top