This article is a stub.

Wiring: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
BTGamepedia>QuaternionMark
No edit summary
mNo edit summary
(21 intermediate revisions by 14 users not shown)
Line 1: Line 1:
'''Wiring''', also called the '''electricity''', is an essentially gameplay mechanics used for supplying power to various systems throughout the [[:Category:Submarines|submarine]] and for connecting certain items and devices.
{{Version|2=For a (hopefully) more up-to-date guide, [https://regalis11.github.io/BaroModDoc/Editors/SubmarineEditor.html#wiring click here]|stub=yes}}
'''Wiring''' is a central gameplay mechanic used for supplying power to various systems throughout the [[Submarines|submarine]] and for creating complex devices.


==Function==
== Usage ==
Some items and devices can be connected to each other using wires. The most obvious use of wiring is carrying power from the reactor to various devices, but wires can also carry various types of signals which can be used to build a wide range of complex systems. Think redstone in Minecraft.


Items that can be connected via wires have a connection panel, which can be accessed by selecting the item while holding a screwdriver in either hand. The connection panels can have several different connectors, each of which is marked with a label that describes what it does.
Some [[items]] and [[Installations|devices]] can be connected to each other using [[Wire|wires]] (it is possible to lock wiring of an installation or item, preventing wiring, in the [https://regalis11.github.io/BaroModDoc/Editors/SubmarineEditor.html Submarine Editor]). The most obvious use of wiring is carrying power from the [[Nuclear Reactor|reactor]] to various devices, but through usage of [[Wiring Components|wiring components]] more advanced circuits can be built which can be used to build a wide range of complex systems.
[[File:Rewiring.png|thumb|220x220px]]


For example, doors have three connectors: toggle, set_state and state_out. If the "toggle"-connector receives a signal, the door closes/opens. If "set_state" receives a signal "0", the door closes, and if it receives "1", the door opens. "State_out" simply sends out "1" or "0", depending on whether the door is open or closed.
* The color of wires has no effect on function, the various colors are used only for organization.
 
Items that can be connected via wires have a connection panel, which can be accessed by selecting the item while holding a [[Screwdriver|screwdriver]] in either hand. The connection panels can have several different connectors, each of which is marked with a label that describes what it does.
 
For example, [[Doors|doors]] have three connectors: toggle, set_state and state_out. If the "toggle"-connector receives a signal, the door closes/opens. If "set_state" receives a signal "0", the door closes, and if it receives "1", the door opens. "State_out" simply sends out "1" or "0", depending on whether the door is open or closed.


New wiring can be laid out by selecting an item while holding a screwdriver and a wire. The wire will be shown at the bottom of the connection panel, and it can be dragged to any of the connectors in the panel. After the wire is plugged in, the other end needs to be connected to some other item. This is done the same way as the first connection: when selecting another item, the other end of the wire will be shown at the bottom of the connection panel where it can be plugged in to the desired connection.
New wiring can be laid out by selecting an item while holding a screwdriver and a wire. The wire will be shown at the bottom of the connection panel, and it can be dragged to any of the connectors in the panel. After the wire is plugged in, the other end needs to be connected to some other item. This is done the same way as the first connection: when selecting another item, the other end of the wire will be shown at the bottom of the connection panel where it can be plugged in to the desired connection.
[[Category:Gameplay Elements]]
 
Some items and devices have a connection panel where wires can be plugged in. The panels can have several different inputs and outputs, some sending signals out depending on the state of the item and some controlling the item in one way or another.
 
Rewiring devices that use power can shock users if their [[Skills#Electrical_Engineering|Electrical Engineering skill]] is too low, dealing damage.
 
== Controls in-game ==
 
While holding a wire in one hand and a screwdriver in the other, pointing to an installation to highlight it and pressing {{Key|E}} allows attaching the wire to it through the connection panel.
In the connection panel, the new wire is shown at the bottom, still loose. Connecting it to an outlet is done by {{Key|mouse|left}}drag-and-dropping it on the outlet. The connection panel can then be safely closed, and the same procedure must be performed on the second installation. Unplugging a wire from an outlet is done the same way.
While drawing wire through the submarine between two installations, {{Key|mouse|left}}left-click allows attaching the wire to the wall and {{Key|mouse|right}}right-click cancels the last of such actions.
 
* When the wire is not connected on either end, drag-and-dropping it in the inventory collects the wire.
* While holding a connected wire, it is still possible to use buttons, doors, and hatches. This can be used to drag a wire very long distances or even outside the submarine.
 
== Gallery ==
 
<gallery mode="nolines">
File:Wiring Interface Door.png|thumb|A wiring interface for a door.
</gallery>
 
{{Universal nav}}
 
[[Category:Game Mechanics]]

Revision as of 18:39, 29 June 2022

Data is potentially outdated
Last updated for an unknown version
Last mentioned in changelog 1.0.20.1
The current game version is 1.2.8.0
Notes: For a (hopefully) more up-to-date guide, click here

Wiring is a central gameplay mechanic used for supplying power to various systems throughout the submarine and for creating complex devices.

Usage

Some items and devices can be connected to each other using wires (it is possible to lock wiring of an installation or item, preventing wiring, in the Submarine Editor). The most obvious use of wiring is carrying power from the reactor to various devices, but through usage of wiring components more advanced circuits can be built which can be used to build a wide range of complex systems.

  • The color of wires has no effect on function, the various colors are used only for organization.

Items that can be connected via wires have a connection panel, which can be accessed by selecting the item while holding a screwdriver in either hand. The connection panels can have several different connectors, each of which is marked with a label that describes what it does.

For example, doors have three connectors: toggle, set_state and state_out. If the "toggle"-connector receives a signal, the door closes/opens. If "set_state" receives a signal "0", the door closes, and if it receives "1", the door opens. "State_out" simply sends out "1" or "0", depending on whether the door is open or closed.

New wiring can be laid out by selecting an item while holding a screwdriver and a wire. The wire will be shown at the bottom of the connection panel, and it can be dragged to any of the connectors in the panel. After the wire is plugged in, the other end needs to be connected to some other item. This is done the same way as the first connection: when selecting another item, the other end of the wire will be shown at the bottom of the connection panel where it can be plugged in to the desired connection.

Some items and devices have a connection panel where wires can be plugged in. The panels can have several different inputs and outputs, some sending signals out depending on the state of the item and some controlling the item in one way or another.

Rewiring devices that use power can shock users if their Electrical Engineering skill is too low, dealing damage.

Controls in-game

While holding a wire in one hand and a screwdriver in the other, pointing to an installation to highlight it and pressing E allows attaching the wire to it through the connection panel. In the connection panel, the new wire is shown at the bottom, still loose. Connecting it to an outlet is done by Left Mousedrag-and-dropping it on the outlet. The connection panel can then be safely closed, and the same procedure must be performed on the second installation. Unplugging a wire from an outlet is done the same way. While drawing wire through the submarine between two installations, Left Mouseleft-click allows attaching the wire to the wall and Right Mouseright-click cancels the last of such actions.

  • When the wire is not connected on either end, drag-and-dropping it in the inventory collects the wire.
  • While holding a connected wire, it is still possible to use buttons, doors, and hatches. This can be used to drag a wire very long distances or even outside the submarine.

Gallery

v·d·e·h
Barotrauma
Creatures
Pets Cthulhu    •   Defense Bot    •   Huskified Storage Container    •   Orange Boy    •   Peanut    •   Petraptor    •   Psilotoad
Small Crawler    •   Crawler Hatchling    •   Fractal Guardian (Steam Cannon Fractal Guardian   •   EMP Fractal Guardian)    •   Hammerhead Spawn    •   Human    •   Husk    •   Husked Crawler    •   Husked Human    •   Leucocyte    •   Moloch Baby    •   Mudraptor (Mudraptor Unarmored)    •   Mudraptor Hatchling    •   Mudraptor Veteran    •   Swarm Feeder    •   Terminal Cells   •   Tiger Thresher    •   Tiger Thresher Hatchling
Large Black Moloch    •   Bone Thresher Crawler Broodmother   •   Giant Spineling    •   Golden Hammerhead    •   Hammerhead (Moping Jack)    •   Hammerhead Matriarch    •   Moloch    •   Spineling   •   Watcher
Abyssal Charybdis    •   Endworm    •   Latcher
Ending
Spoilers

Ancient     •   Cyborg Worm     •   Guardian Repair Bot     •   Jove     •   Portal Guardian

Items
Consumables
Ammo
Handheld Weapons
Tools
Clothing
Headgear
Innerwear
Outerwear
Other
Electrical
Alien
Gardening
Skill Books
Misc
Installations
Submarine Weapons
Small Turrets
Large Turrets
Loaders
Other
Navigation
Machines
Electrical
Structure
Other
Alien
Jobs
Jobs
Jobs
Skills
Skills
Talent Trees
Talents
Captain

Bounty Hunter

Inspirational Leader

Logistics Expert

Prodigy

Travelling Tradesman

Veteran

Camaraderie

Down with the Ship

Emergency Maneuvers

Gunsmith

Sailor with No Name

Steady Tune
Gunslinger Skipper Politician

Quickdraw

Leading By Example

Commendations

Deputy

Lone Wolf

Helmsman

Affiliation

Your Reputation...

Drunken Sailor

Inspiring Presence

Trickle Down

Campaigning

Networking

Big Guns

Family

Figurehead
Security Officer

Buff

First Aid Training

Physical Conditioning

Protect and Serve

Swole

War Stories

Bootcamp

By the Book

Don't Push It

Munitions Expertise

Weaponsmith
Frogman Enforcer Gunner

Boarding Party

Pacification Kit

Rifleman

Scavenger

Slayer

Beat Cop

Stonewall

Commando

Tandem Fire

Daring Dolphin

Easy Turtle

Crusty Seaman

Inordinate Exsanguination

Extra Powder

Gun Runner

Spec-Ops

Implacable

Warlord
Mechanic

Ballast Denizen

Engine Engineer

Machine Maniac

Multifunctional

Safety First

Salvage Crew

Ironman

Modular Repairs

Oiled Machinery

Pump N Dump

Retrofit
Scrapper Machinist Brawler

Miner

Hull Fixer

I Am That Guy

Mass Production

Residual Waste

Quickfixer

Tinkerer

Heavy Lifting

Mudraptor Wrestler

Scrap Savant

Tool Maintenance

Let it Drain

Berserker

Foolhardy

Iron Storm

Robotics

MECHanic
Engineer

Egghead

Grounded

Junction Junkie

Remote Monitor

Station Engineer

Aggressive Engineering

Fun With Fission

Melodic Respite

Sample Collection

Submarine Of Things
Weapons Engineer Electrician Physicist

Military Applications

Grid Maintainer

Unstoppable Curiosity

Arms Race

Heavy Hitter

Pyromaniac

Unlimited Power

Buzzin'

Cruisin'

Weapon Artisan

Better Than New

Danger Zone

Nuclear Option

Lightning Wizard

Ph.D in Nuclear Physics
Medical Doctor

Example of Health

Health Insurance

La Resistance

Nobody Important Dies

Self-care

Stayin' Alive

Blood Donor

Don't Die on Me!

Fireman's Carry

Medical Companion

No Pressure
Xenologist Medic Chemist

Gene Harvester

Medical Expertise

Plague Doctor

Bloody Business

Gene Splicer

Emergency Response

Medical Assistance

Delivery System

Lab Contacts

Blackmarket Genes

Gene Tampering

Dr. Submarine

Vitamin Supplements

Super Soldiers

What a Stench!

Genetic Genius

Miracle Worker

Macrodosing
Assistant

Crew Layabout

Mailman

Mule

Playing Catchup

Skedaddle

Starter Quest

Bag It Up

Indentured Servitude

Inspiring Tunes

Jenga Master

Peer Learning

Revenge Squad
Grayshirt Apprentice Clown

The Waiting List

Apprenticeship

Enroll into Clown College

Non-Threatening

Tasty Target

Journeyman

Logistics System

Water Prankster

An Apple A Day

Insurance Policy

Loyal Assistant

Treacherous Scum

Chonky Honks

Psycho Clown

The Friends We Made

Graduation Ceremony

True Potential
Guides
Gameplay
Hosting
In-Game Dedicated Servers

Campaign Settings

Karma

Permissions

Console Commands

Hosting a Dedicated Server

List of Config Files

Enabling Mods on a Dedicated Server

Tools & Modding
Editors XML Other

Submarine Editor

Official Guide to the Submarine Editor (Diving deeper)

Character Editor

Official Guide to the Character Editor

Creating mods

XML and how Barotrauma uses it

Content packages (Content types)

Overrides

Installing mods

Publishing to Steam Workshop

Troubleshooting