Interrupt-based train control. Optimized version

Factorio886 views16 favorites2 min readby ※RED※SKULL※Updated Jan 6, 2025View on Steam ↗

I DON'T LIKE MATH

Calculate the Maximum Capacity of Your Stations
To standardize station capacities for individual use, you need to determine their maximum capacity. Here's a task for you to solve:

Task 1
Calculate Station Capacity
Given data:

Items per stack: 50 items (iron ore)
Slots per chest: 48 slots
Number of chests: 24 chests

Formulas for Calculation:

Items per chest = Items per stack × Slots per chest

Total items = Items per chest × Number of chests

50×48=2400

2400×24=57,600

To establish station limits
you need to calculate two key values based on the maximum capacity. Here's how:

First Limit= Maximum Capacity / 2 ​

Second Limit=Maximum Capacity−Train Capacity

57,600 / 2 = 28,800

57,600−8,000=49,600

STATION LOAD

The first value multiplies by the maximum priority of 255, while the second divides by the station's maximum capacity to get the resulting value.

Analogy:
This is like calculating a percentage from a number, for example:

28 800 × 100 / 57 600 = 50 %

28 800 × 255 / 57 600 = 127.5 (50 % of 255)

but instead of multiplying by 100 to get a percentage, we use the priority value of 255


STATION UNLOAD

Here, a combinator workaround* is added to ensure that the station displays the maximum priority when the resource is absent. It's a kind of trick.

*Using a comparison combinator for versatility, so you don’t need to set a specific filter for each item:

"Every > 0 = Dot symbol"

In a constant combinator, F(fake) = 1000/1k


The next two are from the previous scheme. (Every * 255 = Every). (Every / 57 600 or max_value)
And the latter simply inverts the value
The constant combinator on the right symbolizes the station

Limits

*You also need an inverter in the dot symbol. Because if the limit combiner is set to respond to each, the circuit will not work

For LOAD
The first limit is the maximum capacity of one of your trains.
The second limit is 2 times more
For UNLOAD
The calculations were made above in the section “I DON'T LIKE MATH

1.28 800
2.49 600

This is all ???? Blueprint

How do I refuel the train?

Fu*k, just install 1-2 gas stations and that's enough.
There is simply no point in a depot anymore.

This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.