Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Guido

Can a robot assemble a new robot?

Question

Hello everyone,

I'm a new user, I do have experience with ComputerCraft / Lua / coding. So a robot can craft stuff from it's inventory, can it also operate an assembler?

(btw, is there a OpenComputers-guide-for-ComputerCrafters)

Thanks in advance,
Guido

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Seems to be almost possible! You can use the inventory controller upgrade to add items to the assembler.

AssemblerSlotLayout.png.2395593c554abb38fb90064595b1c51b.png

I figured out how the slots work, they're pretty weird.

For the life of me I cannot figure out how to automatically set the assembler going though. I feel like it should accept redstone signals but it does not.

Bear in mind that I'm using the 1.10.2 version of the mod so maybe the version you're using supports it!

Share this post


Link to post
Share on other sites
  • 0

Oh wow, great work. I've tested the other side using 1.12. I filled an assembler by hand and tried different setups to get it started. Redstone signal did nothing. Would be great if it could though. You could give an assignment to a robot, and then the robot decides it needs coworkers and makes some more robots. :-)

Share this post


Link to post
Share on other sites
  • 0
On 5/24/2020 at 5:08 AM, Fictitious Rotor said:

It's a bit strange that this component API isn't in the documentation?

ocdoc.cil.li, with a few rare exceptions, is a haphazard collection of archaic manuscripts preserved to remind us how not to do documentation. No wonder this particular method is missing its mention on the wiki.

Your best friend in exploring OC's components is the OpenOS's built-in program "components". Here's how to use it:

# print the names and addresses of all connected components:
components

# same, with scrolling if the list is too long (use the arrow keys to navigate):
components | less

# filter by name: the following lists all connected GPUs
components gpu

# list all methods and their docs:
components -l gpu | less

Another option is grepping through the OC's source code for @Callback annotations.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.