Circutry for dynamic quality crafting

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
SirSmuggler
Fast Inserter
Fast Inserter
Posts: 142
Joined: Tue May 24, 2016 1:55 pm
Contact:

Circutry for dynamic quality crafting

Post by SirSmuggler »

settup.jpg
settup.jpg (50.99 KiB) Viewed 234 times
Forgive my lack of paint skills, I hope with the explanation below it makes sense.

- Assembling machine and recycler both have quality modules.
- Assembling machine set to "Set recipe".
- Requester chest set to "Read contents" and requests material for crafting common artillery.
- Decider set to send signal "uncommon artillery" (value 2) when input signal shows enough uncommon material to do one craft.
- Constant combinator set to send signal "artillery (value 1).
- Selector set to pass through highest signal.
- Inserter I1 has no filter.
- Inserter I2 whitelist only common artillery.
- Inserter I3 has no filter.
- Inserter I4 has no filter.
- Inserter I5 blacklists all artillery (this one is not necessary, it just takes some workload of the logibots when the recipe is changed).

This setup works until enough material for an uncommon craft has built up. At that point, the recipe is changed to uncommon artillery as I want it to, but as soon as I3 starts to pull out uncommon materials from the requester chest, the condition in the decider is no longer true and the recipe switches back to common artillery. And so, the setup is stuck in a loop of switching recipes and never again crafting anything.

So, I'm guessing I need to add on some kind of latch or timer to keep the recipe signal on for long enough to start a craft before allowing a recipe change again? How would I do that?
h.q.droid
Fast Inserter
Fast Inserter
Posts: 207
Joined: Mon Nov 18, 2024 12:10 pm
Contact:

Re: Circutry for dynamic quality crafting

Post by h.q.droid »

You want to use a latch between your selector and the assembler, have it latch onto the same recipe until the assembler flashes "finished recipe" for one tick. You only need the recipe signal until the assembler starts working so read-working / a simple timer could work too.
SirSmuggler
Fast Inserter
Fast Inserter
Posts: 142
Joined: Tue May 24, 2016 1:55 pm
Contact:

Re: Circutry for dynamic quality crafting

Post by SirSmuggler »

Thanks, I finaly got it to work. It took quit a bit of hair pulling and youtube clips of smart people trying to explain various memmory cells and latches, but I did get there in the end :)
Post Reply

Return to “Gameplay Help”