Guide/Liquid Airlock

This article has not been revised for the current version (***U50-587362***). It was last updated for *LU-356355*. It may contain inaccuracies.
This article has not been revised for the current version (***U50-587362***). It was last updated for *LU-356355*. It may contain inaccuracies.
A **Liquid Airlock** or **Liquid lock** is an alternative to a regular airlock. It is a player-made design, exploiting game's handling of liquids and gasses.

## Advantages

The Liquid Airlock fully stops gas flow between two rooms. Unlike the regular airlock it makes the room 100% airtight. It requires neither power nor complex automation circuits and is even able to easily contain vacuum.

## Disadvantages

Walking through liquid, even pure water gives duplicants the Sopping Wet debuff. Dupes that repeatedly use the airlock also are at risk of contracting Hypothermia or Heat Stroke due to change in body temperature.

Equipping duplicants with Atmo Suits prevents both issues.

## Construction

Any liquid can be used to build an airlock, but most often it is built out of water, oil, or, at later stages, Visco-Gel.

## The classic 1-Fluid "Staircase" Liquid Lock

The pictures below illustrate the bare minimum requirement for an airtight water lock. It's just four water tiles arranged into a T shape, with the minimum number of containing tiles to prevent spillage and one tile in the middle making contact with the water's surface to create the seal.

Note that Duplicants can traverse stairs as long as each stair has two tiles of vertical clearance. The middle has two tiles of water at -2 elevation, and the two steps to the left and right transition back at +0 elevation.

There are multiple ways to get water to the tiles but the Bottle Emptier is the easiest and most reliable. Make sure "Water" and "Enable Autobottling" are selected/turned on under the Bottle Emptier's options.

Requirements:

* 6 Tile
* 1 or 2 Bottle Emptiers
* At least 1,001 kg of Water

* Bare minimum construction for an airtight water lock
* Bare minimum water lock construction with Bottle Emptier

## The 2-Fluid "Vertical" Liquid Lock

Dual-fluid vertical airlocks are more compact and the lack of stairs makes them faster to for duplicants to traverse, but the recipe for lock construction recipe is a bit more complicated (see the tips), and these locks are vulnerable to additional failure modes, such as accidental mopping and outgassing (see the section on reliability). As with 1-fluid locks, duplicants without an atmo-suit incur the "Sopping Wet" debuff when transiting a liquid lock.

In some cases, it's pragmatic to combine the two lock types, using a 1-fluid lock to guarantee reliable containment (especially for something like a high-pressure steam room), then using a more compact 2-fluid lock to creating the separating vacuum chamber that blocks heat transfer. An atmo-sensor + notifier can serve as an alarm for detecting containment failure, at which point you can just reestablish the lock and vacuum separation. Bleeding a bit of heat transfer for a short time period isn't a big deal, especially compared to the fun and exciting consequences that would arise from accidentally releasing 200kg of steam pressure into a base that's nominally supposed to have ~2kg of O2 pressure.

### Constructing 2-fluid locks (via pipe deconstruction)

1. Prepare a 3x4 Space like this ( X are any gas, and O is any Tiles) (The 2 X on bottom is important to let the liquid leave and form the lock)

`XOX`
`XXX`
`XXX`
`XOX`
2. Pipe in 2 different type of liquid (preferably water and polluted water)
3. Pipe those two liquid each on top of each-other between the two tiles (Numbers is where the liquid pipe should be at) (use bridges to nowhere to make the liquid flow there):
`XOX`
`X1X`
`X2X`
`XOX`
4. Deconstruct those pipe between the tiles without emptying it
5. Voila

### Constructing 2-Fluid locks (via bottle-emptier)

There is an alternative way of building 2-fluid locks using a Bottle Emptier rather than piping the fluids to the construction site. However, it usually makes a bigger mess than pipe deconstruction.

Requirements:

* An empty 3x4 space
* 1 Mesh Tile
* 1 Bottle Emptier
* Bottles of desired liquid (water and polluted water will be used here)

Expect a lot of overflowing and mopping afterwards

* Basic Requirements
* Make sure to keep the side of the bottom airlock tile empty (beside Mesh Tiles)
* Any liquid combination works but water + polluted water is easily accessible. Just mop the floors and finish

#### Tips

* It's possible to consistently construct these 2-layer vertical locks on the first attempt, but the recipe is quite specific, so you must be very precise or the lock will break and you'll have to start over.
* 1) Prior to lock construction, the tiles to the left and right need to have complete drainage or lock construction will be unreliable. Don't try to construct the lock with just one tile step down on the left and right as shown in the final picture. Make sure there's at least two clear spaces below the tiles to the left and right of the bottom water blob. You can add the tiles back in once the lock is constructed. You might be able to get the same effect by mopping after inserting the first liquid, but you'd have to delete the mesh tile to do this.
* If you have the space to put a U-shaped catch basin below the lock construction area, this simplifies post-construction mopping. This can be as simple as adding two blocking tiles to the floor below so that the liquid spill doesn't spread arbitrarily far to the left and right.
* 2) Place the heavier (bottom) liquid first, as otherwise they will need to exchange places and this can be unreliable. If lock construction fails and there's a blob of the lighter liquid on the tile, just mop it up and start over.
* 3) Pause the game the instant the bottle hits the liquid dispenser, then unselect that liquid from the dispenser to stop the flow. You only need one drop of each liquid, preferably in the milligrams. More quantity doesn't help, makes post-construction clean-up messier, and can sometimes even break the lock if it causes the liquid blob to come in contact with nearby surfaces.
* Using liquid bottles derived from mopping up the minimum sized liquid pools after water spreads horizontally, it's sometimes possible to construct the lock without spilling any drops on the floor below. But it's much easier to just build a small U-shaped catch basin and mop that after construction.
* After lock construction, you can add the adjacent tiles back in. Heck, you can even add in tiles such that the floor is entirely flat (which looks really cool!), and the liquid stack won't break ... immediately, but I suspect that this might make the locks more likely to fail later on (I'm unclear why; I just come back and find them failed after reloading the game).

### 2-Fluid Lock Reliability Issues

The 1-fluid staircase lock is the most robust -- the only failure modes are: boiling the fluid, deconstructing one of the containing tiles, or pumping out the liquid. Even freezing the liquid isn't usually a containment failure as the resulting solid tiles will usually continue to block air exchange. If duplicant flatulence displaces the liquid in the center, gas exchange will still be blocked by the liquid on the sides, even though they will not appear to connect to the ceiling in the center.

The 2-fluid locks add several additional failure modes:

* Unintended Mopping - if you drag select mop a large area, containing a liquid lock, your Dupes will happily obliterate the liquid lock. With smaller liquid volumes, the wings of a 1-fluid lock are sometimes moppable, but even so, this doesn't always break the lock and it can be mitigated by just inserting enough liquid to prevent mopping.
* Contact with other liquid drops - If you get flooding, especially of 2+ fluids where the flood stacks 2+ tiles high, and the flood touches your liquid lock, if one of the flood liquids matches one of the lock liquids, the lock is usually broken. If it's disparate liquids, the lock usually survives unless there's so much fluid that the fluids start swapping positions. This failure mechanism can be especially problematic for locks that use Polluted Water.
* Duplicants carrying hot materials through the lock (i.e. some fresh gold from a volcano) can accidentally boil it, as liquid amounts involved are very miniscule.
* The pressure of the fluid may not be enough to prevent duplicant-carried solids or liquids from emitting gasses, which can displace the fluid in the lock. A duplicant with the Flatulent trait can also break the lock by emitting Natural Gas.
* Unknown - I've had some of my 2-layer liquid locks come back as failed after save / load cycles, and I'm not really clear why. Then again, I've got other 2-layer locks that have survived for 1000's of cycles, so it's definitely possible for this design to stay reliable. These are my superstitions: Insulated tiles in contact with the fluids might be more reliable than other tile types. Constructing pure flat 2-layer locks (ones that look like visco-gel locks, but made with water / oil / etc), while possible / not hard, might be more long-term unreliable. Locks near areas that you are mopping more often are definitely less reliable. The game has a bug where save-game pauses can cause commands to sometimes be applied to large regions (I had it try to deconstruct 99% of my base once), and it's possible that this bug issued a mega-mop command that destroyed some of my locks without me realizing it.

## Fluid Choices and Temperature Ranges

* For room temperature locks, {Water over Polluted} is immediately available early-game, {Polluted over Salt Water} has a slightly wider temp range (salt water is liquid from -7 to 99), or {Water over Salt Water} provides the prettiest color combination and doesn't off-gas polluted oxygen during construction.
* For temperatures up to 400 degrees, {Petroleum over Crude} is the go-to solution, and it works down to -40 as well. Beyond 400 degrees, Crude Oil spontaneously converts to Petroleum, gaining volume and usually bubbling explosively. Below -40, the crude freezes.
* For temperatures beyond 400 degrees, such as in a hot steam chamber, Molten Lead (liquid from 325 to 1729) is the only good choice, and 2-layer vertical locks aren't feasible until 800+ degrees when you can liquify Salt (800 to 1464) as the second fluid. At that point, containment should take precedence over convenience and a more robust 1-fluid lock stair-step is generally safer.
* Between 325 to 538 degrees, it's technically possible to use {Petroleum over Molten Lead}, but the narrow range of safe temperatures makes this a very dangerous combination. Below 325, the lead will freeze, and digging it out will break the lock, and above 538, Petroleum irreversible converts to vast clouds of Sour Gas, which you can't easily process until you have Thermium and Super Coolant to build an ultra-late-game Sour Gas Boiler.

## See Also

* Real-world discussion of using liquid-locks on the Moon, and why it would (not) work (hint: water vaporizes in a vaccum, and other fluids like Mercury pose their own challenges; also real-world airlocks work a lot better than the ones in ONI).
* There is also an advanced recipe where you create a vacuum via 3 mechanized airlock, and create two waterlock beside the central vacuum door. (This version creates virtually no heat.)