Hey guys Im trying to make a system that can control like EVERYthing in my base and I was trying to use the setColor function to change Glowstone Illuminators, and it will work when the computer is next to the block, but I cannot figure out how to send the command through the wired modems/cables I have set up and working with other things.
I have tried this so far:
net=peripheral.wrap("back")
methods=net.callRemote("glowstone_illuminator_0","listMethods")
print(methods)
net.callRemote("glowstone_illuminator_0","setColor","0xFF0000")
This last line of code I do not know if it is right or even if it is the right way to go around doing this. It returns an "argument type mismatch" error, so please correct my error if you can. I really hope this can be done. Any help I can get would be fantastic.
(p.s:Yes the modems are turned on)
Edit: Nevermind guys, i spent the past 2 hours or so reading through the rest of the thread, where i found this:
thestarlion, on 18 June 2013 - 08:17 AM, said:
I'm having a bit of a problem with peripherals on a networking cable, and specifically an SGCraft Stargate.
I think I've connected the modem to the right block - the Stargate Base block and not the DHD block - and I think I've wrapped it correctly. The code I'm using in the script goes like this:
local modem = peripheral.wrap("top")
local stargate = peripheral.wrap("stargate_base_2")
Which if I've understood lua, CC and such thus far, should give me access to the functions for the Stargate.
From there, attempting to run the command stargate.getHomeAddress() in a subsequent script returns absolutely nothing, where if I understand OpenPeripheral correctly it's supposed to return the connected Stargate's address, and when I try to make the Stargate dial another gate, I get this:
dial-out:3:
sun.org.mozilla.javascript.EvaluatorException: Can't find method openperipheral.common.util.ReflectionWrapper.call(boolean,string). (<Unknown source>#13 in <Unknown source> at line number 13
I thought MiscPeripherals might be the issue after seeing something similar a few posts up, but removing it hasn't made any difference.
What exactly am I doing wrong here?
And thanks to this I found my problem lol sorry for wasting your time guys