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?
2
[OpenPeripheral] Simplest program with peripheral.wrap fails
Started by Jobus, Aug 11 2013 10:40 AM
4 replies to this topic
#1
Posted 11 August 2013 - 10:40 AM
#2
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?
It looks to me like OpenPeripheral is not installed correctly here. What version of OpenP are you using?
#3
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.
I do have the OpenPeripheral tab in Creative Mode with all the strange items.
#4
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
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:
which will show you all the methods available on the chest. I think getSizeInventory has been renamed to getInventorySize or similar.
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