Storage block logic

    Joined
    Dec 23, 2014
    Messages
    7
    Reaction score
    10
    If not already planned,

    Add logic capability to storage containers to for example activate when capacity is reached (cargo). Practical use: While mining, have a light on the bridge turn on to signal that the cargo hold is full.


    Perhaps a button action when a storage chest is opened as well for a quick signal could be useful for traps or something as well.
     
    • Like
    Reactions: Jaaskinal

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    Logic signal interaction
    Storage can both receive and send logic signals. In a similar way to production modules, when acting as a receiver a "true" signal will turn on the module's filtering functions, and a "false" signal will turn them off. However, while Storage modules can't be linked to other modules as the source of a logic signal, placing certain logic modules in direct contact with an active filtering Storage can result in said modules changing state in the following conditions:

    • When an Activation Module is placed next to a storage, it will receive a "false" signal when the storage becomes full. Conversely, if the storage becomes not-full, the signal will become "true".
    • When an OR-Signal is placed next to a storage, it will receive a "false" signal when the storage becomes empty. This signal will become "true" if the storage becomes non-empty.
    The signal changes only take place after a filter "tick", and only if said tick makes the module change its contents. This means, for example, that manually placing items in an empty storage will not make an adjacent OR-Signal immediately receive a "true" signal; it will only do so after the module completes a cycle in which it sends or receives other items automatically.
    Mining-Lasers -> Buffer -> Cargo.
    If cargo is full, stop mining. Start blinking alert lights (and soon sounds!).
    The buffer stops waste from the time between the cargo getting full and the mining stops.

    The buffer can also be a storage capacity reserved for more precious cargo.