Page 1 of 1

reactor heat pipe APU

Posted: Thu Apr 27, 2017 2:14 am
by pclance
i cant find any way to work with the heat of a heat_buffer so
i need it before i make my own rewrite for the reactor mod

Re: reactor heat pipe APU

Posted: Thu Apr 27, 2017 8:31 pm
by Illysune
+1

Re: reactor heat pipe APU

Posted: Sat Apr 29, 2017 11:13 am
by Optera
+1
LuaEntity.temperature field should be identical for reactors, heat pipes, heat exchangers.

Re: reactor heat pipe APU

Posted: Sat Apr 29, 2017 8:17 pm
by pclance
function update_reactor(index)
local reactor = global.reactors[index]
reactor.signals.parameters["caset"].count = round(reactor.entity.energy)
if reactor.temperature == nil then
reactor.signals.parameters["core"].count = 0
else
reactor.signals.parameters["core"].count = round(reactor.temperature)
end
reactor.control.parameters = reactor.signals

end

i am getting a nil value i am going to try some other things but still having truble

Re: reactor heat pipe APU

Posted: Sat Apr 29, 2017 8:19 pm
by Optera
LuaEntity.temperature was my suggestion for the property to access temperature it doesn't exist (yet).