Full Power Coverage

by Morhe

Makes the supply area for small and medium electric poles match their wire reach. Slightly reduces connection range to force connection ranges to even numbers of tiles, then raises power coverage range to match. Automatically compatible with most mods that add their own power poles.

Tweaks
21 days ago
0.15 - 2.0
4.35K
Power

g Incompatible with Factorrisimo 2

6 years ago

This may or may not be your issue, but with this mod installed, Factorrisimo 2 factory buildings do not provide power in the interior the way they're supposed to. In fact, it's impossible to get power to anything inside one of their factory buildings. I've asked the F2 dev to look into possibly adding compatibility with this mod, but it would probably be a lot more likely to happen if you worked with him on that.

Love the mod, BTW! I really wish I hadn't had to disable it, but the potential space saving of F2 factories wound up being more important than the larger coverage areas. Hopefully we'll be able to have both one day :)

6 years ago
(updated 6 years ago)

@Morhe: The issue is that your code reduces the coverage of power poles that have less wire reach than coverage. Simply replace line 4 of data.lua with

v.supply_area_distance = math.max(v.supply_area_distance, math.floor( v.maximum_wire_distance / 2 ) + 0.5)

and everything should be fine.

New response