Barotrauma Guide

HalfdeadKiller's Component Book. for Barotrauma

HalfdeadKiller’s Component Book.

Overview

HalfdeadKiller’s thoughts on Barotrauma Components and what they do. This guide will probably be either Half-assed or WIP, since I’m bad at guides.

0. Introduction

This guide assumes you are semi-familiar with the Sub-Editor, and you know you can edit the values of various items/machines.

Alright. So let’s start with figuring out what signal is. Signal is simply a value. This can be Text, R,G,B,A , 1, 0, anything. It can even be localization definitions, such as those found in englishvanilla.xml. Now, the next important thing to understand, is the existence of Blank Signal. Some people use Null signal to describe Blank signal, both would be correct. I simply prefer saying Blank since it’s what I’ve used for years.

Another very important thing to understand, is Blank signal is NOT 0. 0 is signal, and different machines react to 0 differently than Blank signal.

Blank signal is literally the absence of signal. This is achieved by deleting everything from the True or False output fields. Different components interpret signal differently. For example, OR components set to True when one of their signal pins receive a Signal that is not 0, and not Blank. This means if you output a value of “Signal” or “10”, the OR component will output it’s True value.

1. Relay Component

A relay component has a large amount of Input and Output pins on it, and seems intimidating to some players. They are actually pretty simple.

RelayComponent Properties
————————————–
Max Power – The maximum amount of power the Relay can output, regardless of the load being requested from it.
Is On – Checkbox that tells the game if the Relay starts in the On (1) position.
Can Be Overloaded – Checkbox that tells the game that the relay can be damaged from overvoltage.

Input Pins
————-
Power_In – This receives power from the power grid.
Signal_In_1 – This receives signal input from things that output signal.
Signal_In_2 – This receives signal input from things that output signal.
Toggle_State – This toggles the state of the relay from 1 to 0 when any signal that is not Blank is received on it.
Set_State – This sets the state of the relay from On, to Off, depending on the signal being sent to it. Blank signal will do nothing. 0 will turn it Off. Any signal that is not 0 will turn it On.

Output Pins
—————-
Power_Out – This outputs power that is received on the power_in pin if the relay’s state is 1. The maximum output is governed by the Relay’s “Max Power” value.
Signal_Out_1 – This output the signal that is input on Signal_In_1 if the relay is 1. It outputs Blank if the relay state is 0.
Signal_Out_2 – This output the signal that is input on Signal_In_1 if the relay is 1. It outputs Blank if the relay state is 0.
State_Out – This outputs the state of the relay. 1 if On, and 0 if Off. This signal constantly repeats.

SteamSolo.com