I'm cleaning up the board from backward, so this gets revived.
The dev-team stated here and in other comments that they won't implement it. The reason is simply the big amount of calculation power.
This is right, if this is calculated per device and in real-time. I thought a bit and I think I found a way, how this might work. I try to describe the algorithm:
The basic idea is, to install a "blind-power" for each combination of "regions". The regions are 32x32 chunks. (*) See
https://forums.factorio.com/wiki/inde ... tle=Region
The energy flow between two regions is measured and depending on distance a blind power consumer is installed into that network.
This is a more or less correct approximation, when we look at the numbers of devices in a region: there are under normal circumstances about 100-1000 in one region.
- this takes 1-10 seconds for one loop and can run in background.
- the game loops over the map in "regions" (32x32 chunks).
- it sums up all current producers and all current consumers in this region and per network.
- when it has calculated all, it calculates per network:
--- distance between two regions
--- the power exchange between two regions, therefore it
------ takes the current production, cuts away it's own consumption and if something is remaining it repeats that for all surrounding areas
------ if up to to four regions can deliver into another area, the consumption is middled over these four.
--- then it calcuates and installs an "invisuble power user" into the network for this combination region
--- region<->distance<->power-flow => resistance => blind power needed to bridge the resistance
--- in the power-info-screen this is shown as blind power usage.
(*) Well, that area is quite big (1024 x 1024 tiles), but in reality this loss is also measured in kilometers.
This has two reasons:
- in the early to middle game i won't be bothered with that. It doesn't bring anything - gameplay-wise.
- The blind power should become only a problem, if you expand into far regions.
- It can be softened, if we install power generators at that distant outpost. How would that work with narrower region-sizes?
And, well, 256 x 256 tiles (16 x 16 chunks) seems also appropriate. Maybe the regions overlap? I dunno, this is part of balancing.
- It may be also a useful idea, to define the regions not "fixed", more like "clouds", so that the number of devices inside is more or less equal for every cloud; that the regions differ in size and are not rectangular.
- Also a good idea might be to split the calculation for the regions for producers and for consumers...
- Maybe the number of connections between two networks play also a role. Resistance grows, if we transport much power over only one line...