Posted 21 July 2012 - 06:13 PM
I have been trying to set up a train system with CC, but have yet been unable to set up any successful repeaters, since the redstone current only goes so far with the Bundled Cable. I have tried setting up computers at set intervals to receive the incoming Bundled Cable input, and then if on or off, repeat that signal on the other side. So far, I can't do that. As far as I know, the variables I'm setting are not returning a "true/false" statement when executing my original function. I'm really new to programming, so I need to know why they are not repeating.
Code here:
Code here:
function setOutput(side,col,vif)
if vif == true then
rs.setBundledOutput(side,col)
sleep(1)
if vif == false then
rs.setBundledOutput(side,colors.white)
sleep(1)
end
b =(colors.test (redstone.getBundledInput("right"), colors.orange))
c =(colors.test (redstone.getBundledInput("right"), colors.magenta))
d =(colors.test (redstone.getBundledInput("right"), colors.lightBlue))
e =(colors.test (redstone.getBundledInput("right"), colors.yellow))
f =(colors.test (redstone.getBundledInput("right"), colors.lime))
g =(colors.test (redstone.getBundledInput("right"), colors.pink))
h =(colors.test (redstone.getBundledInput("right"), colors.gray))
i =(colors.test (redstone.getBundledInput("right"), colors.lightGray))
j =(colors.test (redstone.getBundledInput("right"), colors.cyan))
k =(colors.test (redstone.getBundledInput("right"), colors.purple))
l =(colors.test (redstone.getBundledInput("right"), colors.blue))
m =(colors.test (redstone.getBundledInput("right"), colors.brown))
n =(colors.test (redstone.getBundledInput("right"), colors.green))
o =(colors.test (redstone.getBundledInput("right"), colors.red))
p =(colors.test (redstone.getBundledInput("right"), colors.black))
z =(rs.testBundledInput("right",red))
setOutput("left",colors.orange,:)/>/>
setOutput("left",colors.magenta,c)
setOutput("left",colors.lightBlue,d)
setOutput("left",colors.yellow,e)
setOutput("left",colors.lime,f)
setOutput("left",colors.pink,g)
setOutput("left",colors.gray,h)
setOutput("left",colors.lightGray,i)
setOutput("left",colors.cyan,j)
setOutput("left",colors.purple,k)
setOutput("left",colors.blue,l)
setOutput("left",colors.brown,m)
setOutput("left",colors.green,n )
setOutput("left",colors.red,o)
setOutput("left",colors.black,p)
end
end