3 posts
Posted 08 October 2015 - 03:03 PM
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)
2679 posts
Location
You will never find me, muhahahahahaha
Posted 08 October 2015 - 06:32 PM
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?
3057 posts
Location
United States of America
Posted 08 October 2015 - 06:47 PM
Are you sure BigReactors-Reactor_0 is written like this and not BigReactorsReactor_0?
I am. If he didn't wrap anything, he'd get an 'attempt to index ? (a nil value)'
2679 posts
Location
You will never find me, muhahahahahaha
Posted 08 October 2015 - 06:54 PM
So the first statement should be true.
3057 posts
Location
United States of America
Posted 08 October 2015 - 07:46 PM
Yes.
209 posts
Location
Denmark
Posted 08 October 2015 - 07:57 PM
.getHotFluidProducedLastTick()
- that requires you to have a fluid intake and output (used to power a turbine usually) do you have this??
Edited on 08 October 2015 - 06:00 PM
2679 posts
Location
You will never find me, muhahahahahaha
Posted 08 October 2015 - 09:38 PM
Why would the existence of a function depend on whether or not there is fluid?
212 posts
Location
Somewhere in this dimension... I think.
Posted 08 October 2015 - 09:49 PM
Creator he means a Fluid Intake block. The reactor is modular.
Edited on 08 October 2015 - 08:30 PM
2679 posts
Location
You will never find me, muhahahahahaha
Posted 08 October 2015 - 10:11 PM
OK, I see.
7083 posts
Location
Tasmania (AU)
Posted 08 October 2015 - 10:58 PM
209 posts
Location
Denmark
Posted 08 October 2015 - 11:24 PM
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 :D/>
think i have 40-45 of these on my pastebin :D/>
most problems with this kind of program lies in compability between mods :)/>
3 posts
Posted 19 October 2015 - 02:12 PM
3 posts
Posted 20 October 2015 - 03:39 PM
Thanks you all for advice but I solve it.I try change function to getEnergyProducedLastTick and that worked
212 posts
Location
Somewhere in this dimension... I think.
Posted 20 October 2015 - 08:22 PM
Likely means HotFluid didn't exist for your version.