Electric Pole Range Multiplier

by Jobus

Globally tweak the range of all electric poles and substations, including those from other mods, using a simple multiplier.

Tweaks
a day ago
2.0
5.58K
Cheats

g [✅Fixed] Need to NOT extend wire reach the same amount

a day ago
(updated a day ago)

So the best feature of power poles is being able to hold click and walk to drag and place them automatically at the right distance. This mod extends the power 'supply' area, but ALSO extends the wire reach, which means if you click and drag while walking it will place the poles farther and farther away depending on the extended range and leave a huge gap between power poles where the power is not supplied. Ideally the wire reach would be extended ONLY enough to place poles where the new power supply area won't leave a gap but also not overlap too much. Or heck, just give us a separate setting for extending wire reach.

a day ago

You're right. While the vanilla game has gaps too, multiplying everything by the same value makes those gaps get annoyingly large very quickly.

In addition to that, while looking at my code, I embarrassingly realized my tile-rounding logic is flawed, which actually makes the gap issue even worse.

I will soon update the mod with the rounding error fixed and a new Maximum gap option. You can set this to 0 (or 0.5 to allow for some diagonal leeway) to make "click and drag" place poles perfectly without gaps.

The Maximum gap will default to 2.5, which is the same amount of gap that the vanilla Small electric poles have.

The limit will only apply to poles with relatively large supply areas compared to their wire distance; this avoids applying the limit to Big electric poles or similar long-range, small-area poles added by mods.

a day ago

Okay, the update is ready for download. Don't forget to tweak the Maximum gap setting to your liking!

a day ago
(updated a day ago)

Your awesome. I will update and check it out now. Thanks!

Edit: Just tried it out with multiple different sizes and a gap of 0 and it works perfect. Love that I can adjust the gap to be what I want, but I don't mind the overlap to insure I don't have gaps. Thanks again, especially for the very fast fix!

22 hours ago

You're very welcome!

I'm thankful you brought it up, because this was a much-needed improvement for the mod that I hadn't thought of before.

New response