Programmable Speaker using to alert if train on track

Bugs that are actually features.
KaliKatz
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jan 22, 2018 8:51 pm
Contact:

Programmable Speaker using to alert if train on track

Post by KaliKatz »

I have used this for a long time, problem still exists, maybe i'm the only one who loves train signals, hehe

I wired a SINGLE rail signal to a pole then to a programmable speaker with the condition "anything not eq to green output Celesta B5"
This gives a train signal close to real world telling me to get off the track.
Now put a train on the track so the alert is played.
There should be 1 red input from the rail signal.
This works.

Ok, now wire a SECOND rail signal to the same pole. Can be on the same track.
You wil notice there should now be 1 green and 1 red.
This stops the alert working

Ok, even weirder, wire a THIRD rail signal to the same pole.
Should be now 2 green and 1 red from the rail signal.
Working again.

It seams the 1 red and 1 green cancel each other, but then when you read the "circuit connection settings" and see that "Anything not eq to green"
By the way, the other condition, "Everything" does exactly the same thing.

Am i using the condition incorrectly?
Loewchen
Global Moderator
Global Moderator
Posts: 9230
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Programmable Speaker using to alert if train on track

Post by Loewchen »

What your circuit is asking is: "Does a signal (circuit signal, not train signal) exist that has not the value of the green signal?" As long as no other than green signals exist or the value of any other signal is the same as the value of the green signal this will be false. So this is working as it should.

Edit: If you can live with only yellow signals giving sound you can simply change the logic to: Yellow > 0
If it has to give sound by yellow or red you can sum them up in a arithmetic combinator first: red + yellow = "A" and the speaker: "A" > 0
KaliKatz
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jan 22, 2018 8:51 pm
Contact:

Re: Programmable Speaker using to alert if train on track

Post by KaliKatz »

Cool, ok will try, ty
Post Reply

Return to “Not a bug”