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

Problem trying to push items

Started by Crizzly23, 09 April 2016 - 07:17 PM
Crizzly23 #1
Posted 09 April 2016 - 09:17 PM
I am making a program to control a portal and I am getting the error "portalControl:8: attempt to index ? (a nil value)"

Here is the code:

http://pastebin.com/4XcmnBga

Any help is appreciated
Sewbacca #2
Posted 10 April 2016 - 12:20 AM
Put a print on the beginning:
print(textutils)
To test, if textutils is declared.
Sewbacca #3
Posted 10 April 2016 - 12:28 AM
Line 8 or 7?
If 7, then check that peripheral.wrap returns a table.
Bomb Bloke #4
Posted 10 April 2016 - 02:14 AM
Line 8 or 7?
If 7, then check that peripheral.wrap returns a table.

That is to say, likely "chest_0" isn't available to wrap.
Crizzly23 #5
Posted 10 April 2016 - 02:20 AM
Line 8 or 7?
If 7, then check that peripheral.wrap returns a table.

That is to say, likely "chest_0" isn't available to wrap.

I feel like an idiot. When I wrote the program I completely forgot the chest is "chest_3" instead of "chest_0". Thanks a lot.