Page 1 of 1

[2.0.21] Train interrupt circuit condition checking for non-presence of signal needs wired train stop

Posted: Sat Nov 30, 2024 5:47 pm
by Sukasa
Working on trains, I have found that circuit conditions checking that a signal is not present do not work if the train stop the train is at does not have a circuit connection.

This is somewhat of a problem as I am trying to set up a 'refuel' interrupt where specific train stops can inhibit that interrupt from firing if those stops have complex circuit logic attached to them.
11-30-2024, 09-40-40.png
11-30-2024, 09-40-40.png (57.65 KiB) Viewed 194 times
This is the interrupt in my petri-dish world I have been testing with. The '2' is not significant.

Save file is attached. Incidentally you notice that the one "Goto B and D" interrupt gets cancelled by the "Goto C" interrupt instead of interrupted, which would be a real problem if the train was trying to pick cargo up at B and drop it off at D... This is (slightly improperly) documented in another bug report here that didn't get a response yet, and it appears to still be relevant to 2.1.21

Re: [2.1.21] Train interrupt circuit condition checking for non-presence of signal needs wired train stop

Posted: Sat Nov 30, 2024 7:46 pm
by Loewchen
It's way simpler, no train stop circuit condition is true without the stop having a circuit connection. This behavior was the same in 1.1.

Re: [2.0.21] Train interrupt circuit condition checking for non-presence of signal needs wired train stop

Posted: Sat Nov 30, 2024 11:18 pm
by Sukasa
I would counter that having interrupts that sometimes can and sometimes cannot function when they are checking that a signal is zero (or in this case "not 2") is in no way simpler to try and manage from a conceptual and maintenance point of view. As well, there is no "no circuit connection" trigger that could be used in an alternative clause to achieve equivalent functionality.

Re: [2.0.21] Train interrupt circuit condition checking for non-presence of signal needs wired train stop

Posted: Mon Dec 02, 2024 12:43 am
by robot256
Sukasa wrote: Sat Nov 30, 2024 11:18 pm I would counter that having interrupts that sometimes can and sometimes cannot function when they are checking that a signal is zero (or in this case "not 2") is in no way simpler to try and manage from a conceptual and maintenance point of view. As well, there is no "no circuit connection" trigger that could be used in an alternative clause to achieve equivalent functionality.
The "no circuit connection" trigger could be useful, but you can also use the At specified station / Not at specified station conditions if you know which stations have the circuit.

Re: [2.0.21] Train interrupt circuit condition checking for non-presence of signal needs wired train stop

Posted: Tue Dec 03, 2024 3:37 am
by Sukasa
That only works if you know the stations ahead of time, but if you're designing a blueprint book that's, unfortunately, not necessarily an available option