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

Bundled cables

Started by PrinzJuliano, 19 June 2012 - 01:17 PM
PrinzJuliano #1
Posted 19 June 2012 - 03:17 PM
Hi
i want to know :
What's wrong with this code:

side = "left" -- edit able
local x = rs.getBundledOutput(side)
a = colors.combine(x, colors.blue)
rs.setBundledOutput(a)
HELP ME
BigSHinyToys #2
Posted 19 June 2012 - 03:22 PM
Hi
i want to know :
What's wrong with this code:

side = "left" -- edit able
local x = rs.getBundledOutput(side)
a = colors.combine(x, colors.blue)
rs.setBundledOutput(side,a) -- this needs a side
HELP ME
fixed in the above
Dirkus7 #3
Posted 19 June 2012 - 04:51 PM
Hi
i want to know :
What's wrong with this code:

side = "left" -- edit able
local x = rs.getBundledOutput(side)
a = colors.combine(x, colors.blue)
rs.setBundledOutput(side,a) -- this needs a side
HELP ME
fixed in the above
Nope, getBundledOutput? should be rs.getBundledInput(side)

side = "left" -- edit able
local x = rs.getBundledInput(side)--we want the input, not the output
a = colors.combine(x, colors.blue)
rs.setBundledOutput(side,a) -- this needs a side
BigSHinyToys #4
Posted 19 June 2012 - 05:38 PM
why would he want to do that rs.getBundledOutput is used to see witch colors you are outputting on. then he adds a new color to that and updates the output vars. This program is not for Input.

Functions in the Redstone API:
redstone.getInput( side )
redstone.setOutput( side, boolean )
redstone.getOutput( side )
redstone.getSides( )

Functions in the Redstone API for working with RedPower bundled cables:
redstone.getBundledInput( side )
redstone.testBundledInput( side, color )
redstone.setBundledOutput( side, colors )
redstone.getBundledOutput( side )

Type "help redpower" for usage examples.
PrinzJuliano #5
Posted 19 June 2012 - 08:33 PM
Thanks,
I will make a video about this l8er….
but thanks