Wiring Components: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(→‎Misc: concat)
Tag: visualeditor
Line 18: Line 18:
}}
}}
=Logic=
=Logic=
==[[File:And_Component.png|40px]] And Component==
==[[File:And_Component.png|40px]] And Component==
<blockquote>"''Sends a signal when both inputs receive a signal within a set period of each other."''</blockquote>
<blockquote>"''Sends a signal when both inputs receive a signal within a set period of each other."''</blockquote>
Line 49: Line 48:
| 1 || 1 || 1
| 1 || 1 || 1
|}
|}
==[[File:Equals_Component.png|40px]] Equals Component==
==[[File:Equals_Component.png|40px]] Equals Component==
<blockquote>"''Sends a signal when both inputs receive the same signal."''</blockquote>
<blockquote>"''Sends a signal when both inputs receive the same signal."''</blockquote>
Line 63: Line 61:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Greater_Component.png|40px]] Greater Component==
==[[File:Greater_Component.png|40px]] Greater Component==
<blockquote>"''Sends a signal if the value the signal_in1 input is larger than the signal_in2 input."''</blockquote>
<blockquote>"''Sends a signal if the value the signal_in1 input is larger than the signal_in2 input."''</blockquote>
Line 77: Line 74:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Not_Component.png|40px]] Not Component==
==[[File:Not_Component.png|40px]] Not Component==
<blockquote>"''Sends a signal when the input is NOT receiving a signal."''</blockquote>
<blockquote>"''Sends a signal when the input is NOT receiving a signal."''</blockquote>
Line 100: Line 96:
| 1 || 0
| 1 || 0
|}
|}
==[[File:Or_Component.png|40px]] Or Component==
==[[File:Or_Component.png|40px]] Or Component==
<blockquote>"''Sends a signal if either of the inputs receives a signal."''</blockquote>
<blockquote>"''Sends a signal if either of the inputs receives a signal."''</blockquote>
Line 131: Line 126:
| 1 || 1 || 1
| 1 || 1 || 1
|}
|}
==[[File:RegEx_Component.png|40px]] RegEx Find Component==
==[[File:RegEx_Component.png|40px]] RegEx Find Component==
<blockquote>"''Sends a signal if the received signal matches a specific regular expression pattern."''</blockquote>
<blockquote>"''Sends a signal if the received signal matches a specific regular expression pattern."''</blockquote>
<!-- Sends out the set output signal if the input is equal to the set '''Reg'''ular '''Ex'''pression.
If not, the RegEx component will send out a <code>0</code>. -->


The '''RegEx Find Component''' is an electrical component used to match an exact string.
The '''RegEx Find Component''' is an electrical component used to match an exact string.
Line 150: Line 142:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Signal_Check_Component.png|40px]] Signal Check Component==
==[[File:Signal_Check_Component.png|40px]] Signal Check Component==
<blockquote>"''Sends a signal when a signal matching a specific value is received."''</blockquote>
<blockquote>"''Sends a signal when a signal matching a specific value is received."''</blockquote>
<!-- Depending on if it receives its <code>TargetSignal</code> it will send out either the <code>Output</code> or <code>FalseOutput</code> value. (Includes words) -->


The '''Signal Check Component''' is an electrical component used to check if 2 signals match.
The '''Signal Check Component''' is an electrical component used to check if 2 signals match.
Line 168: Line 158:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Xor_Component.png|40px]] Xor Component==
==[[File:Xor_Component.png|40px]] Xor Component==
<blockquote>"''Sends a signal if either of the inputs, but not both, receives a signal."''</blockquote>
<blockquote>"''Sends a signal if either of the inputs, but not both, receives a signal."''</blockquote>
Line 199: Line 188:
| 1 || 1 || 0
| 1 || 1 || 0
|}
|}
=Math=
=Math=
==[[File:Abs Component.png|40px]] Abs Component==
==[[File:Abs Component.png|40px]] Abs Component==
<blockquote>"''Outputs the absolute value of the input."''</blockquote>
<blockquote>"''Outputs the absolute value of the input."''</blockquote>
==[[File:Adder Component.png|40px]] Adder Component==
==[[File:Adder Component.png|40px]] Adder Component==
<blockquote>"''Outputs the sum of the received signals."''</blockquote>
<blockquote>"''Outputs the sum of the received signals."''</blockquote>
==[[File:Ceil_Component.png|40px]] Ceil Component==
==[[File:Ceil_Component.png|40px]] Ceil Component==
<blockquote>"''Outputs the smallest integer value that is bigger than or equal to the input."''</blockquote>
<blockquote>"''Transforms a given float input into the closest integer, rounding up."''</blockquote>
 
==[[File:Divide_Component.png|40px]] Divide Component==
==[[File:Divide_Component.png|40px]] Divide Component==
<blockquote>"''Outputs the divided value of the received signals."''</blockquote>
<blockquote>"''Outputs the divided value of the received signals."''</blockquote>
==[[File:Exponentiation Component.png|40px]] Exponentiation Component==
==[[File:Exponentiation Component.png|40px]] Exponentiation Component==
<blockquote>"''Outputs the input raised to a given power."''</blockquote>
<blockquote>"''Outputs the input raised to a given power."''</blockquote>
==[[File:Factorial_Component.png|40px]] Factorial Component==
==[[File:Factorial_Component.png|40px]] Factorial Component==
<blockquote>"''Outputs the factorial of the input."''</blockquote>
<blockquote>"''Outputs the factorial of the input."''</blockquote>
==[[File:Floor_Component.png|40px]] Floor Component==
==[[File:Floor_Component.png|40px]] Floor Component==
<blockquote>"''Outputs the greatest integer value that is less than or equal to the input."''</blockquote>
<blockquote>"''Transforms a given float input into the closest integer, rounding down."''</blockquote>
 
==[[File:Modulo_Component.png|40px]] Modulo Component==
==[[File:Modulo_Component.png|40px]] Modulo Component==
<blockquote>"''Outputs the remainder when the input is divided by a specific number."''</blockquote>
<blockquote>"''Outputs the remainder when the input is divided by a specific number."''</blockquote>
==[[File:Multiply_Component.png|40px]] Multiply Component==
==[[File:Multiply_Component.png|40px]] Multiply Component==
<blockquote>"''Outputs the product of the received signals."''</blockquote>
<blockquote>"''Outputs the product of the received signals."''</blockquote>
==[[File:Round_Component.png|40px]] Round Component==
==[[File:Round_Component.png|40px]] Round Component==
<blockquote>"''Rounds a numerical input to the nearest integer value."''</blockquote>
<blockquote>"''Rounds a numerical input to the nearest integer value."''</blockquote>
==[[File:Square Root Component.png|40px]] Square Root Component==
==[[File:Square Root Component.png|40px]] Square Root Component==
<blockquote>"''Outputs the square root of the input."''</blockquote>
<blockquote>"''Outputs the square root of the input."''</blockquote>
==[[File:Subtract_Component.png|40px]] Subtract Component==
==[[File:Subtract_Component.png|40px]] Subtract Component==
<blockquote>"''Outputs the subtracted value of the received signals."''</blockquote>
<blockquote>"''Outputs the subtracted value of the received signals."''</blockquote>
=Trigonometry=
=Trigonometry=
==[[File:Acos_Component.png|40px]] Acos Component==
==[[File:Acos_Component.png|40px]] Acos Component==
<blockquote>"''Outputs the angle whose cosine is equal to the input."''</blockquote>
<blockquote>"''Outputs the angle whose cosine is equal to the input."''</blockquote>
Line 262: Line 236:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Atan_Component.png|40px]] Atan Component==
==[[File:Atan_Component.png|40px]] Atan Component==
<blockquote>"''Outputs the angle whose tangent is equal to the input. If the "signal_in_x" and "signal_in_y" connections are used, the input is interpreted as a vector and the angle calculated using Atan2."''</blockquote>
<blockquote>"''Outputs the angle whose tangent is equal to the input. If the "signal_in_x" and "signal_in_y" connections are used, the input is interpreted as a vector and the angle calculated using Atan2."''</blockquote>
Line 278: Line 251:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Cos_Component.png|40px]] Cos Component==
==[[File:Cos_Component.png|40px]] Cos Component==
<blockquote>"''Outputs the cosine of the input."''</blockquote>
<blockquote>"''Outputs the cosine of the input."''</blockquote>
Line 290: Line 262:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Sin_Component.png|40px]] Sin Component==
==[[File:Sin_Component.png|40px]] Sin Component==
<blockquote>"''Outputs the sine of the input."''</blockquote>
<blockquote>"''Outputs the sine of the input."''</blockquote>
Line 302: Line 273:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Tan_Component.png|40px]] Tan Component==
==[[File:Tan_Component.png|40px]] Tan Component==
<blockquote>"''Outputs the tangent of the input."''</blockquote>
<blockquote>"''Outputs the tangent of the input."''</blockquote>
Line 314: Line 284:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
=Misc=
=Misc=
==[[File:Color_Component.png|40px]] Color Component==
==[[File:Color_Component.png|40px]] Color Component==
<blockquote>"''Outputs a combined color signal for light control."''</blockquote>
<blockquote>"''Outputs a combined color signal for light control."''</blockquote>
Line 336: Line 304:
|output1tt=The combined color signal.
|output1tt=The combined color signal.
}}
}}
 
==[[File:Concat_Component.png|40px|link=Special:FilePath/Concat_Component.png]] Concatenation Component ==
==[[File:Concat_Component.png|40px]] Concatenation Component ==
<blockquote>"``Joins the inputs together and outputs the joined value (for example, the inputs "mud" and "raptor" would output "mudraptor")."``</blockquote>
<blockquote>"``Joins the inputs together and outputs the joined value (for example, the inputs "mud" and "raptor" would output "mudraptor")."``</blockquote>
<small>Hover over pins to see their descriptions</small>
<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
Line 364: Line 330:
|output1tt=The delayed signal.
|output1tt=The delayed signal.
}}
}}
==[[File:Memory_Component.png|40px]] Memory Component==
==[[File:Memory_Component.png|40px]] Memory Component==
<blockquote>"''Outputs a stored value that can be updated from other sources. Use the signal_in connection to set the stored value, and the signal_store input to toggle whether the received signals should be stored."''</blockquote>
<blockquote>"''Outputs a stored value that can be updated from other sources. Use the signal_in connection to set the stored value, and the signal_store input to toggle whether the received signals should be stored."''</blockquote>
Line 378: Line 343:
|output1tt=The currently stored signal
|output1tt=The currently stored signal
}}
}}
==[[File:Oscillator.png|40px]] Oscillator==
==[[File:Oscillator.png|40px]] Oscillator==
<blockquote>"''Sends out a periodic, oscillating signal."''</blockquote>
<blockquote>"''Sends out a periodic, oscillating signal."''</blockquote>
<!-- Sends out a periodic, oscillating signal. This includes pulse which periodically gives out 1 signals, sine sends out -1 and 1 signals, and square sends out 0 and 1 signals. -->
 
The '''Oscillator''' is an electrical component used to provide a signal that changes over time.
The '''Oscillator''' is an electrical component used to provide a signal that changes over time.


Line 395: Line 359:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Relay_Component.png|40px]] Relay Component==
==[[File:Relay_Component.png|40px]] Relay Component==
<blockquote>"''When switched on, forwards all received signals from the input connections to the outputs."''</blockquote>
<blockquote>"''When switched on, forwards all received signals from the input connections to the outputs."''</blockquote>
Line 423: Line 386:
|output4tt=The current state of the relay.
|output4tt=The current state of the relay.
}}
}}
==[[File:Wifi_Component.png|40px]] Wifi Component==
==[[File:Wifi_Component.png|40px]] Wifi Component==
<blockquote>"''Allows remote communication between other wifi components that are using the same channel."''</blockquote>
<blockquote>"''Allows remote communication between other wifi components that are using the same channel."''</blockquote>
<!-- Used to send and receive signals from other wifi components if their channel is the same.
*Used to minimize wiring - especially in more complex systems where the same command is sent to multiple locations (where wiring would be messy)
*Used for long range control wires can't manage (eg. in drones or remote-controlled shuttles) -->


The '''Wifi Component''' is an electrical component used to transfer signals over long distances.
The '''Wifi Component''' is an electrical component used to transfer signals over long distances.
Line 443: Line 402:
|output1tt=The recieved signal.
|output1tt=The recieved signal.
}}
}}
{{Components Nav}}
{{Components Nav}}

Revision as of 15:41, 7 February 2021

Template:Stub

Wiring Components
Crafting
Fabricator
Requirements
Skill: Electrical: 20
Deconstructor Yield
Technical
Identifier
Categories

Logic

And Component

"Sends a signal when both inputs receive a signal within a set period of each other."

The And Component is an electrical component used to check if both inputs are receiving a signal.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In_1
Signal_In_2
Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out
The output of the component.
Requires: Screwdriver

"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1

Equals Component

"Sends a signal when both inputs receive the same signal."

The Equals Component is an electrical component used to check if both inputs are the same.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In_1
Signal_In_2
The input of the first signal.
The input of the second signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Greater Component

"Sends a signal if the value the signal_in1 input is larger than the signal_in2 input."

The Greater Component is an electrical component used to check if one input is higher than the other.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In_1
Signal_In_2
The input of the first signal.
The input of the second signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Not Component

"Sends a signal when the input is NOT receiving a signal."

The Not Component is an electrical component used to invert a signal.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The input signal.
Signal_Out
The output of the component.
Requires: Screwdriver

"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input Output
0 1
1 0

Or Component

"Sends a signal if either of the inputs receives a signal."

The Or Component is an electrical component used to check if any input is receiving a signal.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In_1
Signal_In_2
Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out
The output of the component.
Requires: Screwdriver

"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1

File:RegEx Component.png RegEx Find Component

"Sends a signal if the received signal matches a specific regular expression pattern."

The RegEx Find Component is an electrical component used to match an exact string.

It is most commonly used with a Terminal.

Click here for a tutorial on regular expressions. Click here to create/test regular expressions.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The input signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Signal Check Component

"Sends a signal when a signal matching a specific value is received."

The Signal Check Component is an electrical component used to check if 2 signals match.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
Set_Output
Set_Targetsignal
The input signal.
Sets the "true" output.
Sets the signal that must be matched to. (Optional, can be set in editor)
Signal_Out
The output of the component.
Requires: Screwdriver

Xor Component

"Sends a signal if either of the inputs, but not both, receives a signal."

The Xor Component is an electrical component used to check if only one input is receiving a signal.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In_1
Signal_In_2
Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out
The output of the component.
Requires: Screwdriver

"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 0

Math

Abs Component

"Outputs the absolute value of the input."

Adder Component

"Outputs the sum of the received signals."

Ceil Component

"Transforms a given float input into the closest integer, rounding up."

Divide Component

"Outputs the divided value of the received signals."

Exponentiation Component

"Outputs the input raised to a given power."

Factorial Component

"Outputs the factorial of the input."

Floor Component

"Transforms a given float input into the closest integer, rounding down."

Modulo Component

"Outputs the remainder when the input is divided by a specific number."

Multiply Component

"Outputs the product of the received signals."

Round Component

"Rounds a numerical input to the nearest integer value."

Square Root Component

"Outputs the square root of the input."

Subtract Component

"Outputs the subtracted value of the received signals."

Trigonometry

Acos Component

"Outputs the angle whose cosine is equal to the input."

The Acos Component is an electrical component that performs the inverse cosine function; cos-1(x).

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The input signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Asin Component

"Outputs the angle whose sine is equal to the input."

The Asin Component is an electrical component that performs the inverse sine function; sin-1(x).

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The input signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Atan Component

"Outputs the angle whose tangent is equal to the input. If the "signal_in_x" and "signal_in_y" connections are used, the input is interpreted as a vector and the angle calculated using Atan2."

The Atan Component is an electrical component that performs the inverse tan function; tan-1(x).

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
Signal_In_X
Signal_In_Y
The input signal.
The input of the X signal.
The input of the Y signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Cos Component

"Outputs the cosine of the input."

The Cos Component is an electrical component that performs the cosine function; cos(x).

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The input signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Sin Component

"Outputs the sine of the input."

The Sin Component is an electrical component that performs the sine function; sin(x).

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The input signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Tan Component

"Outputs the tangent of the input."

The Tan Component is an electrical component that performs the tangent function; tan(x).

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The input signal.
Signal_Out
The output of the component.
Requires: Screwdriver

Misc

Color Component

"Outputs a combined color signal for light control."

The Color Component is an electrical component used to provide a color signal for lamps/lights.

It is most commonly used in tandem with Light Components for easily changeable lighting.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_R
Signal_G
Signal_B
Signal_A
The brightness of the red channel.
The brightness of the green channel.
The brightness of the blue channel.
The transparency of the alpha channel.
Signal_Out
The combined color signal.
Requires: Screwdriver

Concatenation Component

"``Joins the inputs together and outputs the joined value (for example, the inputs "mud" and "raptor" would output "mudraptor")."``

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In_1
Signal_In_2
Input of the first signal.
Input of the second signal.
Signal_Out
The joined value.
Requires: Screwdriver


Delay Component

"Delays all received signals for a specific amount of time."

The Delay Component is an electrical component used to delay a signal for a short amount of time.

It is most commonly used in tandem with Terminals for custom commands.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
The signal to be delayed.
Signal_Out
The delayed signal.
Requires: Screwdriver

Memory Component

"Outputs a stored value that can be updated from other sources. Use the signal_in connection to set the stored value, and the signal_store input to toggle whether the received signals should be stored."

The Memory Component is an electrical component used to store signals for later use.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
Signal_Store
The signal to be stored
Sets whether signals will be stored (1=yes, 0=no)
Signal_Out
The currently stored signal
Requires: Screwdriver

Oscillator

"Sends out a periodic, oscillating signal."

The Oscillator is an electrical component used to provide a signal that changes over time.

It is most commonly used in tandem with a Subtract Component for timers or countdowns.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Set_Frequency
Set_Outputtype
Sets the frequency of the oscillator, in Hz (Hertz).
Sets the output type of the oscillator (0=pulse, 1=sine, 2=square).
Signal_Out
The output of the component.
Requires: Screwdriver

Relay Component

"When switched on, forwards all received signals from the input connections to the outputs."

The Relay Component is an electrical component used to disconnect power or signals from a circuit.

It is most commonly used for providing toggleable power to lights or duplicating signals.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Power_In
Signal_In_1
Signal_In_2
Toggle_State
Set_State
Power input from a power network.
The input of the first signal.
The input of the second signal.
Toggles the relay between on and off when a signal of 1 is supplied.
Sets the current state of the relay (1=on, 2=off).
Power_Out
Signal_Out_1
Signal_Out_2
State_Out
Power output to a power network.
The output of the first signal.
The output of the second signal.
The current state of the relay.
Requires: Screwdriver

Wifi Component

"Allows remote communication between other wifi components that are using the same channel."

The Wifi Component is an electrical component used to transfer signals over long distances.

It can also output into text radio chat.

Hover over pins to see their descriptions

Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
Set_Channel
The signal to be transmitted.
Sets the current wifi channel.
Signal_Out
The recieved signal.
Requires: Screwdriver
v·d·e·h
Electrical Components
Alarms
Detectors
Interactable
Wiring Components
Misc