So some time ago I picked up Factorio on steam some time ago. The goal of the game is to gather resources and build tools, transportation, production and automation to bootstrap your way eventually to construct a rocket. There isn’t one single play style or winning strategy, so there’s excellent replay value… so naturally I played it for a bit.
In the official website, you’ll find some images of spaghetti. Here’s an example:
It’s really easy to make a spaghetti! As the game progresses, just connect all the inputs to the consumers and outputs to their downstream consumers with the shortest path possible. Do that for a couple of production lines, and you’ve made yourself an instant spaghetti. Some say a spaghetti is beautiful, others say it’s the bane of their existence… but hey, everyone has made one before.
A sprawling mess is hard to manage - once you’ve made a spaghetti, you can’t unmake it without destroying everything. If a part of it needs to be changed, there’s very little working room to do so. Changing one part of the spaghetti often takes out more parts than expected and doing so comes with a high likelihood of killing your factory.
Basically, spaghetti are nice to look at but bad to touch because…
There must be a better way!
Organizing the spaghetti is the key to being able to grow the factory. But what exactly is organizing? It’s making sure that functionality is self-contained and simplified in a given area of the factory. This process is also known as compartmentalization or encapsulation but since blueprints in Factorio perfectly embody this concept, we’ll just call them blueprints going forth.
Blueprints should be:
Since electronic circuits are one of the most used intermediate components in Factorio, let’s use that as an example. We’ll be creating a blueprint to create electronic circuits.
Let’s reconsider what a electronic circuit production requires:
Some notable features of this recipe are:
Next, we’ll go through these steps to set up a blueprint for electronic circuits.
A belt each for copper and iron should work as inputs in early game since we’re unlikely to saturate the belts. Even though we’ll need to switch to trains as inputs at some point in scaling, this belt-based approach can still be reused since trains still need to unload to belts. A single belt for outputs would also suffice.
Some designs put inputs on the same side as outputs while others have them on opposite sides. We’ll look at an example from here.
Same-side approach with 3 input lanes and a single output lane on the same side.
Opposite-side approach with 3 input lanes on the left and a single output lane on the right (in the middle vertically).
They differ on the following aspects:
Summary of the approaches:
Input and output sides | Extensible | Simple | Less impact on surroundings |
---|---|---|---|
Same side | ✅ | ❌ | ✅ |
Opposite side | ❌ | ✅ | ❌ |
We want our setup to have as few bottlenecks as possible. Bottlenecks indicate wasted material and assemblers. Most importantly, it’s a waste of space, which is a limiting factor in Factorio.
We’ll start with this great resource to visualize the rates required to produce 60 electronic circuits per minute.
Let’s bear in mind these ratios:
An optimal setup looks like the following:
Top two input lanes are copper and the bottom input is iron. The bottom-most lane carries the output electronic circuits. The source blueprint is available here.
Once we’ve created a efficient blueprint for production, we’ll need to connect them up together. Connecting things together is the main goal of the mid to late game, when the macro logistics dominate gameplay. Busses and trains are the primary tools to solve this problem.
A bus is a collection of lanes (or belts in Factorio). Here’s how it looks like:
The bus primary refers to the parallel collection of lanes carrying inputs and outputs. The example starts with a 5-lane input on the left with the addition of a new lane (electronic circuits) on the right, creating a 6-lane bus. Lanes are split off to lead into a production area and outputs are merged back into the bus.
Trains are the best way to transport bulk items over long distances. You’ll have to load and unload items to and from trains though, which makes it not a free lunch. Busses and trains differ in some significant ways that we’ll discuss below.
It’s much easier to put things into and out of busses. Loading and offloading for trains takes up much more space compared to the bus example above. Here’s an example on loading a train, which requires balancing (splitters) and buffers (inserters and chests).
If you just need to move things in bulk from one location to another, it’s much more efficient to use trains. They shrink the intermediate bus lanes which can get really wide into a couple of tiles wide (i.e. the width of a train track). Here’s an example of replacing a 5-lane wide bus with a 5-carriage long train:
Trains need fuel and can be blocked by limited throughput of the rail network caused by signaling and rail network design. Also, with more and more train stations, your factory space starts to become more train than factory. After a while you’re playing Train Tycoon instead of Factorio, but that can be fun too.
We’ll end it here with this really cool train guide.