Posted 13 October 2012 - 09:04 AM
I have looked around and found this generally means there is something named incorrectly, but i cant seem to work it out. One minute it was working the next not. i went and used the same code when it was working but still gave the same error.
-- Coded by PoisonMondo & Help from community
-- Reactor control: Turn on Reactor
rout = colors.subtract(rout,colors.red)
rs.setBundledOutput("back",rout)
-- Make sure input is intialised
rin=rs.getBundledInput("bottom")
mon = peripheral.wrap('top')
mon.setTextScale(1)
i = 1
repeat
mon.clear()
mon.setCursorPos(3,1)
mon.write("========POISONSYS REACTOR=========")
mon.setCursorPos(3,2)
mon.write("=======CONTROL SYSTEM V1.0========")
if rs.testBundledInput("bottom", colors.red) then
mon.setCursorPos(1,4)
mon.write("Reactor is : OFFLINE")
else
mon.setCursorPos(1,4)
mon.write("Reactor is : ONLINE")
end
if rs.testBundledInput("bottom", colors.black) then
mon.setCursorPos(1,6)
mon.write("Wtr_cooling is : ONLINE")
else
mon.setCursorPos(1,6)
mon.write("Wtr_cooling is : OFFLINE")
end
if rs.testBundledInput("bottom", colors.green) then
mon.setCursorPos(1,8)
mon.write("Ice_cooling is : ONLINE")
else
mon.setCursorPos(1,8)
mon.write("Ice_cooling is : OFFLINE")
end
if rs.testBundledInput("bottom", colors.orange) then
mon.setCursorPos(1,10)
mon.write("Reactor Meltdown: True")
rout = colors.combine(rout,colors.red)
rs.setBundledOutput("back",rout)
else
mon.setCursorPos(1,10)
mon.write("Reactor Meltdown: False")
rout = colors.subtract(rout,colors.red)
rs.setBundledOutput("back",rout)
end
i = i + 1
sleep(3)
until i > 13243