How do you send a car to position X=0, Y=0? This shouldn't work due to the way Factorio processes signals: every signal that has a value of 0 is treated as if it wasn't set at all.
Just tested: If (X = 0 AND Y != 0) OR (X != 0 AND Y = 0), the car will be sent to that position. I guess because one signal has a value, it will be inferred that the absence of the other signal actually means it has a value of 0. But that really doesn't work if both are 0.
Two ideas how to solve this:
- Adapt the mod. If at least one of X and Y had a value other than 0, and input changes so that both X and Y are 0, move the car to 0,0. Potential problem: You really don't know whether the player intended to send the car to 0,0 or whether he shut off the circuits to stop the car from automatic driving. Perhaps this isn't such a good idea after all.
- Let the player take care of it. A filter that sets X, or Y, or X and Y to 1 just before the signals are fed into the radio should usually do the trick. Potential problem: the modified location is blocked by a building, water, or a cliff, so it's impossible to path there.
Any ideas how to handle this case? :-)