This article is a stub.

Wiring Components: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
BTGamepedia>Acekaburaky
(Moved info from separate component pages to this page as the info was too little to warrant their own article.)
No edit summary
 
(46 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[[Category:Electrical Components]]
{{Version|0.18.11.0|stub=yes}}{{Items infobox
{{Stub}}
{{Items infobox
| type = electrical
| name = Wiring Components
| name = Wiring Components
| noreq = yes
 
| cost = 90-125
| fabricator = Yes
| fabricator = Yes
| fabricatorskill = electrical
| fabricatorskill = electrical
Line 11: Line 7:
| fabricatortime = 10
| fabricatortime = 10
| fabricatormaterials = {{Hyperlink|FPGA Circuit}}
| fabricatormaterials = {{Hyperlink|FPGA Circuit}}
{{Hyperlink|Tin}}
| deconstructor = Yes
| deconstructor = Yes
| decontructortime = 10
| deconstructortime = 10
| deconstructormaterials = {{Hyperlink|FPGA Circuit}}
| deconstructormaterials = {{Hyperlink|FPGA Circuit}}
{{Hyperlink|Tin}}
 
| baseprice = 100
| outpostmultiplier = 1
| cityunbuyable = true
| citymultiplier = 1
| researchmultiplier = 1.25
| militarymultiplier = 1
| minemultiplier = 1
| engineeringmultiplier = 0.9
| minleveldifficulty = 15
 
| outpostminavailable = 1
| cityminavailable = 1
| researchminavailable = 1
| militaryminavailable = 1
| mineminavailable = 1
| engineeringminavailable = 1
 
<!-- Technical -->
| identifier = andcomponent, equalscomponent, greatercomponent, notcomponent, orcomponent, regexcomponent, signalcheckcomponent, xorcomponent, abscomponent, addercomponent, ceilcomponent, dividecomponent, exponentationcomponent, factorialcomponent, floorcomponent, modulocomponent, multiplycomponent, roundcomponent, squarerootcomponent, subtractcomponent, acoscomponent, asincomponent, atancomponent, coscomponent, sincomponent, tancomponent, colorcomponent, concatcomponent, delaycomponent, memorycomponent, oscillator, relaycomponent, wificomponten
| category = Electrical
| tags = smallitem, logic
}}
}}
<div class="noautonum" style="float:right;">__TOC__</div>
{{PAGENAME}} are craftable, placeable items used to automate certain tasks or provide information about various submarine systems.
=Controls=
*In-game, '''Wiring Components''' can be placed on background walls by "equipping" them in one hand, holding {{key|mouse|right}}right click, then {{key|mouse|left}}left clicking on any empty space on the background wall's grid (see also [[Placing|placing]]).
**Placed Wiring Components can be detached from the wall by making sure a Screwdriver is '''not''' equipped, equipping a [[Wrench]], and pressing {{key|E}}.
**Accessing the component's connection panel is done by equipping a [[Screwdriver]] and pressing {{key|E}}.
**For more details on wiring mechanics, see [[Barotrauma#Wiring Interface|Wiring Interface]].
*In the [https://regalis11.github.io/BaroModDoc/Editors/SubmarineEditor.html Submarine Editor], Wiring Mode is enabled by clicking the corresponding button to the top-right or pressing {{key|control}}+{{key|2}}.
**From there, the same commands as in-game apply, although the Editor allows access to all components and wires, as well as many other customization features.
**For more details, see [https://regalis11.github.io/BaroModDoc/Editors/SubmarineEditor.html#wiring Submarine Editor#wiring].
=Logic=
=Logic=
==[[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>
The '''And Component''' is an electrical component used to check if both inputs are receiving a truthy signal.


==[[File:And_Component.png|25px]] And Component==
<blockquote>"''Sends a signal when both inputs receive a signal within a set period of each other."''</blockquote>
The '''And Component''' is an electrical component used to check if both inputs are receiving a signal.


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = And Component
|input1=Signal_In_1
|input1=Signal_In_1
|input1tt=The input of the first signal.
|input1tt=The input of the first signal.
Line 34: Line 62:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
<small>"1" denotes ''any'' input, "0" denotes a blank ''or'' zero input</small>
<small>"1" denotes ''any non-zero'' signal, "0" denotes a "zero signal or no signal"</small>
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 49: Line 77:
| 1 || 1 || 1
| 1 || 1 || 1
|}
|}
 
==[[File:Equals_Component.png|40px]] Equals Component==
==[[File:Equals_Component.png|25px]] 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>
The '''Equals Component''' is an electrical component used to check if both inputs are the same.
The '''Equals Component''' is an electrical component used to check if both inputs are the same.


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Equals Component
|input1=Signal_In_1
|input1=Signal_In_1
|input1tt=The input of the first signal.
|input1tt=The input of the first signal.
|input2=Signal_In_2
|input2=Signal_In_2
|input2tt=The input of the second signal.
|input2tt=The input of the second signal.
|input3=set_output
|input3tt=The input for setting the signal that will be output if the conditions are met.
|output1=Signal_Out
|output1=Signal_Out
|output1tt=The output of the component.
|output1tt=The output of the 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>
The '''Greater Component''' is an electrical component used to check if one input is greater than the other.


==[[File:Greater_Component.png|25px]] Greater Component==
<blockquote>"''Sends a signal if the value the signal_in1 input is larger than the signal_in2 input."''</blockquote>
The '''Greater Component''' is an electrical component used to check if one input is higher than the other.


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Greater Component
|input1=Signal_In_1
|input1=Signal_In_1
|input1tt=The input of the first signal.
|input1tt=The input of the first signal.
|input2=Signal_In_2
|input2=Signal_In_2
|input2tt=The input of the second signal.
|input2tt=The input of the second signal.
|input3=set_output
|input3tt=The input for setting the signal that will be output if the conditions are met.
|output1=Signal_Out
|output1=Signal_Out
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
 
==[[File:Not_Component.png|40px]] Not Component==
==[[File:Not_Component.png|25px]] 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>
The '''Not Component''' is an electrical component used to invert a signal.
The '''Not Component''' is an electrical component used to invert a signal.
If it is set to continuous output, it will output even if not recieving a signal.


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Not Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 89: Line 121:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
<small>"1" denotes ''any'' input, "0" denotes a blank ''or'' zero input</small>
<small>"1" denotes ''any non-zero'' signal, "0" denotes a "zero signal or no signal"</small>
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 101: Line 133:
|}
|}


==[[File:Or_Component.png|25px]] 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>
The '''Or Component''' is an electrical component used to check if any input is receiving a signal.
The '''Or Component''' is an electrical component used to check if recieving any truthy (non-zero) signals.
Will output false if not recieving any truthy signals.
 


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Or Component
|input1=Signal_In_1
|input1=Signal_In_1
|input1tt=The input of the first signal.
|input1tt=The input of the first signal.
Line 116: Line 150:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
<small>"1" denotes ''any'' input, "0" denotes a blank ''or'' zero input</small>
<small>"1" denotes ''any non-zero'' signal, "0" denotes a "zero signal or no signal"</small>
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 132: Line 166:
|}
|}


==[[File:RegEx_Component.png|25px]] RegEx Find Component==
==[[File:RegEx Find 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.  
The '''RegEx Find Component''' is an electrical component used to match an exact string.
If not, the RegEx component will send out a <code>0</code>. -->
 
It is commonly used with a [[Terminal]].


The '''RegEx Find Component''' is an electrical component used to match an exact string.
Click '''[https://regexone.com/ here]''' for a tutorial on regular expressions. Click '''[https://regexr.com/ here]''' to create/test regular expressions.


It is most commonly used with a [[Terminal]].


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = RegEx Find Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
|input2=set_output
|input2tt=The input for setting the signal that will be output if the conditions are met.
|output1=Signal_Out
|output1=Signal_Out
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Signal_Check_Component.png|40px]] Signal Check Component==
<blockquote>"''Sends a signal when a signal matching a specific value is received."''</blockquote>
The '''Signal Check Component''' is an electrical component used to check if the received signal matches a target signal.
If the signal input matches the target value, the output is sent. If the signal does not match, the false output is sent.


==[[File:Signal_Check_Component.png|25px]] Signal Check Component==
<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.


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Signal Check Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 162: Line 199:
|input2tt=Sets the "true" output.
|input2tt=Sets the "true" output.
|input3=Set_Targetsignal
|input3=Set_Targetsignal
|input3tt=Sets the signal that must be matched to. (Optional, can be set in editor)
|input3tt=Sets the signal that must be matched to.
|output1=Signal_Out
|output1=Signal_Out
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}


==[[File:Xor_Component.png|25px]] 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>
The '''Xor Component''' is an electrical component used to check if only one input is receiving a signal.
The '''Xor Component''' is an electrical component used to check if exactly one input pin is receiving truthy signals.
 


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Xor Component
|input1=Signal_In_1
|input1=Signal_In_1
|input1tt=The input of the first signal.
|input1tt=The input of the first signal.
Line 182: Line 220:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
<small>"1" denotes ''any'' input, "0" denotes a blank ''or'' zero input</small>
<small>"1" denotes ''any non-zero'' signal, "0" denotes a "zero signal or no signal"</small>
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 197: Line 235:
| 1 || 1 || 0
| 1 || 1 || 0
|}
|}
=Math=
=Math=
 
==[[File:Abs Component.png|40px]] Abs Component==
==[[File:Abs Component.png|25px]] 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|25px]] 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|25px]] Ceil Component==
<blockquote>"''Transforms a given float input into the closest integer, rounding up."''</blockquote>
<blockquote>"''Outputs the smallest integer value that is bigger than or equal to the input."''</blockquote>
==[[File:Divide_Component.png|40px]] Divide Component==
 
==[[File:Divide_Component.png|25px]] 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|25px]] 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|25px]] 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|25px]] Floor Component==
<blockquote>"''Transforms a given float input into the closest integer, rounding down."''</blockquote>
<blockquote>"''Outputs the greatest integer value that is less than or equal to the input."''</blockquote>
==[[File:Modulo_Component.png|40px]] Modulo Component==
 
==[[File:Modulo_Component.png|25px]] 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|25px]] 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|25px]] 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|25px]] 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|25px]] 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|25px]] 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>
The '''Acos Component''' is an electrical component that performs the inverse cosine function; cos<sup>-1</sup>(x).
The '''Acos Component''' is an electrical component that performs the inverse cosine function; cos<sup>-1</sup>(x).


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Acos Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 249: Line 273:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
==[[File:Asin_Component.png|25px]] Asin Component==
==[[File:Asin_Component.png|40px]] Asin Component==
<blockquote>"''Outputs the angle whose sine is equal to the input."''</blockquote>
<blockquote>"''Outputs the angle whose sine is equal to the input."''</blockquote>
The '''Asin Component''' is an electrical component that performs the inverse sine function; sin<sup>-1</sup>(x).
The '''Asin Component''' is an electrical component that performs the inverse sine function; sin<sup>-1</sup>(x).


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Asin Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 260: Line 285:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
 
==[[File:Atan_Component.png|40px]] Atan Component==
==[[File:Atan_Component.png|25px]] 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>
The '''Atan Component''' is an electrical component that performs the inverse tan function; tan<sup>-1</sup>(x).
The '''Atan Component''' is an electrical component that performs the inverse tan function; tan<sup>-1</sup>(x).


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Atan Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 276: Line 301:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
 
==[[File:Cos_Component.png|40px]] Cos Component==
==[[File:Cos_Component.png|25px]] Cos Component==
<blockquote>"''Outputs the cosine of the input."''</blockquote>
<blockquote>"''Outputs the cosine of the input."''</blockquote>
The '''Cos Component''' is an electrical component that performs the cosine function; cos(x).
The '''Cos Component''' is an electrical component that performs the cosine function; cos(x).


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Cos Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 288: Line 313:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
 
==[[File:Sin_Component.png|40px]] Sin Component==
==[[File:Sin_Component.png|25px]] Sin Component==
<blockquote>"''Outputs the sine of the input."''</blockquote>
<blockquote>"''Outputs the sine of the input."''</blockquote>
The '''Sin Component''' is an electrical component that performs the sine function; sin(x).
The '''Sin Component''' is an electrical component that performs the sine function; sin(x).


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Sin Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 300: Line 325:
|output1tt=The output of the component.
|output1tt=The output of the component.
}}
}}
 
==[[File:Tan_Component.png|40px]] Tan Component==
==[[File:Tan_Component.png|25px]] Tan Component==
<blockquote>"''Outputs the tangent of the input."''</blockquote>
<blockquote>"''Outputs the tangent of the input."''</blockquote>
The '''Tan Component''' is an electrical component that performs the tangent function; tan(x).
The '''Tan Component''' is an electrical component that performs the tangent function; tan(x).


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Tan Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The input signal.
|input1tt=The input signal.
Line 312: Line 337:
|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|25px]] Color Component==
<blockquote>"''Outputs a combined color signal for light control."''</blockquote>
<blockquote>"''Outputs a combined color signal for light control."''</blockquote>
The '''Color Component''' is an electrical component used to provide a color signal for lamps/lights.
The '''Color Component''' is an electrical component used to provide a color signal for lamps/lights.
Line 321: Line 344:
It is most commonly used in tandem with [[Light Component|Light Components]] for easily changeable lighting.
It is most commonly used in tandem with [[Light Component|Light Components]] for easily changeable lighting.


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Color Component
|input1=Signal_R
|input1=Signal_R
|input1tt=The brightness of the red channel.
|input1tt=The brightness of the red channel.
Line 333: Line 357:
|output1=Signal_Out
|output1=Signal_Out
|output1tt=The combined color signal.
|output1tt=The combined color signal.
}}
==[[File:Concatenation_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>
{{Connection panel
|panelfor = Concatenation Component
|input1=Signal_In_1
|input1tt=Input of the first signal.
|input2=Signal_In_2
|input2tt=Input of the second signal.
|output1=Signal_Out
|output1tt=The joined value.
}}
}}


==[[File:Delay_Component.png|25px]] Delay Component==
==[[File:Delay_Component.png|40px]] Delay Component==
<blockquote>"''Delays all received signals for a specific amount of time."''</blockquote>
<blockquote>"''Delays all received signals for a specific amount of time."''</blockquote>
The '''Delay Component''' is an electrical component used to delay a signal for a short amount of time.
The '''Delay Component''' is an electrical component used to delay a signal for a short amount of time.
Line 341: Line 376:
It is most commonly used in tandem with [[Terminal|Terminals]] for custom commands.
It is most commonly used in tandem with [[Terminal|Terminals]] for custom commands.


<small>Hover over pins to see their descriptions</small>
 
{{Connection panel
{{Connection panel
|panelfor = Delay Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The signal to be delayed.
|input1tt=The signal to be delayed.
|input2=set_delay
|input2tt=The delay duration, in seconds.
|output1=Signal_Out
|output1=Signal_Out
|output1tt=The delayed signal.
|output1tt=The delayed signal.
}}
}}
==[[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 lock_state input to toggle whether the received signals should be stored."''</blockquote>
The '''Memory Component''' is an electrical component used to store signals for later use. This is one of the only components that will "output an empty string", "explicitly sending nothing to other components", instead of "not sending anything".


==[[File:Memory_Component.png|25px]] 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>
The '''Memory Component''' is an electrical component used to store signals for later use.


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Memory Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The signal to be stored
|input1tt=The signal to be stored
|input2=Signal_Store
|input2=LOCK_STATE
|input2tt=Sets whether signals will be stored (1=yes, 0=no)
|input2tt=Sets whether signals will be stored (1=yes, 0=no)
|output1=Signal_Out
|output1=Signal_Out
Line 363: Line 401:
}}
}}


==[[File:Oscillator.png|25px]] Oscillator==
==[[File:Oscillator Component.png|40px]] Oscillator Component==
<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.
* Frequency is in [https://en.wikipedia.org/wiki/Hertz Hertz] (Hz), 1 Hz is once per second, 0.5 Hz is once every 2 seconds and so on.
* The wave type may be set on the component by sending a number into set_outputtype.
{|
! Input || Wave || Description
|-
| 0 || Pulse || periodically sends out a signal of 1.
|-
| 1 || Sawtooth || sends out a periodic wave that increases linearly from 0 to 1.
|-
| 2 || Sine || sends out a sine wave oscillating between -1 and 1.
|-
| 3 || Square || sends out a signal that alternates between 0 and 1
|-
| 4 || Triangle || sends out a wave that alternates between increasing linearly from -1 to 1 and decreasing from 1 to -1.
|}


It is most commonly used in tandem with a [[Subtract Component]] for timers or countdowns.
<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Oscillator Component
|input1=Set_Frequency
|input1=Set_Frequency
|input1tt=Sets the frequency of the oscillator, in Hz (Hertz).
|input1tt=Sets the frequency of the oscillator, in Hz (Hertz).
Line 380: Line 430:
}}
}}


==[[File:Relay_Component.png|25px]] 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>
The '''Relay Component''' is an electrical component used to disconnect power or signals from a circuit.
The '''Relay Component''' is an electrical component used to disconnect power or signals from a circuit.
In-game, a relay may only pass a maximum of 1000 kW however in the [https://regalis11.github.io/BaroModDoc/Editors/SubmarineEditor.html Submarine Editor] this can be adjusted.


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


<small>Hover over pins to see their descriptions</small>
When switched off (State = 0) the '''Relay Component''' does not transfer power via the <code>power_out</code> pin.
 
 
{{Connection panel
{{Connection panel
|panelfor = Relay Component
|input1=Power_In
|input1=Power_In
|input1tt=Power input from a power network.
|input1tt=Power input from a power network.
|input1color=red
|input2=Signal_In_1
|input2=Signal_In_1
|input2tt=The input of the first signal.
|input2tt=The input of the first signal.
Line 395: Line 452:
|input3tt=The input of the second signal.
|input3tt=The input of the second signal.
|input4=Toggle_State
|input4=Toggle_State
|input4tt=Toggles the relay between on and off when a signal of 1 is supplied.
|input4tt={{ToggleState}}
|input5=Set_State
|input5=Set_State
|input5tt=Sets the current state of the relay (1=on, 2=off).
|input5tt={{SetState|Relay}}
|output1=Power_Out
|output1=Power_Out
|output1color=red
|output1tt=Power output to a power network.
|output1tt=Power output to a power network.
|output2=Signal_Out_1
|output2=Signal_Out_1
Line 406: Line 464:
|output4=State_Out
|output4=State_Out
|output4tt=The current state of the relay.
|output4tt=The current state of the relay.
|output5=Load_Value_Out
|output5tt=Outputs the current load level as a number (required power).
|output6=Power_Value_Out
|output6tt=Outputs the current power level as a number (supplied power).
}}
}}
==[[File:Wifi_Component.png|40px]] Wifi Component==
<blockquote>"''Allows remote communication between other wifi components that are using the same channel."''</blockquote>
The '''Wifi Component''' is an electrical component used to transfer signals over long distances.


==[[File:Wifi_Component.png|25px]] Wifi Component==
It can also be linked to radio chat, forwarding text messages from players to the <code>signal_out</code> pin and printing values sent to the <code>signal_in</code> pin into radio chat.
<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.  
When printing messages to radio chat, the name of the connected component (eg "Memory Component") is displayed as the author of the message.
*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.
`Range` (cm) can be set to limit how far the signal will travel.


It can also output into text radio chat.


<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Wifi Component
|input1=Signal_In
|input1=Signal_In
|input1tt=The signal to be transmitted.
|input1tt=The signal to be transmitted.
Line 427: Line 489:
|output1tt=The recieved signal.
|output1tt=The recieved signal.
}}
}}
{{Components Nav}}


{{Components Nav}}
{{Installations nav}}
[[Category:Electrical Components]]

Latest revision as of 16:05, 29 December 2023

Data is potentially outdated
Last updated for version 0.18.11.0
The current game version is 1.4.5.0
Wiring Components
Crafting
Fabricator
Requirements
Skill: Electrical: 20
Deconstructor Yield
Store
Minimum Difficulty 15%
Base Price 100 mk
Outposts
OutpostOutpost Buy Sell
Habitation OutpostHabitation 100 mk 30 mk
ColonyColony N/A 30 mk
Research OutpostResearch 125 mk 37 mk
Military OutpostMilitary 100 mk 30 mk
Mining OutpostMining 100 mk 30 mk
Medical MerchantMedical Merchant N/A 30 mk
Engineer MerchantEngineer Merchant 90 mk 27 mk
Armory MerchantArmory Merchant N/A 30 mk
Children of The HonkmotherClown Merchant N/A 30 mk
The Church of HuskHusk Merchant N/A 30 mk
Technical
Identifier andcomponent, equalscomponent, greatercomponent, notcomponent, orcomponent, regexcomponent, signalcheckcomponent, xorcomponent, abscomponent, addercomponent, ceilcomponent, dividecomponent, exponentationcomponent, factorialcomponent, floorcomponent, modulocomponent, multiplycomponent, roundcomponent, squarerootcomponent, subtractcomponent, acoscomponent, asincomponent, atancomponent, coscomponent, sincomponent, tancomponent, colorcomponent, concatcomponent, delaycomponent, memorycomponent, oscillator, relaycomponent, wificomponten
Categories Electrical
Tags smallitem, logic

Wiring Components are craftable, placeable items used to automate certain tasks or provide information about various submarine systems.

Controls

  • In-game, Wiring Components can be placed on background walls by "equipping" them in one hand, holding Right Mouseright click, then Left Mouseleft clicking on any empty space on the background wall's grid (see also placing).
    • Placed Wiring Components can be detached from the wall by making sure a Screwdriver is not equipped, equipping a Wrench, and pressing E.
    • Accessing the component's connection panel is done by equipping a Screwdriver and pressing E.
    • For more details on wiring mechanics, see Wiring Interface.
  • In the Submarine Editor, Wiring Mode is enabled by clicking the corresponding button to the top-right or pressing Ctrl+2.
    • From there, the same commands as in-game apply, although the Editor allows access to all components and wires, as well as many other customization features.
    • For more details, see Submarine Editor#wiring.

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 truthy signal.


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 non-zero signal, "0" denotes a "zero signal or no signal"

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.


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.
The input for setting the signal that will be output if the conditions are met.
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 greater than the other.


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.
The input for setting the signal that will be output if the conditions are met.
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. If it is set to continuous output, it will output even if not recieving a signal.

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 non-zero signal, "0" denotes a "zero signal or no signal"

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 recieving any truthy (non-zero) signals. Will output false if not recieving any truthy signals.


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 non-zero signal, "0" denotes a "zero signal or no signal"

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

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 commonly used with a Terminal.

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


Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
set_output
The input signal.
The input for setting the signal that will be output if the conditions are met.
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 the received signal matches a target signal.

If the signal input matches the target value, the output is sent. If the signal does not match, the false output is sent.


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.
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 exactly one input pin is receiving truthy signals.


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 non-zero signal, "0" denotes a "zero signal or no signal"

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).


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).


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).


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).


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).


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).


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.


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")."

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.


Connection Panel for Wiring Components
Hover over pins to see their descriptions.
Signal_In
set_delay
The signal to be delayed.
The delay duration, in seconds.
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 lock_state input to toggle whether the received signals should be stored."

The Memory Component is an electrical component used to store signals for later use. This is one of the only components that will "output an empty string", "explicitly sending nothing to other components", instead of "not sending anything".


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

Oscillator Component

"Sends out a periodic, oscillating signal."

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

  • Frequency is in Hertz (Hz), 1 Hz is once per second, 0.5 Hz is once every 2 seconds and so on.
  • The wave type may be set on the component by sending a number into set_outputtype.
Input Wave Description
0 Pulse periodically sends out a signal of 1.
1 Sawtooth sends out a periodic wave that increases linearly from 0 to 1.
2 Sine sends out a sine wave oscillating between -1 and 1.
3 Square sends out a signal that alternates between 0 and 1
4 Triangle sends out a wave that alternates between increasing linearly from -1 to 1 and decreasing from 1 to -1.
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.

In-game, a relay may only pass a maximum of 1000 kW however in the Submarine Editor this can be adjusted.

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

When switched off (State = 0) the Relay Component does not transfer power via the power_out pin.


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 state on any signal.
Sets the state of the Relay. (0 = Off, all other signals = On)
Power_Out
Signal_Out_1
Signal_Out_2
State_Out
Load_Value_Out
Power_Value_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.
Outputs the current load level as a number (required power).
Outputs the current power level as a number (supplied power).
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 be linked to radio chat, forwarding text messages from players to the signal_out pin and printing values sent to the signal_in pin into radio chat.

When printing messages to radio chat, the name of the connected component (eg "Memory Component") is displayed as the author of the message.

`Range` (cm) can be set to limit how far the signal will travel.


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


v·d·e·h
Installations
Submarine Weapons
Small Turrets
Large Turrets
Loaders
Other
Navigation
Machines
Electrical
Structure
Other
Alien