Posted 11 September 2015 - 11:04 PM
Got tired of running out of items in my AE2 system and didn't like the options for maintaining a minimum stock level for certain items. The approach I had been using required a level emitter, ME export bus, crafting card to auto-craft the item and a way to import the item back into the system. This requires a minimum of 2 channels (3 if you count the import bus to get items back into the system, but I had been sharing one import bus connected via tesseract or ender chest) per item you want to keep stocked. This program replaces all of that with a single computer and a full-size ME Interface, using a single channel.
Stocker description:
Pastebin links:
Stocker program - http://pastebin.com/yac8keDW
Config file - http://pastebin.com/5eZABmj6
I suppose it's possible to use this to continually craft any item you want by setting the minQuantity value to something very high, then every time stock is checked it will attempt to craft it. If there aren't enough mats it just fails silently. Might be a good way to auto-craft your basics like converting ore to ingots continually.
Currently the app does require you use string identifiers instead of numeric IDs, but you can get those by hitting F3+h to turn on display of those IDs. You might have to open F3 first and play around with hitting that key combo until it's enabled.
Stocker description:
-- ** Minecraft AE2 Auto-Stocker by RandomBlue (E.J. Wilburn)
-- ** ----------------------------------------------------
-- **
-- ** This program automatically crafts items necessary to maintain a minimum
-- ** stock level of specific items. The items are configured in a file on
-- ** a computercraft computer named stock_list.txt in the stocker directory.
-- ** Examine that file for example formatting and details.
-- **
-- ** Minimum stock levels and crafting batch sizes are configurable per item.
-- **
-- ** The computer must be placed adjacent to a full block ME Interface attached
-- ** to an ME Network where both the items are stored and the crafting CPUs are
-- ** located. Each item you wish to maintain a stock level for must have
-- ** autocrafting enabled for it.
-- **
-- ** Arguments
-- ** ----------------------------------------------------
-- ** checkFrequency (optional) - How often inventory levels are checked in seconds.
-- ** attachSide (optional) - Side the computer is attached to the ME Interface (full block version).
-- ** stockFileName (optional) - Full path to the file containing stocking requirements.
Pastebin links:
Stocker program - http://pastebin.com/yac8keDW
Config file - http://pastebin.com/5eZABmj6
I suppose it's possible to use this to continually craft any item you want by setting the minQuantity value to something very high, then every time stock is checked it will attempt to craft it. If there aren't enough mats it just fails silently. Might be a good way to auto-craft your basics like converting ore to ingots continually.
Currently the app does require you use string identifiers instead of numeric IDs, but you can get those by hitting F3+h to turn on display of those IDs. You might have to open F3 first and play around with hitting that key combo until it's enabled.