r/factorio • • 8d ago

Weekly Thread Weekly Question Thread

Ask any questions you might have.

Post your bug reports on the Official Forums

Previous Threads

Subreddit rules

Discord server (and IRC)

Find more in the sidebar ---->

6 Upvotes

79 comments sorted by

3

u/pjotr3 7d ago

Do I really need full lane balancer after every exit from main bus? Or this second will work fine? It's more compact. I wonder what are you using.

3

u/Viper999DC 7d ago

These are two different things. The first option will rebalance all available items over all available lanes. This means as you go further down each branch will get less and less. Also consider that the non priority splitter means that the branches only get half the belt's content.

Option 2 is compression. Available items are pushed to the edge, and each branch takes up to one full belt (if available).

So you have to ask: is it ok if earlier stuff on the bus gets priority, possibly starving the late bus? If so, use option 2.

Personally I go with option 2. If the end of your bus isn't getting what it needs then it's time to upgrade the supply.

3

u/nooneeverdreamsof 6d ago

To split off a bus you only need 2. Balancers are very rarely actually needed.

2

u/doc_shades 7d ago

you really don't need any balancers at all as long as the consumers are fed.

in the balancer example you are taking 4 lanes of input, pulling some off the leftmost belt, and then spreading the remainder out equally among the 4 belts of the bus.

in the priority example you are taking 4 lanes of input, pulling some off the leftmost belt, and then forcing all the materials over to the left as much as possible.

the difference here is that further downstream, the balanced belts will be evenly saturated less than full. if you pull off the leftmost belt it won't be a full belt.

the prioritized belts will be more saturated on the left than right. if you pull from the leftmost belt it is guaranteed to be a full belt.

1

u/HeliGungir 7d ago

Use each belt once, then balance or priority merge them all.

Or each lane of each belt once, then balance or priority merge them all.

3

u/nooneeverdreamsof 6d ago

How the hell do I start with quality? I don't understand where I'm supposed to start.

Quality in drills? Recycling? What?

4

u/Courmisch 6d ago

There is no hard rule; it's up to you how you prefer to approach it.

Probably the most popular approach is up-cycling loops. @DorrianFactorio recently made an extensive tutorial video series on YouTube if you want spoilers.

2

u/mrbaggins 6d ago

I'd hesitate to recommend dorrian to anyone who wants to avoid "spoiling" working it out. It's very much a "final" solution for the problem. Not that it's perfect, or best, but it's very much "skipping what made factorio fun" in regard to quality.

op, the most basic way to quality is to have machine output to a chest, an inserter that takes any quality you don't want from the chest and puts it in a recycler. Then you can:

  1. store the uncommon/rare/epic/,legendary recycle products until you have enough to try and craft a higher quality item directly, and
  2. route normal items back to the original machine to reuse them (saving 25% on the next craft attempt)

2

u/Courmisch 6d ago

Yes, hence "if you want spoilers".

1

u/mrbaggins 6d ago

Yeah, I just wanted to make it clear it's not just "spoilers" but very much "The entire thing"

"Spoilers" would include even something like some suggested recipes to focus on. There's a wide spectrum under that word.

4

u/Gragakh 6d ago

It depends on how much complexity you want to handle and what you want to make.

'Beginner' quality can be as simple as putting QMs (quality modules) into a few of your mall machines, like asteroid grabbers, thrusters, personal equipment stuff, and hoping that the machines make a few green or even blue level items for you to use here and there. On Fulgora, you'll probably want to put QM into all of your accumulator makers so you can have a few higher tier accumulators for greater power density.

Once you unlock legendary, the real quality grind can begin. There are a couple ways you can handle it. 1) brute force. You put quality in drills and funnel the output through a series of recyclers, cycling it through over and over. It is hugely wasteful but quick and simple. Done with coal, you can make legendary coal which will let you make legendary plastic which can be used in the LDS casting recipe to make legendary LDS; this can be recycled to get copper and steel.

Done with iron ore you can brute force your way to legendary iron ore.

A more elegant, and less wasteful, approach is to craft things and at each step you use QM. The more crafting steps you can perform, the greater chance of getting a higher quality result out the end. Then once you reach the end of the crafting chain you recycle the things back down to intermediate steps with QM in the recyclers and use the assorted quality intermediates to craft things again with QM. Over and over, crafting and recycling and recrafting and storing away the legendary outputs.

This is called upcycling and it can be done as simply or as complicated as you desire.

Your first upcycling factory should probably be making legendary QM3. You set up an array of, say, 10 EMP making QM3 from common quality inputs (so, red and blue chips plus common QM2), and fill those EMP with the highest level QM you have. Take the assorted quality QM3 they make, put some back into machines to replace common QM3s, feed what you don't want to keep into a bank of recyclers that have QM3 in them. These recyclers will produce a stream of varied-quality red, blue and QM2. Filter that output stream by quality, send the common stuff back around through the 10 EMPs (use priority to prioritize using those up so they don't jam the machine), send the uncommon to a pair of EMP making uncommon QM3 with quality modules, send the rare to an EMP making rare, and so on. Filter off the legendary into storage.

As you do this, upgrade the QM3s throughout the process until they are all replaced. I'm not gonna lie, this takes awhile. Once you have fully upgraded your upcycling factory to legendary QM3, a 10 emp common setup should make around 0.6 to 0.8 legendary QM3 per minute.

If you want, you can start the quality process earlier, by putting quality in the drills, quality in the scrap recyclers, quality in the QM1 and QM2 plants, and so on. But the earlier you start the quality process, the more complex the sorting and routing becomes. You have to deal with varied quality at every step along the way, and organizing that can be a challenge.

So single-step upcycling like this is probably sufficient. And the same process works for all the special buildings (foundry, emp, etc). Craft them in common using QM3, recycle, re-craft, recycle, and so on.

3

u/FogeltheVogel Slow and steady 6d ago

Well you start by just putting quality modules in all your mall assemblers, and a second chest to put all the non-normal quality items in.

Just start that as soon as you can and you'll have a few dozen solar panels, assemblers, accumulators, smelters etc just waiting for you.

Then when you make a space platform, for example, you can use your quality buildings to save some space.

2

u/reddanit 5d ago

There are many ways to start with quality. Personally I'd highlight two:

  • Putting quality modules in your mall assemblers for final products, like power poles, assemblers, inserters etc. You cannot use prod modules there anyway and the products involved are generally "final" - so there is very little opportunity cost and almost no extra complexity involved. You can do this from the very moment you unlock quality.
  • Focusing on getting higher quality quality modules. Starting from tier 2. This is usually for when you get recycling on Fulgora and want to take a serious stab at quality. Quality of the quality modules themselves is critically important for efficiency of your quality setups. So, when it comes down to it, it's important to tackle it first.

While technically you can put quality modules in miners or in your "main" production lines for intermediate products, that's far more complex than you'd think. I think it's absolutely not worth the fuss unless you are playing at very high science cost multiplier. Or if you want to tackle it specifically as a challenge.

In the long term, there are two broad ways you get quality stuff:

  • End product upcycling loops for specific product. The benefit is that you get the final product directly and those setups are largely independent. For some things they are competitive for being most efficient way (EM plants upcycling for example).
  • Various upcycling loops/methods for basic/intermediate materials. Those get you high quality materials to build high quality final products from. Of particular note for late game are LDS shuffle and blue chip upcycling - those rely on productivity research levels to be efficient, but their ceiling is almost-free legendary stuff. With very high mining productivity research it's also surprisingly efficient to directly upcycle raw ores.

1

u/ssgeorge95 6d ago

You can start with quality with just Vulcanus tech and have OK results. Lava and calcite are all you need to create quality iron and quality copper, and you can use the lava as a place to void your excess items.

  • Iron: Setup some foundries making iron plates with quality modules in them. Box up the rare plates, send the junk plates into the lava. It's convenient to turn the junk plates into iron chests, then dump those chests into the lava.
  • Copper: Do the same with copper plates. There's no easy way to void them, you just have to setup a lot of lava dumping.
  • Plastic: Harder because the coal patches are limited. Put quality modules into the coal miners and in the chemical plants making plastic. What few rare plastics you get should go into rare quality module level 2s, then other items.

With those three resources coming in rare I like to create rare quality modules, spaceship parts, and accumulators for Fulgora. Those tend to have the biggest return.

Once you have fulgora recycling things can get way more complicated and way more productive.

I think in all cases, your goal should be to create a blueprint that you can copy, paste, and easily connect inputs and outputs to. When starting out I think that's more important than min/maxing for the best return and smallest footprint. You can optimize later.

3

u/sunbro3 6d ago

Are there tools for designing the Beneš networks that balancers are based on, or do people do it by hand? I've seen diagrams but I don't know if a tool is calculating or confirming the correctness of the diagram.

4

u/Flyrpotacreepugmu 6d ago edited 6d ago

There's not much point in such a tool. Figuring out the connection graph is vastly easier than figuring out the belt layout needed to achieve it, so any balancer big enough to be worth using a tool for would be far too big to reasonably build.

The method is very easy at its core. Balancers are always based on the next larger power of 2 with unused outputs looped to unused inputs then the unnecessary parts trimmed out (e.g. a 4-6 balancer is effectively a 8-8 balancer with 2 of its outputs looped back to 4 of its inputs, but those loops can be simplified by removing redundant splitters). Those power of 2 balancers are very easy to design conceptually. A 2N balancer simply consists of 2 2N-1 balancers and 2N-1 splitters each connected to both smaller balancers. So a 2-2 balancer is a single splitter, a 4-4 balancer is 2 2-2 balancers and 2 more splitters each connected to both of the 2-2 balancers, a 8-8 balancer is 2 4-4 balancers and 4 splitters each connected to both of the 4-4 balancers, a 16-16 balancer is 2 8-8 balancers and 8 splitters each connected to both of the 8-8 balancers, etc. A throughput-unlimited balancer basically has to do all that again in series (except the output splitters of the first stage can also be the input splitters of the second stage) so that there are two independent paths from each input splitter to each output splitter instead of one.

2

u/sunbro3 5d ago

Thanks. I can see that works, but also that there are other ways. Raynquist's 7-7 is an 8-8 with a loop, but the 7-8 is a 7-7 into an 8-8 with redundant parts removed. And the 6-6 is made out of 3-3s instead of an 8-8. I don't understand how to remove redundant parts without breaking it accidentally so I was looking for tools that make errors visible. Also whatever happened here, 8 years ago shows there are subtle ways to do it wrong.

But I understand if there just aren't tools that help.

My interest is other games. This is the only community that even knows what a balancer is. Other games' wikis are wrong, and some people are so afraid of balancers they get angry if someone asks about them. So to best place to start is to understand the ones here.

2

u/Flyrpotacreepugmu 5d ago edited 3d ago

the 7-8 is a 7-7 into an 8-8 with redundant parts removed.

That's a different (and probably simpler) way to arrive at the solution, but the result is exactly the same as a 16-16 balancer with 8 of its outputs looped back to 9 of its inputs (which needs extra splitters) then a whole lot of redundant splitters removed. If you want to try yourself and see that both approaches arrive at the same result, a 3-4 balancer has the same issue of needing to double the size to 8-8 to get an extra output to loop back, and needing to add a splitter to one of the resulting loops to turn 4 into 5, but it's much smaller and easier to simplify back to the final size.

And the 6-6 is made out of 3-3s instead of an 8-8.

Remember that an 8-8 consists of 2 4-4s and 4 splitters, and a 3-3 is just a 4-4 with a loop. Since a 6-6 is an 8-8 with 2 loops, you can choose to loop a pair of outputs on the same splitter (if the extra splitters come after the 4-4s, but the whole layout is reversible) and that makes the output splitter redundant since the inputs are balanced. If you then remove the redundant splitter, you end up with both 4-4s looped to the inputs and turned into 3-3s, and 3 more splitters. Making a 6-6 from 2 3-3s and 3 splitters also follows the method of making power of 2 balancers that I mentioned before, since it's doubling the size. Now that I think of it, that method applies to all even numbers.

There are multiple ways to reach the same results, with some methods being more widely-applicable and others being easier when they apply. What I described is the method that should work for anything, but it's not always the simplest.

there are subtle ways to do it wrong.

The problem there, and the easiest mistake to make, is disregarding throughput or balance when adding new splitters to split or merge loops. If there are multiple loops and one needs an extra splitter, make sure to do it in a way that keeps everything even. For example, when making a 3-4 balancer by my method, at one point you have an 8-8 with 4 outputs looped to 5 inputs. 2 inputs and 2 outputs can easily be eliminated since they just connect the same splitters as other loops and there's no need for that much throughput, but there's still a need to connect 2 outputs to 3 inputs, so 1 output will need to be split across 2 inputs. Further simplification results in 2 of the 3 loop inputs connecting directly to the output splitters, while the other loop input is on the input splitter with 1 normal input. So which of those 3 should get a full belt looped back and which 2 should each get half a belt from splitting the other loop? The correct answer is that the input splitter should get a full belt and the output splitters should each get half a belt. If you split it a different way, the looped input won't get enough items and will try to take more from the other input, and one of the output splitters will get more items than the other. Since balancer graphs are reversible, a 4-3 would have to merge 3 belts into 2 and needs the same decision to ensure the extra output can flow freely and the inputs are balanced. After looking at that process, the method of combining 3-3 and 4-4 balancers in series looks less prone to such mistakes than trimming down an 8-8 with multiple loops, even if they do arrive at the same result when done properly.

My interest is other games.

That changes things significantly. Every other game I've seen had splitter-like things that could do at least 1 into 3 or 3 into 1 in addition to 1 or 2 into 1 or 2, if not arbitrary configurations of inputs and outputs among 8 connections. Factorio's balancers are much more complex than balancers in those games because Factorio's splitters are much more limited. In Captain of Industry, I have yet to find any need for a big balancer when I can get a 3-3, 3-4, 3-5, 4-4, 2-6, etc just with a single component. The biggest thing I've done was an 8-8 balancer, which was just the same as a throughput-limited 4-4 in Factorio.

3

u/platypodus 5d ago

Do nukes on space platforms leave craters or destroy the tiles?

4

u/Viper999DC 4d ago

Atomic bomb now blasts planet-appropriate holes into the terrain of the planet if the terrain is floating on a fluid: Ammoniacal ocean for Aquilo, Lava for Vulcanus. It also destroys space platform tiles.

1

u/TitaniumDreads 2d ago

apparently this is a hack for making donut space ships

3

u/nooneeverdreamsof 5d ago

Tackling Vulcanus for the first time, first ship moving to a planet actually. 

What conditions should I use for this?

I imagine I want a trade route between Nauvis and Vulcanus to bring stuff constantly. 

On the spaceship, I have the requests group, one for Vulcanus with a few things, which is active. Then on Nauvis I have a condition for all requests fulfilled.

With this, it should go to Vulcanus right? Then on Vulcanus I would a landing pad thingie, where I get stuff from the ship. For Vulcanus it would be the same condition, wait until all requests are fulfilled?

4

u/cathexis08 red wire goes faster 4d ago

Simple setup is "all requests filled", "ammo > some value", and (optionally) fuel/oxidizer > some value" for Nauvis, then "all requests filled" for Vulcanus. You might want to add a sleep at one end or the other to keep from flying back and forth when you don't need to go but that's an optimization.

2

u/Astramancer_ 4d ago edited 4d ago

Assuming your ships can handle being fully autonomous, the way I handed it was pretty simple.

There's an interrupt called "AnyPlanetImportZero" or something like that. You set the interrupt with a planet selected and any time any of the items your platform is requesting from that planet runs out the interrupt will fire.

I built a series of platforms, one for each planet. The Nauvis platform would have a schedule: Go To Nauvis. And a series of interrupts: AnyPlanetImportZero(Volcanus): Go to Volcanus, repeated for each planet.

The platform will float above the planet its assigned to, acting like an orbital warehouse. Then once something runs out it jets off to go resupply from that planet and then it heads back to its assigned planet.

Note: This was done before interplatform requests were possible, hence why it doesn't take advantage of that. Were I to do it in 2.1 I would probably do the same sort of thing, but the platform assigned to the planet can also get resupplied from a big platform that just slowly makes a circuit around all the planets. AnyPlanetImportZero would still be a failsafe, but the platform would generally get resupplied by a dedicated supply ship.

An, of course, tack on whatever other conditions you need, like "&& ammo>500" and "leave on inactivity," whatever your preferences are.

1

u/Rouge_means_red 4d ago

Sounds good. You would probably also want to check if you have enough ammo for the journey. Even better, have a constant combinator that checks everything you need and then send a signal to the hub, this way you can easily have several signal conditions combined into one

3

u/pjotr3 3d ago

are laser turrets good? I noticed they didnt kill fast enought to handle small waves and I calculated dps(dmg*shooting speed)

laser turrets 54.6

gun turrets 340

Will they get batter later? At this point I either has to place much more of them or switch back to gun turrets and provide ammo.

7

u/FogeltheVogel Slow and steady 3d ago

The advantage of laser turrets is that you don't need to supply them with ammo. All they need is a power line.

This is balanced by them having lower DPS.

5

u/reddanit 3d ago

Each turret type intentionally has some downsides and upsides. Lasers get decent range and easiest logistics, but suffer from relatively poor DPS.

You can for the most part overcome that weakness for most purposes with sufficient amount of laser damage research multiplied by spamming a ton of laser turrets. Though it doesn't work for everything, notably lasers are always meh against pentapods and outright shit against large/huge asteroids.

4

u/xor50 I love Stack (Bulk?) Inserters. 3d ago

You probably have more physical damage techs than laser techs researched.

But generally the advantage of laser turrets is not needing to transport ammo around. Also they have slightly higher range, which is especially useful against spitters, but in general that means they have slightly more time to shoot at enemies.

But gun turrets are just very strong especially with red ammo or better and some levels of physical damage. But you need ammo. It's all a trade-off.

1

u/Courmisch 3d ago

Each of the 3 base game turrets has their pros and cons for balance. If you want high DPS, you want flame throwers.

2

u/prof_tincoa 3d ago

But they keep getting damaged, they aren't fast enough to kill spitters before they spit =( How do I deal with it?

2

u/Courmisch 3d ago

Flame thrower turrets are pretty defenseless without walls, yes

1

u/prof_tincoa 3d ago

Jokes on me, I've tried using simple walls, then double walls, then double walls with a simple wall further away.

3

u/Courmisch 2d ago

Double thickness wall is enough if it is maintained by bots. But it must be at the right distance ahead of the turrets to avoid blind spots.

Alternatively back the flamers up with guns or lasers as u/HeliGungir said

2

u/HeliGungir 2d ago

People generally pair flamethrowers with laser or gun turrets to cover that weakness.

1

u/Maleficent_Onion_822 2d ago

Dragon's teeth (checkerboard maze?) outside the wall help a ton. The next step is mines (maintained by bots)

1

u/TitaniumDreads 2d ago

yes, they are extremely good. Produce lots of batteries bc laser turrets will be the backbone of your base defense along with flame turrets and eventually tesla turrets. You'll need to research laser damage.

3

u/prof_tincoa 3d ago

How do I cancel the Xs? I don't actually want to blow away those rocks.

4

u/darthbob88 3d ago

Get a deconstruction planner, and hold down the Shift key while mousing over the area.

2

u/prof_tincoa 3d ago

Thank you, I'll try =)

3

u/teodzero 3d ago

If you hold Shift while applying a deconstruction planner it cancels the deconstruction.

1

u/prof_tincoa 3d ago

Thank you, I'll try =)

2

u/doc_shades 7d ago

are nonplosive rockets better for gleba defense?

i'm playing a new 2.1 save and am doing gleba a little bigger/little earlier than i am used to and am setting up a modest orchard defense: i have red ammo turrets, a handful of tesla turrets, and a few rocket turrets.

i instinctively started making explosive rockets ... then i realized that they do way more collateral damage than i expected them to.

on one hand i could move the rockets so that their damage is not collateral, but stompers have more of a tendency to penetrate defenses than biters do. so i'm not even sure that will prevent collateral damage.

then i started reading and thinking ... nonposive rockets do way more direct damage than explosive rockets do. the benefit of the explosive rockets is the splash damage. but i don't know that splash damage really benefits me here. i want them to down stompers ASAP. let the turrets and teslas handle the small, spread-out targets.

well anyway i switched over turret supply from explosive to nonplosive rockets, but the nonplosive rockets have only made it like 20% of the way down the feed belt so it will be a while before i actually see any differences but i'm just thinking and asking out loud!

7

u/Flyrpotacreepugmu 7d ago

Yes, basic rockets are better for Gleba and for most things. Explosive rockets are better for wiping out a line of spitters in a Nauvis attack wave or for clearing nests with a spidertron, but not much else.

1

u/HeliGungir 7d ago

Once you have a lot of damage research, explosive rockets are way better than regular rockets for traveling to the shattered planet.

While overkill, I suppose technically they can be very efficient in landfill-based biter funnels, or when combined with lots of tesla turrets (to make enemies bunch up).

2

u/Tybran12 6d ago

I've noticed that sometimes after switching my train from automatic to manual and back, it can no longer find the path or it stops one track tile early, which messes up my loading/unloading. Am I missing something?

2

u/HeliGungir 6d ago

Probably another train reserved the spot at the station.

2

u/Tybran12 5d ago

This has also happened many times when I only ran a single train per track.

1

u/HeliGungir 5d ago

So debug it. Where is it trying to go to, and why can't it get there? Look at the schedule and the interrupts. Look at the destination. Trace along the expected path with temporary stops to see if there's a broken rail or signal.

1

u/pornyote 6d ago

Do you have a screenshot of the situation? And when switching from automatic to manual, does the train move perhaps to a place it's not supposed to be?

2

u/Tybran12 5d ago

Here is a screenshot. The train used to stop as far down as the train on the left, but now decided to stop one tile further down. This has also happened on tracks that only ever ran one single train.

4

u/Flyrpotacreepugmu 5d ago

Did you move the train at all while it was in manual? It looks to me like what happened is that the train is still trying to go to the station it's at, but it was already past the station when switching back to automatic, and there's no place it can turn around to reach the station by leaving and coming back. Trains will never switch direction while moving, only when leaving a station, so it's not smart enough to simply back up slightly then stop at the station without going somewhere to turn around.

The solution is to just manually back the train up a bit so it can properly stop at the station or tell it to skip to the next stop, then avoid switching trains to manual while they're at dead-end stations.

1

u/Low_Caterpillar5930 8d ago

When will the 2.1 update come out on the Switch 2?

5

u/Viper999DC 7d ago

Today, apparently. It's out!

1

u/Soul-Burn 8d ago

When it's done. We don't have more info about it.

1

u/disastrousgreyhound 7d ago

I'm planning to start a modded run soon with some new planets. I'm thinking of adding a biter mod to spice up Nauvis a bit and was looking at Rampant, does the json version trick work on it or should I look at Rampant, fixed and just dial down the settings a bit?

If anyone has suggestions for other biter mods that could be useful! I'd mainly like to make it worthwhile to actually defend the base rather than something to be solved before you even reach reach the midgame. I'm thinking a slower ramp up but higher ceiling could get me the experience I'm looking for.

3

u/cathexis08 red wire goes faster 7d ago

There is a very decent chance that updating  Rampant to 2.1 compatibility will be a decent amount of work so I'd probably take the "Rampant, fixed plus adjusted settings" approach 

1

u/contextify 3d ago

Circuit help! Why is the assembler on the right losing its recipe for one tick out of every 10 while the assembler on the left is not?

I am trying to make a smarter mall; rather than have a dedicated assembler for each intermediary and each output, I want to have a few 6x6 warehouses, supply them with basic inputs, surround them with assemblers and use combinators to set recipes.

I want to avoid the problem of them changing recipe often / with each craft, and the related time loss of both interrupting something mid-craft, losing productivity bonues, and having to empty the machine so often with inserters, so I intend to change the recipe by only sampling the warehouse once every ten seconds or so. I currently have it sampling every 10 ticks for development and troubleshooting purposes.

To explain the setup:

  • I have a Constant Combinator with my target amount of each product (on Red wires)
  • I have an Arithmetic Combinator whose input is the warehouse, multiplies [each] by [-1], and outputs [each] (on Red)
  • I attach the output of the Constant with the output of the Arithmetic (so I am subtracting the current inventory from my target amount) to to the input of a Decider Combinator.
  • I also have a simple timer counting signal [T] from 1 to 10 and resetting. This is on a green wire.
  • The Decider checks for both [each > 0] (on Red) AND [T=1] (on Green), and outputs [each; input count] (on Red)
  • The Decider output is connected to a Selector Combinator input. It selects the highest count signal ([Select Signal], [Index = 0], [Sort Descending]). All Red wires.
  • The Selector output is connected to a different Decider input, this is my Sample-and-Hold circuit. It has its output connected to its input. Its conditions are ([Each > 0] (on Red) AND [T=1] (on Green) and outputs [EACH] input count (on Red).

Now, my question is, take my blueprint and load it in.

Why does the assembler on the left not lose its recipe ever, but the one on the right loses it when the timer resets?

[Partial answer - I know the whole setup imperfect, and the second Decider should have [T=2] instead of [T=1] because it takes a tick for the signal to propagate to it. So I understand WHY the one on the right loses the signal for a tick. Why doesn't the one on the left?]

Screenshot of setup.

Blueprint string:

0eNrtWFmO4zYQvQs/A2pgUostA8kp8tcwBNpi20RLpEJS7jQaPkBukbPlJClq8xJ6RjTSCDoz8IdLJfJVqZanot7Rtmp5o4W0aP2OxE5Jg9ZP78iIvWSV00lWc7RGzBhebysh91HNdgcheRSjE0ZClvx3tCYn7NvERPTKND+o1vCL1fS0wYhLK6zgvb3u4q2Qbb3lGuDwCGHarbHMCiURRo0yohPBBMBESbLE6A2tV+nJ2b8BoROIeyzLpI12qt4KyazSXrTsS9rjLb6k4C1ss1pVxZYf2FHAHlho+M7tMdcyPMEYCIyeRWW5vtUOrgitZNRUzHLw4LeWVeAxqKXSNYTO2awbpjsP1+jnTtG65NAFRK9ulLbFs1a128LaozDIPfgY1slKI5oPwI+v8COror2G3eW/ZWkDP18iz3YNryDmSn8rkUMaSZfGUug+UWid+JOqGq77GhtNAGovFDUDSKtbPlRvMRYTWi98ziaTsyXfiZLP9ZXe+kqo39kB1vlRiqkWL6+g7p6FNrY4N6R9a5xLR6Ft22VnDGi3IuLQ0uh0k7NfEL7CKSS3r0q/dPY0L8ew7DXn4O8zqwzvIhJo/Nfe8hhV4imdr7vRWZ78cE5Nj8KLwTiDMnWso1rbtPaW5GaGZ1YAHLWBUJwt+as6xV/lVl+pJAM/LfOuWKBURHPR7v114elFYXk9EFJ5wc+m4byMalW21Ujn/ULX8oWQR3BZ6beByaYrKHHI1e7FdQC+c4fcvUPv3old/288ocpCeyoO6//vraX++uPP/2lTLc9NpYU91NyK3cximU3AZ+SbgnmwQmCMAJiL90oE+bp8Jf2ExhCHgntjtJrWbtvqJRLScA0Dizc29JpxLlvJg5w/gDzMWldx90CTReg0F+ejhWwmDTw8232zG4MGJHJ3ECLnOfJ6tPY+/lDWXiAayKgjWvofMuotqS0eph5Ams0oJA4uvHRsmtXHHiP2nOno9cB5FVhgi6DDRGfLAN29BA76aRo66ZNkPoOcw5zPY5D0Aex/spOP90gW/tqJA88on/2tQ5bB824cX2fY30i2GOfgYUiZxuKrwg0ejhsNczHk5AjLP8GMTFahlP5jSP4uz50kD/2cEpN7XPjxn1PoYuanwNFJ/6dAEtgcNA975B8nyM/ZHqB9heS6yyeCUwzllm7wE8UEL3EMUgxSMkgxzjABKZnuJpiCjoKUgi7rdNmFBDi0u70EJUzvbjecZCa1U2HSozqV0ye9DEZW/Zq4X+MQ3Z/Td+sdJh0wYamTaS/DmrzX5yAPa9yfk+PNpn+HuUFo+vqP0RGGza7E04zmaUKTPM9IsoxPp78BQNImvQ==

2

u/Courmisch 3d ago

To debug circuit timing issues, go to editor mode and use the single step hotkey (IIRC, numpad . by default) or the button in the Time tab of the Editor memu.

1

u/HeliGungir 3d ago

Haven't downloaded it, but it's probably safe to assume both have the same logical flaw and there's some external circumstance that happens to ensure the left machine doesn't switch recipes in this particular case. Maybe its inserter is too slow. Maybe the recipe being crafted consumes pipes slower than gears/sticks. Maybe you're failing to account for the several ticks when the item is being held by an inserter.

1

u/Nihilismyy 6d ago edited 6d ago

Anyone have a link video/blueprint to end-game fully legendary megabase space platforms? (Space ships!) That is UPS optimized and 2.1 remodeled!

I want something that hauls 200k science for inner planets and one for aquilo.

UPS optimized meaning clocked inserters and entity update time micro-managed. 2.1 remodeled meaning no super long pencil ships for width, but focused on mass and speed.

Would also be interested in a white science ship making ~8 maxed 240 belts with same requests above for UPS and 2.1

Thank you!

1

u/Engelberti I have a plan 2d ago

Circuit signal question.
Is there an elegant way to "transfer" amounts from one signal to another?

I am working on an automall and want to multiply the ingredients with the number of desired outputs, but I can't just multiply "150 gears" with "2 iron plates per craft" and get "300 iron plates" as an output signal.

My current attempt would be to essentially make a "for loop" for each gear and increase the number of iron plates each loop until i am done. But that seems a bit silly.

Is there a better solution for this?

2

u/Courmisch 2d ago

No. You can transfer boolean values with a constant combinator and a decider, but not arbitrary values.

However for an automall, you don't need that. Ideally have only the recipe signal on one wire and remap any signal on that wire to one fixed signal.

0

u/Engelberti I have a plan 2d ago

However for an automall, you don't need that.

I know it's not strictly needed. But I wanted it to avoid unneccesary recipe switching.

Make all the gears I will need before I start crafting belts, instead of
crafting belts until I run out of gears, switch recipe to gears, switch back to belts,... and repeat.

Seemed like something I could optimize.

2

u/Courmisch 2d ago

Point is, you don't need to remap N signal IDs to N other signal IDs. You just remap the one current recipe signal.

This is completely orthogonal to how you sequence the different recipes. You just need to "know" which one you are currently crafting.

0

u/Engelberti I have a plan 2d ago

Point is, you don't need to remap N signal IDs to N other signal IDs. You just remap the one current recipe signal.

My issue isn't how to change the recipe. My issue is that there is no way of knowing that my 150 gears will need 300 iron plates.

I have the signal with the 150 gears that I can use to set the recipe. No Problem.
I can read the ingredients of the assembling machine to get the information that I need 2 iron plates per craft. No Problem.
But I can't combine these 2 pieces of Information to know that I will need 300 iron plates.
That's why I was asking.

2

u/Courmisch 1d ago

Sure there is a way. You know you are currently crafting gears and want 150 of them. You know from reading the recipe that it takes 2 iron plates per craft (assuming no productivity).

The only signal ID you need to remap is the current recipe (gears), and you can remap it to a fixed abstract signal, say C or N, which is trivial to do (e.g. Each + 0 -> N). Then you can multiply each ingredient by N.

Again, there's no way to remap several signal IDs in a single combi whilst preserving their values. But you do not need that here.

0

u/Engelberti I have a plan 1d ago edited 1d ago

The only signal ID you need to remap is the current recipe (gears), and you can remap it to a fixed abstract signal, say C or N, which is trivial to do (e.g. Each + 0 -> N).

This is exactly what i want to do but can't.
When I select an abstract signal as an output, i also have to give it a fixed value, which would defeat the whole purpose. Or I Output it with the same value as the input signal, but since my input signal of that abstract value is 0, the output will also always be 0.

Edit: i misunderstood your comment, but it still doesn't work. Multiplying the ingredients with an abstract signal is the same as multiplying it with the gear signal.
it doesn't mix the values of 2 different signals

2

u/Courmisch 1d ago

An arithmetic combinator cannot even assign a fixed value to an output in the first place. You're not making sense here, sorry.

1

u/Engelberti I have a plan 1d ago

yeah my bad. i was thinking about the decider combinator outputs.

Your suggestion sounds like it should work. i will give it a try later today.

Thanks. I knew i was missing something obvious.

1

u/Lyqyd 2d ago

Darthbob’s solution is the right one. Take the 150 gears signal and convert it to X unchanged, then multiply the outputs of the assembler providing recipe information each * X, output each. You’d get 2 iron plates times 150 X is 300 iron plates.

May want an extra assembler strictly for use in recipe planning, but that’s an easy add.

1

u/darthbob88 2d ago

This may not qualify as elegant, but the method I use is just using an arithmetic combinator to convert the recipe signal to a magnitude, 1 * gears=150 => X=150, and another combinator to multiply that by the ingredients from the assembler, <EACH> * X => <EACH>.

1

u/cathexis08 red wire goes faster 2d ago

Unless you're trying to normalize onto a variable so you can reuse things you can skip the first combinator and either use the red and green channels to handle the two halves of the equation or set some part directly in the combinator.

1

u/darthbob88 2d ago edited 2d ago

An automall is exactly the thing to care about reusability; sure, I or OP can hardcode gears * 2 => iron plates, but it'd be better if I could do that with any recipe and any collection of ingredients, like red undergrounds and gears/yellow undergrounds.

E: The below works, and I'm pretty sure it does what OP wants. If you switch the top combinator to <EACH>(red) * <EACH>(green), it outputs nothing. The only option I can see to drop the lower combinator is to skip X and just hardcode that you're making enough for 2/3/etc crafts, which I do not believe is what OP wants.

0eNq9lN1u2zAMhd+Fl5tc1H8ZYmDvMaAIDNlhEmKW5ElyuiDwu49SErtrkqLZxeALyzTPIfVJ4BGabsDekvZQHYFaox1UL0dwtNWyCzEtFUIF0jlUTUd6myjZ7khjksEogPQaf0OVjisBqD15wpND/DjUelANWk4QF6dQw0vtk9aohrT0xoKA3jjWGh1KBr88eyoFHKBKyuenkguxzFvT1Q3u5J5Yw4kO26Bxf6+5+KUrARvqPNr30XMrG+l8MnDUbq3hd9Jg57mZX4PsuHnO0MYq5hDKq17a2GwF32NgCNDSZ2agemN9vbFGBYkc9uRgXPEzjuKKRDaVV7imQSXYceuW2qQ3Hd5CkU8oCkZxwzKfLKUlv1Po2e1jvLNnfgfubFXz7zVNpDdkna/nG+IPfSi9J+uHyOrcyykjQb4u4abwAbFNfTl+qJic6ZGZxr7gKyvN4PvhAe8fMN5kXDwOpJiAlP8XyMO6t9C+/AO0i8/btmuN/tXYn3E/FtdQbWTnUMDWInIhbwd83/K1JmRNkmhw+3hK8eFYuXE6i/m63p0GpAOGz23kzOwzOwi79rXFlgLVU4JFua65adYQ781Nvpe0u6PllFBfTZgwP1/JxuH5kopM5CJbibgq4yrjVSEKXuXhHWOFSPlvumIteQzDZx7nAvY89yLDcpEtyyIrlstFWnzLx/EP51EJ+w==

1

u/cathexis08 red wire goes faster 2d ago

I haven't looked at your BP but I design my automalls using parameterization which bypasses the whole hardcoding issue.

2

u/darthbob88 2d ago

I had thought that the distinguishing feature of an automall was dynamic recipe switching, so one assembler can make gears, a belt from those gears, and an underground belt from those gears. If it's a blueprint you can parameterize outside of setting a desired stockpile in a constant combinator, that sounds like a "mere" bot mall.

1

u/Engelberti I have a plan 1d ago

Yes, I am going for a build with recipe switching.

For now I have just hardcoded a 50x multiplyer to the intermediates to always make enough for 50 crafts.

1

u/cathexis08 red wire goes faster 2d ago

Elegant? Not really. An arithmetic combinator can do the signal translation (gears * 2 = plates will give you a plates signal equal to 2x the value of the incoming gears signal) but it's a little manual to set up.