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

[OpenPeripheral] Simplest program with peripheral.wrap fails

Started by Jobus, 11 August 2013 - 09:40 AM
Jobus #1
Posted 11 August 2013 - 11: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:



What am I doing wrong here?
Bubba #2
Posted 11 August 2013 - 11:43 AM
Split into new topic.

It looks to me like OpenPeripheral is not installed correctly here. What version of OpenP are you using?
Jobus #3
Posted 11 August 2013 - 11:49 AM
OpenPeripheral-0.2.1-preview8.

I do have the OpenPeripheral tab in Creative Mode with all the strange items.
Bubba #4
Posted 11 August 2013 - 12:28 PM
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"))
Mikeemoo #5
Posted 14 August 2013 - 09: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.