Circutry for dynamic quality crafting
-
- Fast Inserter
- Posts: 142
- Joined: Tue May 24, 2016 1:55 pm
- Contact:
Circutry for dynamic quality crafting
- 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?
Re: Circutry for dynamic quality crafting
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.
-
- Fast Inserter
- Posts: 142
- Joined: Tue May 24, 2016 1:55 pm
- Contact:
Re: Circutry for dynamic quality crafting
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 
