Page 1 of 1

[2.0.11] Decider combinator only shows first condition to be true if all are true

Posted: Sat Oct 26, 2024 9:54 pm
by Greaka
I have a decider combinator that shows the first subquery to be true only when all conditions are met.
10-26-2024, 23-46-51.png
10-26-2024, 23-46-51.png (372.17 KiB) Viewed 247 times
10-26-2024, 23-48-28.png
10-26-2024, 23-48-28.png (375.2 KiB) Viewed 247 times
I understand it, now that I went to the editor and explored it, but given that subqueries usually show green when they are truthy, ignoring the other subqueries, I was not sure if there was a bug somewhere in my system.

Repro:

Code: Select all

0eNrNWNtu2zgQ/Rc+7lKFblQsAy3QlwJ9LfIWBIIsMTFRiVQpym0Q+AP2L/bb9kt2SOrqypGVNE0RIBjT5JkzZ4ZD0o9oVzS0kowrtH1ELBO8RtubR1Sze54WeoynJUVbJMVOVEIqdMSI8Zz+QFvviGcmpnVNy13B+L1Tptmecer4o0X+8RYjyhVTjFpX5sNDwptyRyWg4ieRMKpEDYsF1z41C5e8Ixg9oK0TuFfvCLiCKJQURbKj+/TAhNQza6oSSTNWAbKSDcVI0jRvh5I7xlm9p/nkO3Asac6AXz2MT6YnQ/TqQSOjA5OqgZE+CDvD+YSORy3XSbA+/knfnwKMN1100ZnYLFtFyzopRU61yJrqt4bWCrgWisraapBpXCt7n8TbOWJBT6wECZrSoQUslixzKlHQuSz4QxZCyMIMZvgSTDKPSVZjkkWe0Uswz/C86jF3TfHVYbymEtIyBxYugm16sAr2CDtQp5LiwHIqnWwPOV9APRN2fDnFaEoRo5xJW1tAbgbac4c6t2X5FNVoSnW+5jMms4YpU/CJuEtERWVqYaCDdN/CytyAJ5Snu0Jv8Lu0qOmL94fnXR5RvBkCCkxAl/rGqJ8xGW09j1L0DZoO8INBLmRpGlAmyioFTbRe6L0ZaHSbJy6ENB/U0I5yaHSmnkS5Y9yAzGTKGwV2Jk8t0JAJE+34E0R2xySocXEz/YKss1qlOqAgcl23i5cm7eKU50ifNaJRVaNOT7VlD1qiOY2ClRq5b6PR9YlGro7lj9P5+rzOw2mRSqb2JVXQgJ+WmixLPWCdqL1Sms9aGtizgJEMCsHWHPUh9DfqZFkFPK/HcNLV5jwSS4UXTtUYt+h5bcbUrQ+EWyMp0x/dHci0oZUBzcQTrc/vqN14r5xfChfO2RQ7/jTHfz0jxxZ8XpbhotD5vLy/eKdncXjuLpz1uqw6dxZ386qDyLwfumcBXm5GK8Fvz3WWzcoOTqZlt7yRfsOZ551E/t8//yI8wUw4Vd+F/FrbF0J388EIHjWU2818fMahcLIz1ryATjh/WGRsG05LuLu4TRxfuOZXnlmdAJd4PleC8coSDP+EErx+ugTf/6YC/PIaNJ5bDCl/UHvG719YEL67tu1fDRXhvnHb//i8zgySfwfO2tmNh+HPxd4tvvGxj0PsgxWA5Y1M0poEvietRYwVwvLIrNYWXC0CY/ow6LcW3NtDYxIY1GuIRQ+N2Q1GejkxSNHg0pibwYyN6Wmm8C/s7aAbD7Qd9Lalpqd2NLxgoGTtK7uW6Pmxnb/RZGLAAaX0rzv6Zd7/WofRARJl0k0iPw7jmIRe6Puedzz+DxWVoTA=

Re: [2.0.11] Decider combinator only shows first condition to be true if all are true

Posted: Fri Nov 15, 2024 10:57 am
by Tobias1595
This is not a bug, this is a deliberate choice made specifically for conditions containing the "Each" signal.

It's possible to setup conditions like e.g. "Each > 10 AND Each < 100", where it's tricky to find highlighting rules that are both intuitive and easy to implement. Therefore conditions with "Each" show as off/false by default.

If you hover your mouse over a signal in the list of input signals, the conditions will highlight as if the "Each" signal got replaced with the hovered signal, allowing you to check each signal on its own. So in your example, in the first picture the second condition would have lit up if you had hovered either the red or green nuclear fuel cell signal.

Please also note that due to performance implications the highlights and the signal lists also consist of a mix of data from the current tick and the previous tick. This is barely noticeable in regular gameplay, but should be kept in mind for editor use with entity ticking paused.