The .FO suffix works like .FE, but is not listed in documentation
Aerotactics opened this issue ยท 5 comments
Hi, which version/modloader are you using, for better bug searching ;)
The behaviour I expect here is:
V
is 15 for comparator override 0 or 1 onR
ed.- Redstone output of
R
ed is the comparator override on Red >= 2 (the.FO
should be ignored). D
own is 15 when comparator override 0 or 1 onR
ed (V
>0) , and one tick after that.
IIRC I do not mark a parse error if the suffixes are not explicitly .fe
, .re
, .co
, I think that's the problem here.
The java code handling the edge detection symbols in the RLC code is here. So, edge detection should work for ".FE" and ".RE":
redstonepen/src/main/java/wile/redstonepen/blocks/ControlBox.java
Lines 1088 to 1111 in d2acc71
Sorry for not including it originally. I agree adding a syntax error would help with the confusion.
Mod version: 1.11.34 Fabric
I believe you are correct, the .FO should be ignored, however try this code in an empty RPC:
D = !R.FO
I put a redstone lamp under it. IF the .FO is ignored completely, then adding power to R should turn it off and on (as it does with D = !R), but D stays on instead. (This might be a different bug)
Edit: OK yeah, I misunderstood the bug. "D = !R.FO" is acting like "D = 15". I expect that if a suffix is ignored, the code should still process normally, or the syntax error should say the whole line will be ignored.