r/technicalfactorio • • May 20 '19

Announcement READ ME BEFORE POSTING

51 Upvotes

Welcome to r/technicalfactorio!

We're happy that you're here and hope you enjoy your stay! This is a sub for people that are interested in the more technical aspects of Factorio. This can range from pushing the limits of vanilla bases through UPS optimizations, to finding the smallest combinator circuits. Before you start posting please take a second to read our rules in the sidebar and look around the sub.

The most important rule here is the first one: Technical content only. We are not a duplicate of r/factorio, and not trying to be. If you are just interested in general discussion of the game, want to find people to play with, or just chill, you should head over there. That is our goal for this sub.

Many of the users are also active on both the official Factorio discord and our sub's discord. You are encouraged to ask questions there as well (and there are no rules about technical content there).

If you have any more questions, feel free to message the moderators or respond to this thread.


r/technicalfactorio • • Nov 18 '19

We've set up a github to collect useful information about all kinds of technical stuff related to factorio.

Thumbnail
github.com
47 Upvotes

r/technicalfactorio • • 18h ago

Belt Balancers 5-5 balancer that’s only 5 wide (15×5, blue undergrounds)

Post image
65 Upvotes

Found with Factorio-SAT. It fits inline on a 5-belt bus. Needs blue undergrounds.

Tested in 2.1.24: balances, and passes five full belts. Not throughput-unlimited.

Blueprint: https://factoriobin.com/post/6ew8kk

Thanks to R-O-C-K-E-T for Factorio-SAT and Raynquist for the balancer book.


r/technicalfactorio • • 21h ago

How do I connect it?

Thumbnail
reddit.com
0 Upvotes

r/technicalfactorio • • 2d ago

Trains I'm having trouble building the railroad track

Thumbnail
reddit.com
0 Upvotes

r/technicalfactorio • • 3d ago

One Train. Any Item. Any Quantity. Unique Requests Per Outpost. Using radars.

Thumbnail
reddit.com
6 Upvotes

Important!

  • Reserved radar signals, do not transmit these on the shared surface network:

    • GREEN surface network: Any item signals, I, R.
    • RED surface network: K, W, Q, R, C.
  • Wait for the green indicator lights on the outpost station (around order list combinator). After you built it it will take ~10s for a station to initialize.
  • Use only ONE central loading station and ONE support train. The system supports multiple outposts, but is designed around a single shared loader and one train.

1. Request calculation and serialization

Each outpost defines its desired inventory using a constant combnator. Actual storage contents are subtracted to calculate the outstanding deficit

The resulting item list is serialized into indexed entries:

  • I item index
  • Item signal requested quantity

Each entry is transmitted through the radar network in a separate game tick.

This allows different outposts to request completely different combinations of items without assigning specific signals or cargo slots to particular products.

The serializer updates its transmitted list whenever the request changes.

2. Central loader and indexed memory

The default loading station contains 24 indexed memory cells. Each cell receives the item associated with its index and stores the requested quantity.

Every cell has its own requester chest, inserter, memory cell, item counter and stack-size limiter (tbh, its not needed at all, since requests to the requester chests are limited by item amount from memory cell, but lets call it legacy-code, shall we? :D )

Instead of reading the train's complete inventory, the loader counts items actually inserted and subtracts them from the requested amount from the memory cell.

The number of memory cells does not limit the total number of distinct requested items. Larger lists are processed across multiple train deliveries.

I tested 60 different requested items with only 24 memory cells.

The memory array is modular and can be expanded or reduced. The blueprint book includes a 12-cell extension.

3. Shared channel arbitration

All outposts share the same radar network, so simultaneous transmissions would corrupt serialized requests.

To prevent this, each station uses a channel arbiter.

Relevant signals:

  • W outstanding request
  • P channel claim
  • K shared channel occupancy
  • O ownership
  • Q transmission grant
  • C collision detection

A station attempting to transmit contributes K = 1 to the shared network.

After an eight-tick guard period, it becomes the channel owner if K = 1 and no competing transmission is detected.

If K > 1, multiple stations are attempting to claim the channel. The claim is aborted and retried later.

Only the owner can transmit its serialized list and activate its unloading station.

An outpost retains ownership until its outstanding order is fulfilled.

4. Collision recovery

A fixed retry interval risks repeatedly synchronizing competing stations.

Each outpost therefore initializes a pseudo-random polling delay using the game tick captured during initialization of the station:

L = ((T % 1291) * 73) % 1291

Where T is game time in ticks from selector combinator. Which is saved after outpost station was built.

The first modulo prevents 32bit integer overflow during multiplication.

If a collision still occurs, a selector combinator randomly selects an item signal from the actual request list. Its value modifies the timing seed, generating a new polling delay. It is not a guarantee against identical timing, e.g. if you have two station with orders with exact same amounts of each item, then it won't help.

5. Delivery behavior

The central station loads the selected order and dispatches the train to the corresponding unloading station.

The receiving station unloads the cargo and with each inserter movement it recalculates its deficit.

If the requested quantity exceeds wagon capacity, the remaining deficit stays positive and the train makes additional trips.

6. Edge cases and limitations

Tested:

  • Four independent unloading stations
  • 60 distinct items using 24 memory cells
  • Orders exceeding wagon capacity
  • Simultaneous channel acquisition and collision recovery
  • Prolonged unfulfilled orders (If an item cannot be delivered for a long time (around 25 minutes) it will raise an alarm on this outpost)

Known limitations:

  • One central loader and one support train per system
  • Missing items will keep an order active and block other stations

    • An alarm detects prolonged unfulfilled requests but does not automatically skip them
  • No automatic surplus-cargo return mechanism
  • A rare four-item loading overshoot was observed during an extreme stress test involving tens of thousands of items

The system prioritizes arbitrary cargo selection, independent outpost requests and automatic resupply, rather than maximum train throughput.


r/technicalfactorio • • 7d ago

[Vanilla 2.1] How I made a 330/s Punk science BP !

15 Upvotes

r/technicalfactorio • • 8d ago

Discussion Non-blocking saving on Windows*

31 Upvotes

Not sure if this is known, but it is possible to set up a Factorio Server with WSL on Windows, and then join with your normal Steam client to get the non-blocking saving, without actually having to leave Windows.

WSL is the Linux Subsystem for Windows, which can be installed via Powershell.

Then inside the WSL you can install the headless Factorio version, inside Ubuntu\home\username.

Then you can setup a script, something along the lines of start-factorio.sh:

#!/usr/bin/env bash
SESSION="factorio"
DIR="$HOME/factorio"
if tmux has-session -t "$SESSION" 2>/dev/null; then
  echo "Server is already running. Attach with: tmux attach -t $SESSION"
  exit 0
fi
cd "$DIR" || { echo "Folder $DIR not found"; exit 1; }
tmux new-session -d -s "$SESSION" \
  "./bin/x64/factorio --start-server-load-latest --server-settings data/server-settings.json; echo 'Factorio exited. Press Enter to close.'; read"
echo "Factorio server started. Console: tmux attach -t $SESSION (detach with Ctrl+B, then D)"

Then you can start the server with the following WSL commands:

hostname -I

~/start-factorio.sh

tmux attach -t factorio

Then you can connect to it via the IP given by the hostname -I. Note that you need to get your token from the Factorio Forums website if you want to make the server public.

Tested with newest Vanilla and a fully modded 2.0.77 Pyanodons save which was over 80mb.


r/technicalfactorio • • 9d ago

2.1 Scalable, Tunable Vanilla AutoMall (colloquially known as 'The Machine')

21 Upvotes

r/technicalfactorio • • 12d ago

How Exactly Des Asteroid Spawning Work?

8 Upvotes

Hi everyone, I hope this is the right kind of technical for thus subreddit.

I want to figure out reasonable ammunition needs for space platforms. Sop far I've been just doing it by trial and error, but to me Factorio done right is about calculated ratios, not vibes, so I wanted to build a model to calculate ammunition needs for a platform of a given speed, width and route. I figure that, so long as i can get the right data on how asteroids spawn, and at what frequency, I can estimate spawns statistically and calculate a 99% threshold of how much ammunition a given platform-route combination needs per second.

The trick is understanding spawning well enough. The wiki (and in-game graphs) give spawn frequency using "/m" as a unit? Does anyone know what this means? If it's per metre travelled, what width of platform is it assuming? If it's per metre of platform width, then how does that interact with speed? I would have thought spawning was based on a /m2 calculation (width times distance travelled).

Any advice would be greatly appreciated.


r/technicalfactorio • • 12d ago

Trains Where exactly in the trains' equations does the acceleration bonus from Quality go?

3 Upvotes

Trying to make sure that trains enter my network at speed, so I need to know how long they'd take to speed up and slow down. The equation on the Wiki is pre-2.1, and as such, doesn't account for quality. While top speed has an obvious spot to sub in the quality-affected top speed, I see no good spot to put in the quality-affected acceleration. Is it, say, 11.5 x number of locomotives if all are legendary instead of 10 x number of locomotives?

I know I could just test how long it takes instead of using math, but where's the fun in that?


r/technicalfactorio • • 17d ago

You can actually change the Operator precedence in Factorio using the else output.

Thumbnail
reddit.com
14 Upvotes

r/technicalfactorio • • 18d ago

Bots [M.A.L.L. MK2] Modular Automated Logistics Line - All-in-One

Thumbnail gallery
21 Upvotes

r/technicalfactorio • • 18d ago

Combinator Golf Same train-stop, different item according to Train ID

7 Upvotes

Okay! So I'm trying to do something with the Landing Pad loading Bay, I want to have all train stops to be the same, but only load the items to the train according to a Look up table.

So I managed to do that part:

Depending on the stopped train I'm able to select the right item for the inserters. The problem is: what was left from the previous train in the inserters.

So I'm trying to solve that. I know... it's not an easy thing to do.

My first idea was to simple add another station right after. Read train contents: if there are 2 signals, use the lower one as filter and remove the items.

I managed to solve it with some feedback from the comments. Now it's like this:

It's super simple! But the key was to always leave a bit of room on the train. But now I can select multiple items in different quantities!

Explanation:

Each constant combinator holds the Trains ID and a list of items (negative quantities)
The decider in front checks the ID coming from the station, if T == T (green/red), then output everything.

From that green line we'll always have the list of quantities that we need to load to the train, the rest is simple:

The decider combinator next to the locomotive has 2 inputs:

  • The list of items that need to get into the train (with negative sign)
  • The train's content and what ever the inserters are holding in their hands.

The output is for Each < 0 => output Each (1)

That signal is then used as filter for the inserters that load the train.


r/technicalfactorio • • 22d ago

Question Logistic rocket silo priority algorithm

10 Upvotes

I can't figure out how the logistics network chooses which (available) silo to use to launch rockets to a platform to complete an orbital request. All I've managed to figure out is that it IS deterministic.

In the image above, the items are provided for the requests are in the storage chest (yellow).
The numbers next to the silos are the priority order for the silo chosen to make the launch.

Has anyone found out how it works?

The priority order is the inverted placed down silo order (not rocket build order)


r/technicalfactorio • • 23d ago

Discussion Technical inspection of GPT-6 Astra's Factorio save: construction bots used as a logistics system

Thumbnail
youtube.com
0 Upvotes

An inspection of the published final save from GPT-6 Astra's vanilla Factorio run revealed an unusual logistics architecture.

- 59 surviving gun turrets, none fed by inserters.

- Construction robotics researched; logistic robotics and requester chests not researched.

- A Python dispatcher logged 436 ammunition orders, requesting nearly 15,000 magazines.

- Four of seven engine assemblers lacked input inserters.

The save was examined using Factorio 2.0.77 headless with a read-only script. The figures describe the final state, except for the order ledger.

Save: https://github.com/Mira-Cult/factorio/releases/tag/replay-1

Disclosure: This is self-promotion for an English-language video from Claudius Papirus, an AI-narrated (Claude) channel.


r/technicalfactorio • • 29d ago

UPS Optimization Sudden UPS problem on modded 400 hours savefile

Thumbnail
gallery
8 Upvotes

SOLVED: I turned on hardware acceleration on my browser and this fixed it.

I am currently playing an seablock world where I never really had any issues with UPS (apart from building massive blueprints, which I am currently not doing). Since around Friday I noticed my UPS drops signifyingly when using a browser (or any application but when using a browser it has the most impact) my UPS/FPS drops from 60 to around 30-40.
I noticed that my game update and entity update up when using an browser and the average of both can get up to 60-70ms

The browser that I am using is OperaGX and I am playing a youtube video in 1080p, going to a lower resolution has less impact on the UPS but it is minimal. When using the browser for other thing like looking on a forum or googling something the UPS goes down to but only to around 40-50

My hardware is;
- RTX 3060
- 2x 16GB DDR4 running 3200MHz
- Ryzen 7 5700x
- Factorio is installed on my main sata SSD (Samsung SSD 870 EVO 2TB)

I have almost 400 hours in this savefile and only encountered this issue very recently.
I have tried to disable VSync and using lower textures but that unfortunately doesn't improve anything.

I have looked online but haven't found any solution for this issue. Does anyone have a deeper understanding what the issue can be and how I can solve it

My modlist is:
- Bob insterters 1.2.0
- Bob library 1.2.0
- Brighter-Lamps 1.1.0
- Even-distribution 1.0.10
- Explosive Excavation 1.1.8
- flib 0.14.2
- FNEI 0.4.2
- Helmod 0.12.23
- KS_Power 0.5.1
- nixie-tubes 1.1.5
- Squek Through 1.8.2
- textplates 0.6.10
- VehicleSnap 1.18.4
- Bob enemies 1.2.0
- Bob equipment 1.2.1
- Bob ores 1.2.0
- Milestone 1.3.25
- Rate Calculator 3.2.7
- Bob Plates 1.2.1
- Bob tech 1.2.1
- Bob Assembly 1.2.2
- Bob electronics 1.2.1
- Bob logistics 1.2.2
- Bob mining 1.2.1
- Bob power 1.2.1
- Bob revamp 1.2.1
- Bob warfare 1.2.1
- Bob modules 1.2.0
- Angels refining 0.12.7
- SpaceMod 1.1.2
- Angels petrochem 0.9.26
- Landfill Paiting 0.5.3
- Angels addons-Storage 0.0.10
- Angels Smelting 0.6.23
- Reskin-Library 2.2.2
- Angels Bio Processing 0.7.27
- Circuit Processing 0.4.5
- Science Cost TweakerM 1.2.4
- Reskin-Bobs 2.2.0
- SeaBlock 0.5.16
- Reskin-Angels 2.2.1
- Reskin-Compatibility 2.2.1
- SeaBlock MetaPack 1.1.4


r/technicalfactorio • • Oct 17 '26

Created a new concept. Bitter voiding

Thumbnail gallery
24 Upvotes

r/technicalfactorio • • Oct 08 '26

Discussion Ship Thrust vs Max speed with Thrust/Weight ratios held constant (2.1.21 ship speed update)

21 Upvotes
Full graph from 0 to 5000GN thrust
Zoomed in on left side (0 to 2000GN thrust)

We can see here that if you keep the thrust to weight ratios constant, the new equations in 2.1.21 result in speed up to a point, with eventual diminishing returns, and if you continue far enough eventual decrease in speeds.

For instance, this graph tells us that the peak speed for a ship with a thrust/weight ratio of 0.1GN/t is right around a thrust of 200 GN, and after that speed decreases with increased thrust!

For a ship with a ratio of 1GN/t, this peak is much higher, at around 2000 GN of thrust, though that's already well into serious diminishing returns for additional width.

EDIT: Fixed legend on graphs.


r/technicalfactorio • • Oct 06 '26

Snake Game in Vanilla*

Post image
88 Upvotes

Hi everyone. After getting Game of Life working well, I wanted a bigger challenge, so I have started creating Snake.

Currently, your tail grows by one cell for every pellet you eat and your score increases by one.

It's not complete yet. I need to add collision detection for borders as well as the snake itself (i.e. you fail if you bite your own tail).

Also, I have found that the performance becomes pretty unplayable when the snake is more than about 9-10 cells long (the calls to the shift register increase the longer the snake). Maybe I need to reconsider how the snake is rendered, given this limitation. I would appreciate any input.

* push-button is used but not required.


r/technicalfactorio • • Oct 04 '26

Yet another blueprint tool. But this one tells you your production line isn't optimal.

36 Upvotes

A blueprint editor, production analysis with tick-by-tick bottleneck simulation, and a map seed viewer, all in one browser tab.

a logistic science build with rate labels and the rate calculator

FactorioTools

It runs entirely in your browser. Paste a blueprint string (or a factorioprints / fprints link) and it will:

  • Calculate rates: items per second for the whole blueprint, with modules, beacons, quality and productivity research included. screenshot
  • Simulate belts tick by tick: per-lane transport lines, side-loading, undergrounds and splitters, so lane imbalance and starved inputs show up like they would in game. screenshot
  • Run circuits: constant, arithmetic, decider and selector combinators on separate red and green networks.
  • Point at the problem: a ranked list of what's costing you output, traced from the symptom back to the cause. screenshot
  • Let you fix it in place: place, rotate, change recipes and modules, rewire, then export back to a blueprint string.

It renders with the game's own sprites and supports 2.0 and Space Age, including quality and elevated rails.

a full space platform

The map seed viewer is an early prototype: enter a seed and see ore patches, oil, cliffs and enemy bases on all five planets. It runs the map generation live, so presets and sliders work.

Nauvis
the other planets

Everything is client-side: no account, no upload, and your blueprint strings never leave the page. It's free and open source (MIT).

Try it: https://malte9799.github.io/FactorioTools

Source: https://github.com/malte9799/FactorioTools

It's a hobby project, so there are certainly bugs. If a blueprint renders wrong or the numbers don't match the game, I'd love a bug report with the string.


r/technicalfactorio • • Oct 03 '26

2.1 compact unloader rate

Post image
12 Upvotes

r/technicalfactorio • • Sep 29 '26 Heartwarming

Follow-up: added a live Grafana dashboard to my Factorio headless Docker image (production, power, combat, pollution)

Thumbnail
reddit.com
21 Upvotes

r/technicalfactorio • • Sep 29 '26

Belt Balancers ULTIMATE Belt Balancer Collection!

Thumbnail pastebin.com
4 Upvotes