Closed ErzengelLichtes closed 2 years ago
Hey there! This isn't a bug, it's just how selectors work. If the name of the block you are using does not contain the correct block type, then you need to explicitly provide the block type so that EasyCommands knows what type of block you are looking for.
So in the above, you should specify
turn off "Station 1 Lock Plate" magnet
if "Station 1 Lock Plate" is intended to be a magnet.
I think what is tripping up your example is that "Station" is considered a block keyword for a control station, so it is looking for a control station block using an implicit selector. In this case that isn't the right type, so you need to explicitly provide the block type you are expecting.
Take a look at the docs on Selectors for more information: https://spaceengineers.merlinofmines.com/EasyCommands/selectors
Hope that helps!
Describe the bug Trying to use certain words in a selector lead to the selector either having a parse error or not finding the block.
To Reproduce
turn off "Station 1 Lock Plate"
turn off "Station 1 Lock Magnet"
Expected behavior The script should select names regardless of what they contain
Additional context Using the name "Plate" by itself causes a parse error, even if there is a block named "Plate".