This article requires cleanup to meet quality standards.
This article is a stub.

Submarine Editor

From Official Barotrauma Wiki
Revision as of 12:36, 29 March 2023 by G3jzer (talk | contribs)
Jump to: navigation, search
Data is potentially outdated
Last updated for an unknown version
Last mentioned in changelog 1.4.4.1
The current game version is 1.4.6.0
Notes: For the official guide, click here.
Cleanup Notes: Page layout is somewhat hard to follow. Should add more images.

The Submarine Editor is a tool that allows creating custom structures.
The Submarine Editor is accessible from either the button in the main menu or the "editsubs" command.

Interface


At the top left, there is a panel listing the number of Items, Structures, Walls, Lights, and Shadow-casting lights in your edit. These numbers provide a general metric for the complexity of your file. The numbers will turn from green to red as they reach a level with significant (anticipated) performance impact.
Along the bottom is the Entity Menu, which can be toggled open and closed with the arrow button at the top of the menu. This is where you will find the components to create your edit. You can filter components using the textbox in the center of the Entity Menu and by selecting a category on the right. From left to right the categories are All, Structure, Decorative, Machine, Equipment, Electrical, Material, Misc, Alien, Wrecked, Thalamus, ItemAssembly, and Legacy.
After selecting an object, clicking in the editor window will place the object. Right clicking will cancel object placement. Clicking the name of an object will select it for placement.
Adjustment of an object's position can be done by clicking and dragging the object. A finer degree of movement can be accomplished by selecting the object and using the arrow keys. Additionally, holding shift will ignore the grid when placing an object using the mouse.

Top Toolbar

This section will go over the buttons and information on the top toolbar of the sub editor, from left to right.

Back

Returns the game to the main menu.

Open...

Opens the saved submarines menu, where you can load an autosave or select a sub to open/delete.
Saved submarines can be found in the "..\Barotrauma\Submarines" folder.

Load Autosave

Opens a dropdown menu containing a list of loadable autosaves with the name of the sub and the time it was saved.
Clicking on a save in this list will automatically open it.
Autosaves can be found in the hidden "..\Barotrauma\Submarines\.AutoSaves" folder.

Delete

Permanently delete the selected submarine from the submarines folder.
Warning: This is non-reversible.

Save (Ctrl + S)

This button opens the save menu, with text fields "Name" and "Description", a dropdown menu for "Submarine type", the settings "Shuttle" and "Hide in menus", and the "Required content packages". The save menu also has a "Preview Image" which can be automatically generated using the "Create" button or can be picked from your files using the "Browse..." button. Finally, the save menu has "Cancel" and "Save" buttons, which cancel or confirm your save respectively.

Submarine Type

With the submarine type "Submarine" selected, the "Price", "Class", "Recommended crew size" and "Recommended crew experience" characteristics appear. Everything is determined by you except the price, which is automatically calculated by the editor itself.

With the submarine type "Outpost module" selected, the "Module type", "Allow attaching to", "Location types", "Gap positions", "Maximum count", and "Commonness" characteristics appear. These options allow you to define what type of module you have created, the types of other modules it may be connected to, which types of campaign map locations this module can be generated in, where the gaps in the hull of the module are (defining where other modules connect to this one), how many instances of this module can be generated at one outpost, and how likely this module is to be found in an outpost.

With the submarine type "Outpost" or "Wreck" selected, you have no additional characteristics to edit.

Regardless of submarine type selected, your file will be saved to "...\Barotrauma\Submarines" as a ".sub" file.

Test

This button allows you to test your edit by spawning you and 2 crewmates into the .sub file in an otherwise empty ocean. If there are no spawnpoints present in your edit, you will receive an error message. Simply type "spawnpoint" into the filter textbox in the Entity Menu, click on the Spawnpoint, and place it within your edit. You will spawn as a Captain with standard spawn gear, so make sure to put the spawnpoint in a safe location.

Toggle Visibility

This button opens a menu to allow you to choose which types of entities are visible in the editor. The options from top to bottom are "Lighting", "Walls", "Structures", "Items", "Waypoints", "Spawnpoints", "Links", "Hulls", "Gaps", and "Thalamus". This button can be useful when trying to fine tune different aspects of your edit, without disturbing other layers.

Previously Used

This button opens a small window which shows the history of previously placed objects.

History

This button opens a drop-down menu which shows the edits you have made and allows you to jump back to specific edits. The history is cleared when exiting the editor.

Add Submarine

This button adds another submarine into the current submarine file. This button is NOT equivalent to "Open...Load" as the added submarine is non-editable and will simply appear as a green outline with a cross at the added file's origin. This tool can be used for adding things such as smaller vessels, escape pods, or detachable sections into your current edit. For example, if you open the Kastrull submarine file, you will see the Kastrull's Drone at the bottom right of the editor as a green outline. The drone is attached to the Kastrull by clicking on the Kastrull's bottom docking hatch and then holding space while clicking on the green cross of the drone. You can test the success of this addition using the "Test" button. The Kastrull spawns with its drone attached. Note that this combination requires docking hatches oriented in a matching way, ie. a ship with only a top docking hatch cannot be connected to a ship with only a top docking hatch,a ship with a horizontal hatch cannot be connected to a ship with a vertical one, etc.

Edit Mode

This button puts the editor into "Edit Mode" (default mode). In this mode you can spawn and delete items. You can open/interact with items by pressing "E" or right-clicking the item and selecting "Open". More on this mode in the Editor Tools section.

Wiring Mode

This button puts the editor into "Wiring Mode". In this mode you gain a new menu on the left which contains every color of wire available in the game as well as an inventory where you have a screwdriver equipped. This mode allows you to wire power and signals between devices in your edit. More on this mode in the Editor Tools section.

Generate Waypoints Error creating thumbnail: File missing

This button will generate waypoints for AI navigation around the submarine based upon the layout of hulls, gaps, doors, hatches, and ladders. If you want your ship to be compatible for playing with bots you should double-check your waypoints after they have been generated. Every point on the ship you want the AI to access should be within character's reach of a waypoint. Connect waypoints by left-clicking on a waypoint, holding space, and then left-clicking the waypoint you want to connect it to. Pay special attention to the waypoints outside of the ship, as the auto-generated waypoints tend to intersect with the collision boxes of the railguns and coilguns, as well as being dangerously close to the propeller.

Info

This button displays the information about the submarine and character editors. Hopefully someday in the future this will contain official documentation and tutorials.

Editor Tools

Edit Mode

In edit mode, the user can spawn and delete entities using the Entity Menu. Items can be selected and placed in containers by holding the item over the container, holding shift, then releasing the item once the desired container is highlighted. Additionally, containers and appropriate items can be opened by mousing over them and pressing "E" or right-clicking them and selecting "Open". Once the inventory of the container is open, items can be selected from the Entity Menu and placed in inventory slots. Individual items can be placed by clicking once, multiple items can be placed by clicking and dragging over the inventory slots. This is especially useful when filling items with the same item multiple times, such as with shotguns, harpoon guns, and revolvers.

Entity Menu

The entity menu contains almost every item that can be found in the game. They are organized into different categories that can be selected via buttons in the top right corner of the menu. Users may filter items in the selected category by using the 'Filter' textbox on top of the menu.

All

The 'All' category displays items from all categories.

Structure

The 'Structure' category contains walls, fins and some decorative elements specific to a submarine's hull.

Decorative

'Decorative' items include background walls, signs and decorations.

Machine

The 'Machine' category contains functional devices.

Equipment

'Equipment' are items that can be carried, handled and/or equipped by characters.

Electrical

Items that relate to storing and distributing power and signals are found in the 'Electrical' category. This includes batteries, wires, lamps and logic components.

Material

The 'Material' category contains items used primarily in crafting.

Misc

The 'Misc' category contains items that don't fit into any other category.

Alien

The 'Alien' category is for items specific to the alien ruins.

Wrecked

The wrecked versions of items are in the 'Wrecked' category.

Thalamus

The 'Thalamus' is a special category comprised of items related to the Thalamus creature.

ItemAssembly

Multi-item assemblies saved in the editor are found under 'ItemAssembly'.

Legacy

The 'Legacy' category contains legacy items that aren't officially supported, but remain in the editor to preserve compatibility with older creations.

Linking

Links are used to associate two objects together within your edit. To link one object to another, select either object, hold space, then select the other. To unlink two objects, select one of them and repeat the process.

If an object can be linked with another object, the details will be presented in yellow text in the Object Properties underneath the object name. The object properties will prompt you to "Hold space and click with the mouse to link to another item" and will then specify "Allowed links". Sometimes you will attempt a space-click to link 2 objects together which are not allowed to be linked and no link will appear, while other times the link will appear in red. If you believe 2 devices should be able to be linked but you are not seeing the link appear, you may not have Links visible under the "Toggle Visibility" menu. When 2 objects are successfully linked, the link appears green.

Examples of items that can be linked are vents to oxygen generators (a necessity), coilgun, railgun, and depth charge loaders to their respective weapons (also necessary), and containers to nearby fabricators or deconstructors or other containers. Linked objects have a special object property called "Display Side By Side When Linked". This can be useful when trying to see if you have the material to craft a certain item in a fabricator. When done successfully, the link should turn purple. However, this property can also result in inventory menus overlapping and can be frustrating in practice, so best not to go overboard and link 3 large cabinets together. A special case of linking is when a room in your edit is not defined by a single rectangle. This can be overcome by placing many hull objects, linking them, and then placing gap objects between the hull objects to create one large hull.

Wiring Mode

See also: Wiring


In wiring mode, you gain a new menu on the left which contains every color of wire available in the game as well as an inventory where you have a screwdriver equipped. Clicking a wire from the menu will add it to the other hand of the player, allowing you to wire power and signals between devices in your edit. Wire nodes can be created by selecting an existing, placed wire with left-click, then "CTRL"+left-clicking on a straight portion of the wire. These nodes can then be dragged around the ship to make your wiring look neater (or worse, it's not a science). Right-clicking a wire node will delete it. Objects cannot be spawned or moved while in wiring mode. Unfortunately this includes very useful and commonly wire-dependent electrical components and sensors. Use "CTRL+1" to quickly switch to Edit Mode and "CTRL+2" to switch back. (More shortcuts in the Shortcuts section)

To (Re)wire a Device

Pressing "E" on a device in Wiring Mode allows you to rewire the device, opening up a new panel with various electrical input and output pins, depending on the device. When this panel is opened with a wire in your hand, the wire will appear on the panel. If not, you can click on the desired color of wire while the device wiring panel is open and the wire will appear on the panel. Click and drag the end of the wire to the desired pin to secure one end of the wire to the device. Right-click or press "ESC" to leave the device wiring panel. Now you can move to the device you want to connect the other end of the wire to, dragging the wire behind your cursor. Mouse over the desired device and again press "E". Again the wire in your hand will appear on the panel, drag the wire to the desired pin to secure the wire. When the wire pops into place, you will see a label generated beside the wire telling you the name of the device (and pin) the other end of the wire is connected to. To remove a wire from a pin, press "E" to bring up the wiring panel, then click and drag the end of the wire off of the undesired pin, but still on the panel. To remove the wire completely, drag the end of the wire off of the wiring panel.

Object Properties

After an object has been placed, the user can select it and edit its properties. See items, and installations for more specific information.

Design Considerations

Flood Management

See also: Maintenance#Flooding

Hull breaches are an almost inevitable occurrence in gameplay. Submarines can be designed to help manage flooding and mitigate its damaging effects. By designing a submarine to have several compartments, flooding can be localized, limiting damage to the power grid and disturbances to submarine buoyancy. Doors can be specifically wired to close automatically, or to have their state linked to a signal from a water detector. Indicators warning of high water levels on the opposite side of a door can prevent accidental flooding as well.

Bilge Systems

There are a variety of ways to set up a bilge system, but they always require a pump connected to a power source. Except for large submarines, only one pump is usually required. Effective bilge systems usually have the following characteristics:

  • The bilge pump will be located near the bottom of the submarine, where water naturally tends to accumulate.
  • The power source for the bilge pump will be elevated above the pump. This keeps the pump working even as water accumulates.
  • The bilge room is separated from neighboring rooms by doors, or can only be entered from above.

More advanced bilge systems may feature automated bilging, remote activation, connection to the ballast system and/or flood doors.

Navigation

See also: Connection Panels#Steering

Navigation is usually done via a Navigation Terminal. The navigation terminal must be wired to send signals to the engine and ballast pumps to be effective.

Engines

Engines are used to adjust the horizontal acceleration of the submarine. Engine power requirements and effectiveness can be specifically modified by changing the engine properties.

Ballast Systems

Ballast systems are used to adjust the rate of descent/ascent of the submarine. Ballast systems generally involve two or more pumps, connected to a power source. A larger ballast room means the submarine can ascend or descend more quickly. If the ballast room is too small or if there is not enough pumping power, the submarine will respond slowly to vertical navigation instructions.

Oxygen Generation

See also: Oxygen Generator


To prevent suffocation within the submarine, an oxygen generator must be powered and connected to an immediately accessible vent. Vents must be connected directly to the oxygen generator by links. Vents linked to other vents will not transfer air or water as of v0.10.6.2 therefore they must be connected to an oxygen generator to work properly.

Submarine weapons

See also: Railgun


There are four components to a properly functioning submarine weapon system: the turret, the controller, a loader, and at least one supercapacitor. The turret should be on the outside of the submarine, with its range of rotation appropriately set to limit the potential for accidental hull damage (this can be done through changing the object properties). The gun controller is attached to the ceiling and is wired to the railgun. Submarine weaponry is powered exclusively by supercapacitors (rail- and coilguns have very high power requirements, which only supercapacitors can deliver). Generally, only one supercapacitor is needed per turret. Supercapacitors usually receive their energy directly from the power grid and must be charged like batteries. Weapon loaders must be linked to the corresponding turret in the same way that vents are linked to the oxygen generator in order for the weapon to use ammunition and work.

Hulls and Gaps

Hulls must be defined for every discrete space which can hold air or water in the submarine. If a space is not contained by the hull, the game will assume it is the outside ocean. The hull object is found under the "Structure" menu. The hull should be dragged to at least include the interior of a room and half of the space of the surrounding walls, floor, ceiling, and entryways (including doors and hatches).

Gaps connect hulls together and allow the game to determine how water and air should flow between rooms. Gaps should only be manually placed for cases where two hulls are adjacent to each other and will not be connected by a door or a hatch. Door and hatch gaps are automatically generated when a submarine is loaded into the editor, or at the start of gameplay.

Power Grid

See also: Nuclear Reactor

Submarines are powered by at least one nuclear reactor, which must be connected indirectly to all of the powered objects within a submarine via junction boxes. If too much power flows through a junction box (or if the power delivered to a junction box far exceeds its load) for a sustained period of time, the box can blow a fuse or even explode and cause a fire. The power delivered by the reactor to all of the junction boxes it is immediately connected to is the amount required by the most energy demanding junction box. In general, power requirements for different paths in the grid should be about even, and the impact of power fluctuations when a machine becomes active or shuts down should be minimized.

Backup Power

See also: Battery

Batteries are a source of backup power. Backup power can be used to keep critical systems (such as the oxygen generator) going for a short time when the reactor shuts down or fails. Batteries also can be used to prevent power outages by absorbing excess energy from a junction box.

Other Guides

Official Guide to the Submarine Editor By FakeFish Games

Trivia

  • The name of the music playing in the background of the editors is "Subaquatic Symphony for Hammer and Metal". This song is also the longest in the game, clocking in at just under 18 minutes.
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    •   Mantis    •   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