Posted 27 January 2017 - 02:17 PM
it just says
starttup:4: attempt to index ? (a nil value)
this is my code
starttup:4: attempt to index ? (a nil value)
this is my code
while true do
local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
local mon = peripheral.wrap("monitor_1")
mon.clear()
-- Begin Reactor 1
--mon.setCursorPos(1,1)
--mon.setTextColor(colors.white)
--mon.write("Reactor #: ")
--mon.setTextColor(colors.lime)
--mon.write("1")
mon.setCursorPos(1,2)
mon.setTextColor(colors.white)
mon.write("Active: ")
mon.setTextColor(colors.lime)
mon.write(reactor1.getActive())
mon.setCursorPos(1,3)
mon.setTextColor(colors.white)
mon.write("RF/T: ")
mon.setTextColor(colors.lime)
mon.write(math.floor(reactor1.getEnergyProducedLastTick()))
mon.setCursorPos(1,4)
mon.setTextColor(colors.white)
mon.write("RF Stored: ")
mon.setTextColor(colors.lime)
mon.write(math.floor(reactor1.getEnergyStored()))
mon.setCursorPos(1,5)
mon.setTextColor(colors.white)
mon.write("Casing Heat: ")
mon.setTextColor(colors.lime)
mon.write(math.floor(reactor1.getCasingTemperature()))
mon.setCursorPos(1,6)
mon.setTextColor(colors.white)
mon.write("Fuel Heat: ")
mon.setTextColor(colors.lime)
mon.write(math.floor(reactor1.getFuelTemperature()))
-- End Reactor 1
sleep(5)
end
Edited by