Jump to content




[OpenPeripheral] Simplest program with peripheral.wrap fails


4 replies to this topic

#1 Jobus

  • New Members
  • 2 posts

Posted 11 August 2013 - 10:40 AM

Title: [OpenPeripheral] Simplest program with peripheral.wrap fails

Hi, so I just started out with ComputerCraft, and saw that I needed OpenPeripheral to be able to retrieve data from BuildCraft blocks.

But even when I make something simple like this, looking at OpenPeripheral's documents, it fails:

Posted Image

What am I doing wrong here?

#2 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

Posted 11 August 2013 - 10:43 AM

Split into new topic.

It looks to me like OpenPeripheral is not installed correctly here. What version of OpenP are you using?

#3 Jobus

  • New Members
  • 2 posts

Posted 11 August 2013 - 10:49 AM

OpenPeripheral-0.2.1-preview8.

I do have the OpenPeripheral tab in Creative Mode with all the strange items.

#4 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

Posted 11 August 2013 - 11:28 AM

Would you mind posting the result of this code with the same setup as you have above (chest on the left side of the computer)?
print(peripheral.getType("left"))


#5 Mikeemoo

  • Members
  • 732 posts
  • LocationLondon, UK

Posted 14 August 2013 - 08:01 AM

You're using the 1.6.2 version. The documentation is for the 1.5.2 version until I officially release the 1.6.2 version. A few methods have been renamed to make them more user friendly.

do:

chest.listMethods()

which will show you all the methods available on the chest. I think getSizeInventory has been renamed to getInventorySize or similar.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users