Beltlayer

by therax

Route your belts freely underground.

2 months ago
0.16 - 1.0
33571
Owner:
therax
Source:
mspielberg/factorio-beltlayer
Homepage:
https://forums.factorio.com/viewtopic...
License:
GNU LGPLv3
Created:
2 years ago
Latest Version:
1.0.3 (2 months ago)
Factorio version:
0.16 - 1.0
Downloaded:
33571 times

IMPORTANT: Do not use items directly from the blueprint library

Due to problems with the new blueprint library introduced in v0.18.37, using blueprints, deconstruction planners, and upgrade planners directly from the blueprint library, including using toolbar shortcuts that point to items in the blueprint library, leads to a number of confusing bugs. Instead, copy items from the blueprint library to your character inventory, and use them from there, or create toolbar shortcuts that point to items in your character inventory.

Description

Ever wanted your underground belts to turn corners?

Ever wanted to run underground belts long distances without periodically popping up above ground?

Ever wondered why underground belts cost the same whether you run them under one tile or their full length?

If the answer to any of these questions is yes, then you need Beltlayer.

How to use

  1. Build some Beltlayer connectors of the desired belt speed. Connectors are researched at the same time as the normal underground belts of the same speed and use the same recipe.

  2. Place down two connectors, one at the entrance and one at the exit. You can use any rotation for these connectors. Change the connectors between input and output mode with the rotation key (normally R).

  3. As the description for the connector indicates, press CONTROL+B (rebindable) to show the editor interface. You will see the underground endpoints of the two connectors you placed. The editor interface carries over all belt entities that were in your inventory.

  4. Place belts in the glorious freedom of the underground between the two connectors, using the belt mechanics you are already familiar with.

  5. Press CONTROL + B again to return to your character in the overworld.

  6. Profit!

How it works

Each underground belt connector is a pair of loaders, one on the surface and one on the special underground surface. Each loader is connected to an invisible chest. Periodic Lua scripting teleports items from the chest on the surface to the matching chest underground, or vice versa. The mod takes special care to minimize the UPS impact by transferring multiple stacks of items at once, and minimizing the amount of processing required.

Settings

  1. It is possible to show the contents of the buffer chests both underground and above ground by changing mod settings. When enabled, you can open these buffer chests to manually add or remove items. Items will be teleported between surfaces as usual according to the direction of the connector.

  2. You can adjust the size of the buffer chests. You will likely need to increase this if you are using sushi belts with many different item types on the same belt, or if you are using faster modded belts. You can also decrease this setting to reduce the numbers of items stuck in buffers. Default is 2 stacks for both above ground and below ground chests, for a total of 4 stacks per connector.

  3. You can adjust how often connectors transfer their contents to reduce UPS consumption. You may also want to increase the size of the buffer chests at the same time, or they may fill up completely between cross-surface transfers. The default is to transfer once every 5 seconds (300 ticks).

Caveats

  1. Items are mixed randomly in the left and right lanes of output belts. This makes Beltlayer only usable with belts carrying the same item in both lanes, or "sushi belt" designs that don't have any item placement requirements. This is a limitation of Factorio's loader entities. This may be possible to change in 0.17 if these feature requests are implemented:

  2. If your belts are not full, you will clearly be able to see the bursts when items are transferred from one surface to the other, with a 50% saturated belt becoming alternately fully saturated and empty.

  3. Connectors buffer quite a lot of items to allow multiple stacks to be transferred at once. When running with saturated belts, you will notice some strange gaps in belt flow when these buffers are being filled, but after a few update cycles the flow will stabilize.

  4. Mining connectors, or mining belts from the editor interface, puts mined items into your character's inventory. If there is insufficient room, they will be spilled on the ground at your character's feet.

  5. Connectors can be placed on the main overworld map, including the surface of planets and moons created by Space Exploration. No, you can't use these in space, Factorissimo buildings. Support for other mods may be added on request.

  6. Blueprinting and deconstruction is implemented with Black Magic. There are almost certainly bugs. There are also a huge variety of possible scenarios in which you might encounter problems. Please report exactly what you did leading up to a bug, including:

    1. a screenshot showing the precise area selected with the blueprint or deconstruction tool,
    2. a screenshot of the below ground editor matching the above ground screenshot,
    3. the filter settings of the deconstruction tool, if applicable,
    4. a screenshot of the blueprint setup window, if applicable, and
    5. a description of what you expected to happen, and what happened instead.

Comparison to similar mods

Subterrain

  • Beltlayer belts can turn corners.
  • Beltlayer belts are blueprintable and can be built with construction robots.

Subterra

  • Subterra allows players and fluids to be transferred through the ground, as well as items.
  • Subterra allows splitters, assemblers, and complete subterranean bases.
  • Subterra preserves lane-identity for belts.
  • Beltlayer is substantially more UPS-efficient.
  • Beltlayer belts are blueprintable and can be built with construction robots.