Posted 18 September 2014 - 03:32 PM
hey again fellow Crafters :)/>
i have fiddled around with some of all the coding there is for a computer on its own and monitors.. and gotten the hang if it, to my standart :P/> hehe
now im trying to learn how to use modems..
but i cant find a tutorial (might just be me that havent searched proberly)
but ive gotten as far as opening the modem, and transmit a message from A to B..
the next thing im trying to do, is "look" inside a chest with the openperipheraladdon "peripheral proxy"
my setup is as follows..
computer in the middle, monitor on the right, WIRED modem on the left, with 2 cables, then another modem, the proxy with arrows "into" a vanilla chest.
i can get the .getInventorySize() to work, it comes up with 27 as it should.
what i wanted to try was to use the .getMethods() on the chest, but that just comes up with "test:16:attempt to call nil"
My code so far
local monitor = peripheral.wrap("right")
local modem = peripheral.wrap("left")
modem.open(1)
monitor.clear()
monitor.setCursorPos(1,1)
–prefix for the chest
local chest1 = peripheral.wrap('container_chest_1')
chest1s = chest1.getInventorySize()
monitor.write("size: "..chest1s)
ch1m = chest1.getMethods()
print(ch1m)
i have tried
.getMethods() / .getMethodsRemote()
.getMethods(chest1) / .getMethodsRemote(chest1)
.getMethods("chest1") / .getMethodsRemote("chest1")
.getMethods(container_chest_1) / .getMethodsRemote(container_chest_1)
.getMethods("container_chest_1") / .getMethodsRemote("container_chest_1")
.getMethods('container_chest_1') / .getMethodsRemote('container_chest_1')
all comes up with the same "error"
if someone have a tutorial for Modems, i would appriciate a link to it, as the wiki, just makes me more confused that good is :D/> hehe
Have a nice day, and be good :)/>
i have fiddled around with some of all the coding there is for a computer on its own and monitors.. and gotten the hang if it, to my standart :P/> hehe
now im trying to learn how to use modems..
but i cant find a tutorial (might just be me that havent searched proberly)
but ive gotten as far as opening the modem, and transmit a message from A to B..
the next thing im trying to do, is "look" inside a chest with the openperipheraladdon "peripheral proxy"
my setup is as follows..
computer in the middle, monitor on the right, WIRED modem on the left, with 2 cables, then another modem, the proxy with arrows "into" a vanilla chest.
i can get the .getInventorySize() to work, it comes up with 27 as it should.
what i wanted to try was to use the .getMethods() on the chest, but that just comes up with "test:16:attempt to call nil"
My code so far
Spoiler
– wraps modem and monitorlocal monitor = peripheral.wrap("right")
local modem = peripheral.wrap("left")
modem.open(1)
monitor.clear()
monitor.setCursorPos(1,1)
–prefix for the chest
local chest1 = peripheral.wrap('container_chest_1')
chest1s = chest1.getInventorySize()
monitor.write("size: "..chest1s)
ch1m = chest1.getMethods()
print(ch1m)
i have tried
.getMethods() / .getMethodsRemote()
.getMethods(chest1) / .getMethodsRemote(chest1)
.getMethods("chest1") / .getMethodsRemote("chest1")
.getMethods(container_chest_1) / .getMethodsRemote(container_chest_1)
.getMethods("container_chest_1") / .getMethodsRemote("container_chest_1")
.getMethods('container_chest_1') / .getMethodsRemote('container_chest_1')
all comes up with the same "error"
if someone have a tutorial for Modems, i would appriciate a link to it, as the wiki, just makes me more confused that good is :D/> hehe
Have a nice day, and be good :)/>