7 Days To Die
0 of 0

File information

Last updated

Original upload

Created by

ocbMaurice

Uploaded by

ocbMaurice

Virus scan

Safe to use

About this mod

A collection of electricity bug fixes. Specially improves trigger groups and makes them more reliable. Also has a fix to prevent power.dat resets. This mod needs EAC to be off.

Permissions and credits
Mirrors
Changelogs
Donations
This Mod fixes some Bugs I found in the original game during the development of my Electricity Overhaul Mod.
I've extracted these into its own project/mod, since they also fix these edge-cases with the base game implementation.

This mod is not EAC compatible, so you need to turn EAC off!
Otherwise it should work on linux and also via vortex mod manager.
Should also work for multiplayer, but hasn't been tested that well yet.
Confirmed to be compatible with Undead Legacy.

This module is part of my bigger Electricity Overhaul Mod
=> https://www.nexusmods.com/7daystodie/mods/1713
For loading order this mod name is `ElectricityWorkarounds`.

Currently there are four fixes/improvements included:

Fix trigger groups where each trigger has different options

This issues can easily be reproduced by using two pressure plates. Configure the upstream plate to instant triggering and the downstream plate to have a power duration of e.g. 30 seconds. Now trigger this plate (starting the 30 seconds timer) and afterwards step on and off the upstream plate. This will reset the 30 seconds timer and turn off the whole trigger group. One could argue that this is the desired behavior, but I believe each trigger should only be reset according to its local options.

Better power duration support with sensors/triggers

If you configure a Motion Sensor or a Trip Wire to have a power runtime and trigger it permanently, the trigger will constantly turn itself off after the duration and then on again. This fix will reset the duration as long as the trigger is active, therefore only counting down the duration once the trigger is deactivated (e.g. target moved out of range/sight). I believe this is actually a bug in the original code, since the correct implementation seems to be there, but simply one level nested too deeply inside another (unrelated) condition.

Fix triggers with delay and `triggered` duration

This Bug can be seen if you connect a pressure plate and set it to have a start delay and power duration to `triggered`. If you quickly step over the plate, the power will go on after the delay but never turn off. Power should never be on in the first place in this case. This applies also to trip wires and motion sensors.

Potential fix for power.dat resets

Ever lost your whole wiring and other power related stuff, like batteries and fuel? Version 0.3.2 includes a fix for this vanilla issue that at least fixes the most obvious cases where it is happening. Of course no guarantee that it catches all potential cases. Note that this Bug seems fixed with A21, but my fix is still included, as it may add even a bit more protection and it doesn't hurt.

Developed initially for version A20(b218), updated through A21.0(b324)