Khagan wrote: ↑Thu Sep 17, 2020 7:28 am
ssilk wrote: ↑Thu Sep 17, 2020 7:00 am
The game cannot know if you accidentally forgot to open the switch.
No it can't. Not now, not ever, never. But that applies just as much to a single switch as to a chain of two or more. Right now the game treats all 'off' switches as errors, which is silly; the only other consistent and practicable behaviour is to treat them all as intended.
Sorry, but that’s a little bit of stupid argument.
And you have been going over the logic behind it: right now the game treats all ‘off’ switches as errors. So the next logical step is to look at single switches. Not just all or chains of switches.
ssilk wrote: ↑Thu Sep 17, 2020 7:00 am
But you closed #1 (where your nuclear power is) due to some wrong programming. Or a biter has eaten the combinator that decides switching. Now it would be correct to show big warning in the network behind switch #2.
These are both switching errors, so (as I agreed with you just above) the game cannot know that they are errors. The big warning should be for hard-wired electric network faults, which the game
can identify. And if a biter has eaten your
homework combinator, it will presumably eat the switch shortly afterwards, at which point we
do have a network fault! (More seriously, there is already a big warning for destroyed objects anyway.)
Lol.
Well, you have been going over the little difference.
network1 — sw1 — network2 — sw2 — network3
Your first example:
network1 and 2 has no power or power production. Sw1 and sw2 are “off”, network3 has power.
You look at sw1 and 2 to find out, that there is any power in this network and display small warning. I look at sw1 and see there is no power in the adjacency network and display big warning.
Now to my example: again network1 has no power or power production. Network2 has power production, but only solar/accumulator. network3 has power (nuclear). Sw1 and sw2 are “off”.
Btw that is a classical power setup: your main network (network2) is solar driven and you switch on power (sw2), if solar/accumulator is out. In both cases a small warning is displayed.
Now night falls. Solar turns off, accumulator go empty. The switches are still closed to whatever reason. What happens with network1?
Your suggestion: there is still power production in network3, so -> small warning.
Mine: no power in the next network (network2) -> big warning.
I don’t see anything wrong with it. Because if you open now sw1 there would be still no power. You need to open sw2, too. And this case needs to be checked every tick and my algorithm is O(1), while yours can be O(n).