ArtumisPrime Posted May 4, 2019 Share Posted May 4, 2019 Currently the germ sensor liquid pipe appears it will turned on if the number of germs is above x. Or alternatively, turned off, if the number of germs is below y. I want the reverse of this. To activate if the number of germs is below 1, and/or to deactivate if the number of germs is above 0. Is this possible? Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/ Share on other sites More sharing options...
Sasza22 Posted May 4, 2019 Share Posted May 4, 2019 Easiest way is to use a NOT gate. Just set the sensor to 1 and the gate will reverse the signal so it will send an active below 1 and standby above. Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/#findComment-1189154 Share on other sites More sharing options...
ArtumisPrime Posted May 4, 2019 Author Share Posted May 4, 2019 Just to be 100% sure. If NOT Above 1, correct? That would make sense logically, but you never know when it comes to any game's programming. lol Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/#findComment-1189160 Share on other sites More sharing options...
nets Posted May 4, 2019 Share Posted May 4, 2019 Germ sensor should, like most sensors, activate when condition (you've set) is met, it will only deactivate when the condition is no longer met for that pipe/tile. Meaning with the sensor alone you can have it activate by defining ABOVE: if ( germ.count > X ) then signal=active; else signal=inactive; end if BELOW: if ( germ.count < X ) then signal=active; else signal=inactive; end if But if by using a NOT gate (negate) makes more sense to you then do whatever you feel like. It's a game. Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/#findComment-1189171 Share on other sites More sharing options...
ArtumisPrime Posted May 4, 2019 Author Share Posted May 4, 2019 That's not how it works though to the best of my knowledge. It's more like ABOVE: if ( germ.count > X ) then signal=active; else signal=inactive; end ifBELOW: if ( germ.count < X ) then signal=inactive; else signal=active; end if As in two separate conditionals. Not one if, elseif conditional branch. Or, put another way, it's EITHER if above, then active OR if below, then inactive. So you can never have it be if below 1, then active or if above 0, then inactive....without the NOT gate, that is. Like, flip a coin. Heads I win, tails you lose Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/#findComment-1189172 Share on other sites More sharing options...
nets Posted May 4, 2019 Share Posted May 4, 2019 I understand that the pipe germ sensor may seem finicky, as for me it **appears** to activate sometimes, even while there are no packets in the pipe. No pipe packets should not activate it - but i believe this to be a visual glitch. Just like any sensor you have to choose the mode of operation, ABOVE or BELOW. The mode and the number (X) is what you program in as the **single** if statement. If statement is true then signal is active, otherwise statement is false and signal is inactive. You could program BELOW 1 germ and it would trigger activate when it is below 1 germ (= 0 - no decimals on germs) and be inactive when it's otherwise. Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/#findComment-1189189 Share on other sites More sharing options...
ArtumisPrime Posted May 4, 2019 Author Share Posted May 4, 2019 Ah, yes. You are correct. My fundamental understanding of the switch was inaccurate due to odd wording in-game. Your statement is 100% true. I should have just trusted it and tested it the first time you said it. My apologies. Thank you for your time Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/#findComment-1189191 Share on other sites More sharing options...
Nightinggale Posted May 4, 2019 Share Posted May 4, 2019 1 hour ago, nets said: I understand that the pipe germ sensor may seem finicky, as for me it **appears** to activate sometimes, even while there are no packets in the pipe. No pipe packets should not activate it - but i believe this to be a visual glitch. I think it's actually setting the automation signal accordingly, hence not a visual glitch. However since I only use pipe germ sensors together with shutoff valves and it doesn't matter if the shutoff valve is on or not when the pipe is empty, I haven't really investigated. It's not like it has ever broken any of my designs. Link to comment https://forums.kleientertainment.com/forums/topic/105690-how-to-reverse-germ-sensor-settings/#findComment-1189215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.