[0.18.36] Set energy doesn't work on misc types

Bugs that are actually features.
Post Reply
User avatar
wasmoo
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Apr 27, 2020 11:57 am
Contact:

[0.18.36] Set energy doesn't work on misc types

Post by wasmoo »

I attempted to set the energy levels of certain entities from an on_tick() function.

Code: Select all

function setEnergy(entity)
    entity.energy = 999999999
end
The following types of entities could not achieve full power, even when energy was set very high:
  • lamp
  • decider-combinator
  • arithmetic-combinator
  • programmable-speaker

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

Re: [0.18.36] Set energy doesn't work on misc types

Post by Rseding91 »

Thanks for the report however that's all working correctly:

* Lamps have special power logic and only function when connected to electric networks

* Combinators and speakers have a power buffer of 1 tick, so unless you pause the game (or set the energy each tick) they will consume the power you set before you ever see it in the tooltip. They do work to set the power.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Not a bug”