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
reactor heat pipe APU
Re: reactor heat pipe APU
+1
LuaEntity.temperature field should be identical for reactors, heat pipes, heat exchangers.
LuaEntity.temperature field should be identical for reactors, heat pipes, heat exchangers.
My Mods: mods.factorio.com
Re: reactor heat pipe APU
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
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
LuaEntity.temperature was my suggestion for the property to access temperature it doesn't exist (yet).
My Mods: mods.factorio.com