Click to watch it working
Pros:
- Minimalistic (fits within the reach on one substation)
- Cheap (2 roboports, 4 assemblers, 4 selector & 14 decider combinators)
- Fast (all ingredients are already loaded to chests)
- Smart (respects intermediates)
- Limited by a set set of recipes
- Requires logistical network
Will work in vanilla.
Should work in any other overhaul with minor adjustments.
Usage
- Deploy
- (Optional) Use higher-tier inserters & assemblers, modules, quality, etc.
- Enable by activating the Master Control Switch
What can it craft?
The mini-mall will craft the following items, until both all requests of that item are satisfied and the listed quantities of that item are reached.- 250 of each circuit network item (except speaker) and rail signals
- 150 of each logistical chest
- 25 of each wagon (except artillery)
- 150 of each inserter (except stacking)
How it works?
- It pulls data from the network, removing items that are not satisfied.
- Then, it uses periodic memory snapshot cel to store that data for 2 seconds (configurable) to prevent recipe flickering
- Then, for each group, the system selects the least-available item, and tries to craft it
- Within each group, items that are prerequisites for other items in the group (i.e., yellow inserter) are crafted first
- Requester chests near assemblers are set to request fixed items, no dynamic logic there is present
- Master Control Switch can disable the setup, preventing any crafts. This is the default behaviour for the mini-mall.
- Lamp == green: The mini-mall is correctly connected to the network; it is ready to craft
- Lamp == red: Either Master Control Switch is turned off, or there's error in connecting to the network.
Groups can be adjusted on the constant combinator of that group:
- Combined value of 0 will disable crafting of item
- Higher combined value will signal this item requires any lower-value item as prerequisites.
- Negative combined value is undefined behaviour