Posted 20 June 2012 - 03:34 AM
What the heck? If I try to use one of the color constants, it always throws an
I was trying to check if a certain output cable in a bundle was on like this:
but it throws that friggen error instead of doing what its supposed to do…
So I tried a test line like this:
These lines both throw that same error.
It seems to just absolutely hate the color constants…
I am pretty new to ComputerCraft. I am simply trying to make a little test program that shows me the state of all of the output channels in the redpower bundle that is connected to the computer. The program is pretty much complete except for this stupid problem that makes no sense!
"attempt to index ? (a number value)".
I was trying to check if a certain output cable in a bundle was on like this:
bundleState = redstone.getBundledOutput("bottom")
if colors.test(bundleState, colors.white) == true then
but it throws that friggen error instead of doing what its supposed to do…
So I tried a test line like this:
print("RED: " .. colors.red)
These lines both throw that same error.
It seems to just absolutely hate the color constants…
I am pretty new to ComputerCraft. I am simply trying to make a little test program that shows me the state of all of the output channels in the redpower bundle that is connected to the computer. The program is pretty much complete except for this stupid problem that makes no sense!