#Programmable assembling machine

1 messages · Page 1 of 1 (latest)

amber badge
#

I'm trying to create a setup where I can give a single assembling machine automated recipe inputs based on what my chests are low on. It's easy enough to give the machine a recipe to start with using decider combinators, but the problem is that once it either satisfies demand or runs out of a single ingredient, it gets "stuck" having leftover ingredients inside (see screenshot) and cannot change to a new recipe. Anyone know a solution to this?

drifting rock
#

by the way, if it did change, it would spit the ingredients out into the trash slots

fluid cave
#

Yeah, recipe change moves all items into the trash slots. For that there are two solutions:

Only load the right amount of ingredients so trash slots are not needed. That requires control of inserters. (hard)
Or a chest for trash items. (easy)
Items from the trash chest can be fed back whenever the same item is crafted again.
-# I just realised I could use the requester chest for that - using two chests is an artifact from earlier versions of this

amber badge
#

It is receiving inputs for both items

fluid cave
amber badge
#

I think the issue is I need to find a way to turn off a recipe input when it runs out of ingredients for it?

#

Or just make sure it never runs out

#

ok yeah turning off the circuit input caused it to spit out its contents and change to the other one

fluid cave
#

I'd say develop this thing in stages. Get it to work with the assumptions ingredients never run out first.

cunning dove
#

I'd also note, it may be a good idea to make it something you actually would want to use

amber badge
#

yes, this is just proof of concept for now

cunning dove
#

gonna be real, swapping between green circuits and red science is not gonna help you, but swapping between medium and large power poles will

fluid cave
#

And they have the same ingredients. If you run out, you can't craft either. So that's not a problem.
At least not one within that bp.

cunning dove
#

setups like that are called many things from smartmall to automalls
some form of alternative mall, and they're helpful albiet imo kinda gimmicky on nauvis

amber badge
#

I think I solved it

#

if I add a condition to check there are sufficient ingredients remaining as well, then it turns off the recipe if it runs out. Now all I have to do is filter the trash output back to the ingredients

cunning dove
#

I don't know where they are, but someone made a python script to make a single combinator able to output any item able to be crafted with the ingredients you input into it

fluid cave
#

If that works for you, great.
You'll eventually realise it's not generic enough. You don't want to set the conditions for ingredients for every single item you want to craft.

amber badge
#

Right, I am just trying to figure out the theory now and make it practical later