Page 1 of 1

Custom entities with heat buffer

Posted: Fri May 11, 2018 12:52 am
by memcallen
I'm re-making my caves mod, and I'm trying to make a proper heat exchanger using the heat pipe system.

Previously, I had a storage tank which just incremented or decremented the heat of whatever fluidbox it was in front of, but that didn't account for heat capacities. Now, I'm trying to add a heat_buffer to a simple tank prototype and it doesn't work. The heat icons don't show up, and heat pipes won't connect to the connection points.

I'm guessing heat_buffers are hardcoded, so has anyone figured out a way to get around this, or add a heat_buffer to a custom entity?

Re: Custom entities with heat buffer

Posted: Fri May 11, 2018 11:40 am
by eradicator
memcallen wrote:I'm guessing heat_buffers are hardcoded, so has anyone figured out a way to get around this, or add a heat_buffer to a custom entity?
Everything is hardcoded in that respect. You can never add arbitrary fields to a prototype if that prototype doesn't already have that property. There's no way around that. If you want something with heat_buffer you'll have to use something that already has one.