Posted 09 September 2016 - 05:04 PM
I have a reactor from BigReactors connected via computer port to a computer in order to have an automatic control system.
I also have a monitor connected (via network cable) to the computer in order to get some real-time info of the reactor status.
However, the getEnergyProducedLastTick argument seems to not work correctly, as it doesn't output any number.
This is what i mean:
Here's the part of the code responsible for that part:
And here's the code responsible for the whole screen:
Can someone help me?
I also have a monitor connected (via network cable) to the computer in order to get some real-time info of the reactor status.
However, the getEnergyProducedLastTick argument seems to not work correctly, as it doesn't output any number.
This is what i mean:
Here's the part of the code responsible for that part:
monitor.write("Energy produced: ")
monitor.write(reactor.getEnergyProducedLastTick)
monitor.write(" RF/t")
And here's the code responsible for the whole screen:
Spoiler
monitor.setCursorPos(1,1)
monitor.clear()
if reactor.getActive() == true then
monitor.write("Reactor is ON")
else
monitor.write("Reactor is OFF")
end
monitor.setCursorPos(1,2)
fuel_perc = (reactor.getFuelAmount() / 320)
monitor.write("Fuel amount: ")
monitor.write(fuel_perc)
monitor.write("%")
monitor.setCursorPos(1,3)
monitor.write("Fuel temperature: ")
monitor.write(reactor.getFuelTemperature())
monitor.write(" C")
monitor.setCursorPos(1,4)
monitor.write("Energy buffer: ")
monitor.write(reactor.getEnergyStored())
monitor.write("RF")
monitor.setCursorPos(1,5)
monitor.write("Energy produced: ")
monitor.write(reactor.getEnergyProducedLastTick)
monitor.write(" RF/t")
Can someone help me?
Edited on 09 September 2016 - 04:51 PM