Interrupt-based train control. Optimized version
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:
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
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
The second limit is 2 times more
1.28 800
2.49 600
This is all ???? Blueprint
How do I refuel the train?
This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.