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

Post your bugs and problems so we can fix them.
Sukasa
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 29, 2014 1:00 am
Contact:

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

Post 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 191 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
Attachments
PetriDish.zip
(1.35 MiB) Downloaded 4 times
Loewchen
Global Moderator
Global Moderator
Posts: 9339
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post 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.
Sukasa
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 29, 2014 1:00 am
Contact:

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

Post 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.
robot256
Filter Inserter
Filter Inserter
Posts: 948
Joined: Sun Mar 17, 2019 1:52 am
Contact:

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

Post 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.
Sukasa
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Apr 29, 2014 1:00 am
Contact:

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

Post 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
Post Reply

Return to “Bug Reports”