reactor heat pipe APU

pclance
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 25, 2017 9:48 am
Contact:

reactor heat pipe APU

Post 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
Illysune
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Apr 26, 2017 8:27 am
Contact:

Re: reactor heat pipe APU

Post by Illysune »

+1
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: reactor heat pipe APU

Post by Optera »

+1
LuaEntity.temperature field should be identical for reactors, heat pipes, heat exchangers.
pclance
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 25, 2017 9:48 am
Contact:

Re: reactor heat pipe APU

Post 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
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: reactor heat pipe APU

Post by Optera »

LuaEntity.temperature was my suggestion for the property to access temperature it doesn't exist (yet).
Post Reply

Return to “Implemented mod requests”