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

Open peripherals attempt to call nil [I am fairly sure my spelling's correct]

Started by abouttabs, 03 January 2014 - 04:59 PM
abouttabs #1
Posted 03 January 2014 - 05:59 PM
Hey guys I have issue with openperipheral function throwing attempt to call nil, but I am pretty sure I have the spelling right (I copied and pasted to make sure..)

It throws out: a:34: attempt to call nil

Here is the code: http://pastebin.com/ZXQT9s98

This is the setup http://imgur.com/a/S1vvt

Thank you for your time and effort

Sincerely Abouttabs
theoriginalbit #2
Posted 03 January 2014 - 08:45 PM
Running Minecraft 1.6.x? If so method names have changed.

For example pushIntoSlot has now become pushItemIntoSlot if I remember correctly.

It is possible to check all the methods for a peripheral, use textutils.tabulate(peripheral.getMethods("left")) replacing left with the peripherals side or name
abouttabs #3
Posted 04 January 2014 - 04:03 AM
ohh thanks for that.

I was just using open mods site and their documentation…

Thanks a lot

Sincerely Abouttabs
theoriginalbit #4
Posted 04 January 2014 - 09:58 PM
I was just using open mods site and their documentation…
yeh the site is still the documentation for 1.5.x, we're yet to update it to the 1.6.x branch.