Posted 25 March 2012 - 07:43 AM
The question is simply: "Are there bugs with redstone wire and Computercraft in SMP?"
More specifically, I setup, what I thought, was a simple computer->redstone wiring->sticky piston to make a "dam" of sorts to stop/start water from flowing. If I go to the lua interface and manually input code such as redstone.setOutput("back", true) or redstone.setOutput("back", false) the redstone wiring powers on and off as expected. However, if I run my program (code provided below) when it is supposed to power on the redstone, the piston activates as intended, however the redstone never "turns on." As in, the redstone doesn't ever glow to indicate it is active, etc. After this happens, not even commands from the lua interpreter will affect the piston activating. I have to destroy it and place it again to get it to respond.
More specifically, I setup, what I thought, was a simple computer->redstone wiring->sticky piston to make a "dam" of sorts to stop/start water from flowing. If I go to the lua interface and manually input code such as redstone.setOutput("back", true) or redstone.setOutput("back", false) the redstone wiring powers on and off as expected. However, if I run my program (code provided below) when it is supposed to power on the redstone, the piston activates as intended, however the redstone never "turns on." As in, the redstone doesn't ever glow to indicate it is active, etc. After this happens, not even commands from the lua interpreter will affect the piston activating. I have to destroy it and place it again to get it to respond.
term.clear()
term.setCursorPos(1,1)
password = "water"
if redstone.getInput("back") == false then
print ("Deactivate Watering System? y/n")
x = io.read()
if x == "y" then
print("Please input authorization passcode:")
y = io.read()
if y == password then
print ("Watering System Shutting Down...")
sleep(5)
redstone.setOutput("back", true)
os.shutdown()
else
print ("Incorrect Password.")
sleep(3)
os.shutdown()
end
else
print("Canceled.")
sleep(3)
os.shutdown()
end
else
print ("Activate Watering System? y/n")
a = io.read()
if a == "y" then
print ("Please input authorization passcode:")
b = io.read()
if b == password then
print ("Activating Watering System...")
sleep (5)
redstone.setOutput("back", false)
os.shutdown()
end
else
print("Cancelled.")
sleep(3)
os.shutdown()
end
end