Posted 03 May 2012 - 06:20 PM
as the title says, i have a program that i am using to monitor the status of an IC2 reactor and it's cooling system and display it on a monitor (control is done either manually or via my friends program once he completes it) i have it almost working but it's not changing the status on the monitor
any help would be much appreciated, (pastebin link is http://pastebin.com/cTUScmsH)
mon = peripheral.wrap("right")
cool = redstone.testBundledInput("back", 1)
power = redstone.testBundledInput("back", 2)
mon.setTextScale(2)
term.redirect(mon)
term.clear()
term.setCursorPos(1,1)
function cool()
if cool == true then
print("Cooling Active")
--end
if cool == false then
print("COOLING IS NOT ON!")
end
end
function power()
if power == true then
print("Reactor Off")
--end
if power == false then
print("Reactor On")
end
end
cool()
power()
textutils.slowPrint(".....")
os.sleep(5)
shell.run("reactor") -- re-runs the program
any help would be much appreciated, (pastebin link is http://pastebin.com/cTUScmsH)