Space Engineers
Оценок: 75
Logic Pain - Smart(er) Event Controller
2
2
2
   
Наградить
В избранное
В избранном
Удалить
Type: Mod
Размер файла
Добавлен
871.722 KB
15 апр. 2023 г. в 5:59
Обновлений: 1 (просмотреть)

Подпишитесь, чтобы загрузить
Logic Pain - Smart(er) Event Controller

Описание
The issue this mod addresses was fixed in Space Engineer 1.203 (Warfare Evolution), and you should probably remove it from your worlds

This mod makes the Event Controller smarter, and behave more logically - at least to my mind.

The event conditions in the Event Controller are changed to properly reflect a logical "OR", instead of firing rather inconsistently when tracking multiple blocks.

Why is this necessary?
By default, the Event Controller operates in a mode where tracking multiple blocks gives very inconsistent, and largely useless results.

Consider a simple example, with two doors, and the Event Controller monitoring for "Door Opened".
- Both doors start closed, Event Controller remains "Off"
- Open one door, Event Controller signals "On"
- Open the second door, Event Controller remains "On"
- Close one door, Event Controller signals "Off"

This last state is rather undesirable, since the Event Controller is now signaling "Off" despite a door still being open.
The basic problem here is that the Event Controller does not actually track the states of the blocks, and rather will always mirror the state of the last block that changed. One door closed, the Event Controller signals "Doors Closed".

In any logical system, this sort of behavior does not offer any benefit. The built-in "AND" mode actually works fine however, only the default did not. One might consider this issue a bug, but we will have to see if Keen does so as well.

With this mod, and therefor a proper OR, and the built-in AND mode, you can cover all potentially interesting conditions, which is not possible without them.
Is any door open? Is any door closed?
Are all doors open? Are all doors closed?

"Door Opened" is of course only used as an example condition, and all conditions that accept multiple blocks are affected.

Affected Events
All events that are adjusted by this mod will have a "(Smart)" added behind their name.

For technical reasons, it was not possible to adjust "Angle Changed" and "Gas Filled %", and of course those that do not interact with multiple blocks are not touched.

Due to inconsistent behavior of the vanilla event, the "Connector Ready to Lock" is currently also not included.

Keen Bug Report
In the hope of getting a similar fix into the vanilla game, as I do not see how the current behavior makes any sense, I have reported the issue here:

https://support.keenswh.com/spaceengineers/pc/topic/28005-event-controller-does-not-properly-track-block-states-in-normal-or-mode

Help by upvoting!
Комментариев: 39
nevcairiel  [создатель] 7 сен. 2023 г. в 8:51 
The issue this mod fixes was fixed in the Warfar Evolution update (1.203), at least in my testing.
Therefor, for the time being, this mod should be considered superfluous and discontinued.
Kosmonavt 30 авг. 2023 г. в 16:24 
Add - Run ones
Kosmonavt 30 авг. 2023 г. в 16:23 
If angle rotor >= angle mast have
Altitude - traster
Kengored 24 мая. 2023 г. в 1:06 
hey, they responded to the bug report 2 days ago, we might finally get this in vanilla!
ChozoSR388 9 мая. 2023 г. в 5:06 
@Namethon How do you reset it with a timer? I've been struggling with that and still hadn't figured out a good solution.
HeilTec 4 мая. 2023 г. в 15:52 
Thanks for taking the time to make this temporary fix.
I sincerely hope bug will be fixed to match this mod.
NeonDrip 1 мая. 2023 г. в 3:40 
not played since the update but the fact the made a logic block with less gate logic then redstone in minecraft is fucking stupid, come on keen AND OR is the bare minimum and you couldnt even do that right
Nemirel 30 апр. 2023 г. в 17:43 
Best way I was able to reliably trigger events when all conditions were false was to have an EC for each targeted block, with a light set to "turn off"/"turn on", then one final EC looking at all bit-lights ON/OFF state, ANDed. This is kinda dumb for something you'd think would be achievable in a single EC.
Rusted Droid 26 апр. 2023 г. в 8:40 
Classic Keen.
They did not test their stuff again.
Merge block is also not usable as event of merge is not fired.
Event block not react to any state of merge block.
Nemethon 24 апр. 2023 г. в 7:49 
"Connector Ready to Lock" is a pain in the ass at the moment. My solution to get it work properly: timer block resets the eventblock every 3 seconds.