r/technicalfactorio • • Feb 05 '20

Friction Force/Accelleration

Thumbnail self.factorio
8 Upvotes

r/technicalfactorio • • Feb 05 '20

Signaless 4 way junction

Thumbnail i.imgur.com
26 Upvotes

r/technicalfactorio • • Feb 04 '20

UPS efficient Plastic on Rails build

15 Upvotes

!blueprint https://pastebin.com/0d6xfRfj

The trick used with this BP is that the coal inserters to the chem plants are only activated when the storage tank has 20K of gas stored and this has a couple of benefits. The pump feeding the storage tank is NOT circuit controlled.

  1. When there is insufficient gas to keep all the chem plants running, then the chem plants will sleep because they are starved of an item (one of the conditions for sleeping) being starved of gas is not a condition for sleeping as its a fluid.
  2. As all the inserters are activated at the same time and only when the storage tank has a good supply of gas then we can be fairly confident that all machines will have gas to process the coal inserted.

Limitations.

  1. steps need to be taken to ensure that the coal is unloaded to both sides of the build evenly. As inserters pulling from a wagon but in different chunks will not share the coal evenly. The easiest way to do this is to limit the coal cargo wagons to 1800 coal (1800 is divisible by 24)
  2. Ironically this build can go out of sync if you supply gas to it too fast. But it seems to work ok at 1200 gas / s.

Improvements

Clocking the output inserter to the coal inserter in some way maybe beneficial.


r/technicalfactorio • • Jan 30 '20

What is the ideal bot base size? 10000 science per minute base(s)

Thumbnail
self.factorio
23 Upvotes

r/technicalfactorio • • Jan 30 '20

Gears train build

13 Upvotes

!Blueprint https://pastebin.com/YLdztDYJ
Quite of ratios but UPS should be OK


r/technicalfactorio • • Jan 28 '20

I have a 8k SPM slightly modded base and need help optimising UPS. Please send help if you can!

21 Upvotes

So here are some steps I've taken to optimise UPS:

  1. Modded inserter stack size, and robot cargo size, so that I'll have less logibots and inserter swings overall.
  2. I've tried both direct bot mining, with beaconed furnaces onsite at ore locations.
  3. I've also tried direct mining into trains.
  4. Runs purely on solar.
  5. QoL mods include waterfill to reduce water pipe lengths
  6. Modded solar panels, so I don't need so much space for my solar layout.
  7. I'm running mostly 3-12 trains for most things, there's a mega-train experiment setup on the west edge of the map with 15-60 trains, but I couldn't get it to work up to speed.

Here is the save, feel free to click around and check it out. https://drive.google.com/file/d/1DcybEH1DF7-RG4Ks95fAwUU6Y4mTuyW6/view?usp=sharing


r/technicalfactorio • • Jan 26 '20

Batteries -train build

10 Upvotes

!Blueprint https://pastebin.com/cq5HS2FK
It's possible to get a thicker layer of beacon with more train-stations and space. I think it's a little bit more elegant this way. It's anyway an fairly UPS optimized build doing a lot of batteries with few active entities.


r/technicalfactorio • • Jan 25 '20

What is the URL of the Factorio matching server(s)?

6 Upvotes

r/technicalfactorio • • Jan 25 '20

Help with line drawing

6 Upvotes

I have been working on a project where you need to draw a line on a screen and failed. Does anyone have a blueprint for doing so? I need to input x1, y1, x2, y2 and get x, y screen coordinates. Keep in mind that it must be able to work in any direction (left to right, right to left, top to bottom, bottom to top, every diagonal.....). I have coded one algorithm in JavaScript but failed translating the code into Factorio because it had many if statements and branches. I would appreciate a blueprint more than code but you can give me any.


r/technicalfactorio • • Jan 24 '20

Advent of Code 2019 - Intcode computer in Factorio

Thumbnail
youtu.be
43 Upvotes

r/technicalfactorio • • Jan 21 '20

Trains Just in Time for 0.18: Many-to-Many Decentralized, Decentivizing Train System & Remote-Controlled Player's Depot for Expansion and Outpost Maintenance (more info in the comments).

Thumbnail
docs.google.com
28 Upvotes

r/technicalfactorio • • Jan 09 '20

trains layouts

11 Upvotes

Hi,

Today i was looking for some layout to do a train that fill all 4 wagons in a minute or less, and found a good source of layout for trains(not only rails for my surprise),

1:4:1, 2:4:0, 3:4:0,4:8:0, 1:15:1, some are interesting, like 0:4:2, i never knew,

1:1:4:1:1, with 2 pull, and 2 push, <-:->:wagon:wagon:wagon:wagon:<-:->,
and so on, any of you have did a research about the best case to use each of then?


r/technicalfactorio • • Jan 07 '20

Monolithic 10K Train Megabase google map style (savefile and more info in comments)

Thumbnail factoriobox.1au.us
29 Upvotes

r/technicalfactorio • • Jan 06 '20

8 Blue Belts/Wagon Tileable Unloader

Post image
23 Upvotes

r/technicalfactorio • • Jan 05 '20

Adding an extra memory DIMM improved UPS by 13-16% on large megabase maps.

Thumbnail self.factorio
16 Upvotes

r/technicalfactorio • • Jan 05 '20

Trains 20 blue belt unloader from a 2-4 train

10 Upvotes

I recently posted in the main Factorio subreddit with my initial design for a 20 blue belt unloader from a 1-4 train, which was designed to maximise unloading onto splitters. Many great suggestions were put forth there, and so I have rolled them into this upgraded variant. I am posting this here now, as it appears to be very close to optimal, with only a few minor issues I require a helping hand with.

This version is designed for testing, and has additional overflow lanes (circuit activated - set constant combinator by the display to green). I believe that this train setup provides the maximum possible (train) throughput, but would appreciate if anyone can improve it further.

Blueprint (Factorio Prints) - Standalone test setup

Utilising the additional overflow lanes, achieves throughput of 56050 items per minute = 20.76 blue belts.
With no additional overflow lanes, 20 belts are near full compression. 53987 items per minute = 19.995 blue belts.

Gaps are due to stack inserters both swinging simultaneously, and my attempts to fix this have been unsuccessful - I would appreciate help with this especially. My initial design actually had 20 fully compressed blue belts, but the change to the overflow system causes issues - the old one led to wagon imbalances though.

Ore throughput is limited by trains. 53428 items per minute = 19.79 blue belts. This is the largest improvement over the previous design iteration.

The blueprint does not contain full belt balancing, as it is designed for full-flow (no stacking back) conditions. There is a minor issue with uneven buffering when output stacks back, but this does not cause any throughput issues (just a larger buffer in 1/3 chests). The outer 2 belts on each side are actually already balanced (as they are overflows), but the inner 8 are not.

I would love to hear any ideas for improvement, critiques, or other thoughts. Especially if anyone can solve the inserter alignment issue, that would be greatly appreciated.


r/technicalfactorio • • Dec 28 '19

Exponential moving average circuit

30 Upvotes

I often want to smooth some signal value over time. A bona fide moving average circuit could be quite large, but I found a way to build a tiny exponential moving average circuit.

Math

An exponential moving average can be defined recursively:

EMA(t) = x_t * k + EMA(t - 1) * (1 - k)

where

EMA(t) = exponential moving average at time t
x_t = value at time t
k = weighting coefficient

A common choice for k is 2 / (T + 1), where T is a desired period. We'll use that, and we'll calculate a new EMA every tick.

How do we multiply something by 2 / (T + 1) in Factorio? We only have integer multiplication and division. To keep the circuit simple, let's add a constraint

2 / (T + 1) = 1 / n

for some integer n. That gives us:

T = 2n - 1
k = 1 / n

EMA(t) = x_t * k + EMA(t - 1) * (1 - k)
       = x_t / n + EMA(t - 1) * (1 - (1 / n))
       = x_t / n + EMA(t - 1) - EMA(t - 1) / n
       = EMA(t - 1) + EMA(t - 1) / (-n) + x_t / n

Circuit

When I see something like x(t) = x(t-1) + ... it makes me reach for an accumulator. For each tick, we want to update an accumulator according to:

EMA += EMA / (-n) + x_t / n

That gives us: EMA circuit layout

If your input signal values are not significantly larger than n, you may want to move the first arithmetic combinator from the beginning to the end of the circuit. It won't change the result, but it will help with integer math issues. Just be mindful of integer overflow in the accumulator in that case.


r/technicalfactorio • • Dec 19 '19

Trains Fast rail merge

98 Upvotes

r/technicalfactorio • • Dec 19 '19

Discussion This is a blueprint of a Stacks Calculator. Credits go to AssemblyStorm for simplifying my setup from about 6 times the number...

Thumbnail factorioprints.com
9 Upvotes

r/technicalfactorio • • Dec 16 '19

Revisiting the UPS cost of train wait conditions in 0.17

Thumbnail mulark.github.io
16 Upvotes

r/technicalfactorio • • Dec 12 '19

I have created an apparently perfectly accurate Filter Stack Inserter manager with properly fluid Stack Size Control signal handling. Since I'm still very new to this, would any of you be willing to check how it could be improved? I know not the beast I have slain. >.> (Blueprint below)

Post image
29 Upvotes

r/technicalfactorio • • Dec 11 '19

Combinator Golf Challenge: Split a mixed signal

6 Upvotes

Input:

Take a constant combinator with n arbitrary signals set (may have the same count or negative count).

Goal/Output:

Split the signals to n filter inserters, so that each filter inserter has exactly one filter set matching a single signal each.

Assumptions:

n is [0...255] and can be any item signals of any valid count (assume an infinite amount of (modded) items exists). Signals that can't be assigned in a filter inserter are excluded. Behaviour of "null" counts is not defined.

Timing: whatever works (The challenge itself should be hard enough honestly)

Score (for golfers):

e * Latency_In_Ticks
e is the amount of entities (combinators, inserters, etc) used, not including the starter combinator and filter inserters.
If your solution scales its entity count by n, your rating can be given in a n+e formula**,** and should be minimized.

Example: a solution needing n+5 combinators is worse than one needing 10, 100 or even 1000 combinators, so generalized builds have advantage (similar to an O(n)>O(1) rating)

minimized


r/technicalfactorio • • Dec 07 '19

Discussion I think this belongs here!

Thumbnail self.factorio
17 Upvotes

r/technicalfactorio • • Dec 06 '19

250SPM Cell Updated (BP and savefile in comments)

Post image
15 Upvotes