test.lua: 6: attemp to call nil
Machallovnik 08 Oct 2015
Please help me
I use CC for monitoring Reactor
local mon = peripheral.wrap("monitor_1")
local reactor = peripheral.wrap("BigReactors-Reactor_0")
mon.clear()
mon.setCursorPos(1,1)
mon.setTextScale(2)
local Steam = reactor.getHotFluidProducedLastTick()
mon.write(Steam)
I use CC for monitoring Reactor
local mon = peripheral.wrap("monitor_1")
local reactor = peripheral.wrap("BigReactors-Reactor_0")
mon.clear()
mon.setCursorPos(1,1)
mon.setTextScale(2)
local Steam = reactor.getHotFluidProducedLastTick()
mon.write(Steam)
Creator 08 Oct 2015
This means that the function getHotFluidProducedLastTick() does not exist in reactor.
Are you sure BigReactors-Reactor_0 is written like this and not BigReactorsReactor_0?
Are you sure BigReactors-Reactor_0 is written like this and not BigReactorsReactor_0?
KingofGamesYami 08 Oct 2015
Dustmuz 08 Oct 2015
.getHotFluidProducedLastTick()
- that requires you to have a fluid intake and output (used to power a turbine usually) do you have this??
Edited by Dustmuz, 08 October 2015 - 07:00 PM.
- that requires you to have a fluid intake and output (used to power a turbine usually) do you have this??
Edited by Dustmuz, 08 October 2015 - 07:00 PM.
Creator 08 Oct 2015
Why would the existence of a function depend on whether or not there is fluid?
TYKUHN2 08 Oct 2015
Creator he means a Fluid Intake block. The reactor is modular.
Edited by TYKUHN2, 08 October 2015 - 09:30 PM.
Edited by TYKUHN2, 08 October 2015 - 09:30 PM.
Bomb Bloke 08 Oct 2015
Dustmuz 08 Oct 2015
OP: if you can, could you suply us with a picture of your setup.
i've written multiple of these power management programs, as i use them to become better at lua, so each world i create, i start from scratch
think i have 40-45 of these on my pastebin
most problems with this kind of program lies in compability between mods
i've written multiple of these power management programs, as i use them to become better at lua, so each world i create, i start from scratch
think i have 40-45 of these on my pastebin
most problems with this kind of program lies in compability between mods
Machallovnik 20 Oct 2015
Thanks you all for advice but I solve it.I try change function to getEnergyProducedLastTick and that worked