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

problem with peripheral.wrap getting function in response

Started by kain184, 02 July 2014 - 06:33 PM
kain184 #1
Posted 02 July 2014 - 08:33 PM
hello all i am tryong to connect two objects via the peripheral and no mater what method i do it in i always get stuck at a function in the output instead of a table that should give me the functions to use.
i always start with something along the lines of

local reactor=peripheral.wrap("back")
for _, v in pairs( peripheral.getMethods( "right" )) do
  print( v )
end  -- this gets me the methods of the device i want and chose according ly
reactor.isActive()-- comes back with table expected recieved function
this is the case for the big reactors connected to the computercraft advanced computer on the back side using the computer port. i have tried it with the modum and the network cable but got the same error after i got the info from the remote function does anyone know why this would be happening
Bomb Bloke #2
Posted 03 July 2014 - 02:10 AM
Is that the full error? Does it specifically mention line 5 of your script?

Any reason you wrap one peripheral, but print methods of another?
kain184 #3
Posted 18 July 2014 - 03:43 AM
any mods can close this thread
theoriginalbit #4
Posted 18 July 2014 - 03:45 AM
we don't close Ask a Pro threads. incase you or someone else has followup questions.
kain184 #5
Posted 18 July 2014 - 03:48 AM
alright thank you and have a good night.