This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
McLeopold's profile picture

Crafting with OpenPeripherals

Started by McLeopold, 02 April 2014 - 08:57 PM
McLeopold #1
Posted 02 April 2014 - 10:57 PM
Installation

Download the installer first with:

pastebin get V8ZhpNZi opencraft-install
Then run the installer with:

opencraft-install
You can now run the program with:

opencraft

github: https://github.com/Forte40/opencraft

Crafting with OpenPeripherals



Automatic crafting and storage using OpenPeripherals 0.3.1. Setup like the picture. Craft a narcissistic crafty turtle and place chests on top, bottom, front and back. Upgrade chests as desired. (Only one chest is needed, but four gives you more storage.) (NOTE: The program needs to be modified so it knows which way the turtle is facing. Read the config spoiler.)

SpoilerAt the top of the program you will see this: This has been moved to a configuration file so that updating does not override the setup.

local sideToDir = {
  ["top"] = "down",
  ["bottom"] = "up",
  ["front"] = "west",
  ["back"] = "east"
}
Stand in front of your turtle and look at it. Note the direction you are facing. Change the "front" entry in the table to be this direction. Change the "back" entry to be the opposite direction. If I look at the turtle's front and I'm facing south, then the code should be:

local sideToDir = {
  ["top"] = "down",
  ["bottom"] = "up",
  ["front"] = "south",
  ["back"] = "north"
}

Features:
  • Inventory Management - place stuff in turtle and use [F5] to unload into correct chests.
  • Cascaded Crafting - turtle will craft all components needed for request and notify of missing materials.
  • Sorting - search results can be sorted by amounts, name, id and stack size. Use stack size ascending to find all your weapons and tools.
  • AE Integration - can use an ME network if next to a cable or other ME block (that does not have an inventory like the drive or interface). Cable is recommended.
Screen Shots:
SpoilerSetting up a recipe

Result of teaching a recipe

Previous version using MiscPeripherals.
Craft - Auto Crafting And Inventory Management (Ae Knockoff)
Edited on 29 April 2014 - 07:17 AM
apemanzilla #2
Posted 03 April 2014 - 06:00 AM
I see you're having a blast with Open Peripheral lately :P/>
McLeopold #3
Posted 03 April 2014 - 08:45 PM
I see you're having a blast with Open Peripheral lately :P/>/>

Yes I am. :)/> I'm surprised at how popular my bee program is and how unpopular a crafting program is. I guess people like "grinding" IC2 recipes ad nauseam in a new world.
Lyqyd #4
Posted 04 April 2014 - 02:32 AM
There are better (or at least other) solutions for auto-crafting in many packs. Applied Energistics and LogisticPipes are pretty popular autocrafting systems, whereas there are few other bee breeding automation tools of any significant complexity.
apemanzilla #5
Posted 04 April 2014 - 01:08 PM
There are better (or at least other) solutions for auto-crafting in many packs. Applied Energistics and LogisticPipes are pretty popular autocrafting systems, whereas there are few other bee breeding automation tools of any significant complexity.
This system, however uses no power and can be used where AE/LP is not present. I had thought of something like this a while ago, but this is much better than anything I could've done :)/>
McLeopold #6
Posted 04 April 2014 - 04:38 PM
There are better (or at least other) solutions for auto-crafting in many packs. Applied Energistics and LogisticPipes are pretty popular autocrafting systems, whereas there are few other bee breeding automation tools of any significant complexity.
This system, however uses no power and can be used where AE/LP is not present. I had thought of something like this a while ago, but this is much better than anything I could've done :)/>
Yes, this is meant for early game crafting. The most expensive thing is 1 slimeball. Once you can afford AE, it is much better because you can automate machines and shift-click recipies.
The only thing this has over AE is you can pastebin your recipe file and share it with others, so it is possible to setup a file for a mod pack and not have to teach it anything.
apemanzilla #7
Posted 04 April 2014 - 04:49 PM
There are better (or at least other) solutions for auto-crafting in many packs. Applied Energistics and LogisticPipes are pretty popular autocrafting systems, whereas there are few other bee breeding automation tools of any significant complexity.
This system, however uses no power and can be used where AE/LP is not present. I had thought of something like this a while ago, but this is much better than anything I could've done :)/>/>
Yes, this is meant for early game crafting. The most expensive thing is 1 slimeball. Once you can afford AE, it is much better because you can automate machines and shift-click recipies.
The only thing this has over AE is you can pastebin your recipe file and share it with others, so it is possible to setup a file for a mod pack and not have to teach it anything.
And it's free (power wise), and you don't need to waste resources on lots of patterns, and some other stuff… :P/>

Still waiting for Open Peripheral for 1.6 to come out D:
apemanzilla #8
Posted 05 April 2014 - 02:22 AM
Really like this, but it seems to only be able to pull items from the bottom chest…
Edit: Nvm, had configured the directions incorrectly.

Edit 2: Bug: If you try to pull an item when there are no selections, it crashes. Hard to see the error with the terminal redirection.
Edited on 05 April 2014 - 03:52 AM
McLeopold #9
Posted 05 April 2014 - 11:11 PM
Really like this, but it seems to only be able to pull items from the bottom chest…
Edit: Nvm, had configured the directions incorrectly.

Edit 2: Bug: If you try to pull an item when there are no selections, it crashes. Hard to see the error with the terminal redirection.
I'm not sure what you mean be "no selections". Wrap it in a pcall and see if you can get the error. I also know there is a bug where you try to craft something with an item already in a slot. I can't remember if I cleared the turtle for that or not.

EDIT: I think I got the error.
Edited on 05 April 2014 - 09:15 PM
apemanzilla #10
Posted 06 April 2014 - 08:44 AM
Really like this, but it seems to only be able to pull items from the bottom chest…
Edit: Nvm, had configured the directions incorrectly.

Edit 2: Bug: If you try to pull an item when there are no selections, it crashes. Hard to see the error with the terminal redirection.
I'm not sure what you mean be "no selections". Wrap it in a pcall and see if you can get the error. I also know there is a bug where you try to craft something with an item already in a slot. I can't remember if I cleared the turtle for that or not.

EDIT: I think I got the error.
If, say, you search "mdshkfsnhfh" and nothing comes up, then press enter.
McLeopold #11
Posted 29 April 2014 - 09:14 AM
Opencraft is being used quite successfully on Cranium's new server. It's been updated to be able to use AE storage as well as rename items. There have been some bug fixes too.