heat_buffer v15 how to use?

Place to get help with not working mods / modding interface.
pclance
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 25, 2017 9:48 am
Contact:

heat_buffer v15 how to use?

Post by pclance »

how do i interface with the temperature of the heat_buffer on the reactors and heat pipes?


function update_reactor(index)
local reactor = global.reactors[index]
reactor.signals.parameters["caset"].count = round(reactor.entity.energy)
reactor.signals.parameters["core"].count = round(reactor.entity.burner.heat)
reactor.control.parameters = reactor.signals
end

this just returns 44k all the time.
Illysune
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Apr 26, 2017 8:27 am
Contact:

Re: heat_buffer v15 how to use?

Post by Illysune »

I'd also like to know, I've tried altering a few things with the heat_buffer and energy consumption, but it seems like the 40MW output is fixed.
pclance
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Apr 25, 2017 9:48 am
Contact:

Re: heat_buffer v15 how to use?

Post by pclance »

still waiting on help

code

function update_reactor(index)
local reactor = global.reactors[index]
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
Post Reply

Return to “Modding help”