[0.11.22]entity.energy behaving weird

Bugs that are actually features.
Post Reply
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

[0.11.22]entity.energy behaving weird

Post by theRustyKnife »

Ok, I'm pretty sure this is a bug by now. I am too lazy to describe it again so I'll link my older post.
https://forums.factorio.com/forum/vie ... =25&t=9253

logris
Inserter
Inserter
Posts: 31
Joined: Fri Oct 31, 2014 9:09 pm
Contact:

Re: [0.11.22]entity.energy behaving weird

Post by logris »

Have a look at this bug post: https://forums.factorio.com/forum/vie ... =23&t=9297
Maybe it's similar to what you're seeing?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13218
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.11.22]entity.energy behaving weird

Post by Rseding91 »

Entity.energy for burner type energy sources is not directly supported. You can set it but the capacity of the entity's energy is dynamically set based off what it's burning.

That means you need to set entity.energy each tick if you want to use it. Otherwise use an electric energy source and define a buffer size in the prototype - that will allow you to set the energy up to a maximum of the buffer size.
If you want to get ahold of me I'm almost always on Discord.

User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

Re: [0.11.22]entity.energy behaving weird

Post by theRustyKnife »

Oh I didn't realize that there was already a post about that. :oops: Guess I'll search the bug reports first next time. It kinda annoys me that it works like that though. I don't like those hack-arounds that I have to use now... :cry:

Post Reply

Return to “Not a bug”