Logic Signals

From StarMade Wiki

Logic signals are an additional tool by which players can remotely control and interact with active blocks such as lights, doors, docking modules and complex systems such as factories,weapons and effect clusters. Logic system is represented by it's own family of blocks, that provide varied methods of manipulating the player's signal input and performing logical operations upon that input.

Logic circuits can be used to make player's environment more dynamic. It allows the creation of automatic doors, interactive lights, gravity elevators, clocks, factory controllers and even more complex binary systems like coded locks and basic computer functions.

Logic State

All active blocks can have one of two states, either On or Off, which represents binary logical statements of True and False, respectively. In order for block to switch its state, it requires to receive a logic signal opposite to it's current state. Conventionally it is done by direct interaction (using R key) or through the Ship's core, which dispense signals as player uses one or another module from a ship's hotbar. When activated through logic signal, weapons, docking blocks and "burst"-effects trigger only once, but other switchable types of blocks remain in the signal state as long as the given signal persists. In order to transmit a signal, every block in the logic chain must be linked to one or multiple blocks that would receive that signal further in the chain.

Most active blocks initiate in Off state, while factories and light blocks are active upon placement. In both situations, logic and other active blocks do not instantly consider the signal state when linked to, thus a single state change might be required to align it properly (Ex: Light block will not turn Off when Off-signal source is linked to it, and will require a signal source to turn On/Off one time while linked). While simple doors or lights can be switched manually, logic state of weapons and factories is changed through their User Interface, but can still be changed directly through Logic Blocks.

Change of logic states through Logic Blocks has a preset phase of half a second (500 milliseconds), thus it's the fastest rate at which states can be changed without player's direct actions. Unless delay signal block is used, all consecutive state changes are performed instantly through a single phase.

Logic Blocks

Logic Blocks are placed like regular blocks and work specifically on the entity they're placed upon. When one or another logic block receives the On-signal, it will emit a blue light. Like factories, logic blocks render connection beams, thus consideration for the placement of logic chains is advised.

Activators

These logic blocks are mainly used to turn on/off other logic blocks or systems.

Block Name Behaviour
Activation Module Activation Module.png An Input block. which can be switched manually or through other logic outputs, and can also be used as a non-delay signal transmitter. A necessary component for an Area system functioning.
Button Button.png An Input block. Pulses a signal for 0.5 seconds before returning to its normal state.
Inner Ship Remote Inner Ship Remote.png An Input block. Designed to be used exclusively in ship's flight mode. It allows players to trigger logic signals directly from their hot bar.
Wireless Logic Module Wireless Logic Module.png An Input block. It's capable of sending a logic signal from one entity to another entity. Allows players to trigger logic circuits between ships/stations/docked entities.

Logic Gates

These blocks are designed to execute more complex logic signals.

Block Name Behaviour
Flip Flop Flip Flop.png A chain block. Only changes its state when it receives an "On" signal. A basic memory circuit.
NOT-Signal NOT-Signal.png A chain block that receives a state signal and sends the opposite state, effectively reversing the signal. On-signal will turn it Off, and vice versa. Necessary element for clocks and more complex chains.
AND-Signal AND-Signal.png A chain block that sends the On-signal only when all logic blocks linked to it also are in On-state. Necessary element for code locks and other multi-conditional systems.
OR-Signal OR-Signal.png A chain block that sends the On-signal when any of the logic blocks linked to it is On-state. Necessary for systems with multiple input points and more complex chains.
DELAY-Signal DELAY-Signal.png A chain block that receives the signal, but propagates it further with a half-second delay. Foundational element for sequenced actions and clocks.
Randomizer Randomizer.png A chain block. It's designed to have a 50% chance of sending out a logic signal when it receives one. Intended to be used to create randomized logic circuits.

Sensors

These blocks are designed to send logic signals when they detect an entity or a change in a system they are connected to.

Block Name Behaviour
Activation Gate Controller &
Activation Gate Module
Activation Gate Controller.png
Activation Gate Module.png
An input system designed around making closed gates. Entities that move through these gates will trigger a signal to be sent. Its activations are similar to Activation Modules.
Trigger (Area) Controller Trigger (Area) Controller.png An Input block. that looks for instances (players, ships, etc.) entering the Area Triggers slaved to it and turns all adjacent Activation Modules On on detection.
Trigger (Area) Trigger (Area).png A slave block for its Controller, Area Trigger is an invisible and intangible volume sensor, which changes parent controller state depending on whether there's something inside it or not.
Trigger (Step On) Trigger (Step On).png An Input block. that sends On-signal when gravity-attracted player stands on it. Allows for gravity-dependent logic systems to be created.
Sensor Sensor.png An Input block. Requires a pulsing signal to operate. capable of sensing the state of various systems like shields, power, ect. and sending out a logic signal when a configurable threshold is met or surpassed.

Related

Game Mechanics
Build ModeCreditDefense SystemsDocking/RailsDoorsEffectsFactionFleetsFlight ModeLinkingLogic SignalsMapPlayerPlayer ItemsProductionPropulsion SystemsReactorsReactor ChambersResourcesShipyardsShopsSpace StationSupport Tool SystemsTrade NetworkWarp GateWeapons