Energy usage of custom lamps

Place to get help with not working mods / modding interface.
immibis
Filter Inserter
Filter Inserter
Posts: 303
Joined: Sun Mar 24, 2013 2:25 am
Contact:

Energy usage of custom lamps

Post by immibis »

Is there a way to change the amount of power used by a lamp type?
The small lamps have:

Code: Select all

energy_usage_per_tick = 0.1
but changing this doesn't do anything.

I also tried adding:

Code: Select all

energy_usage = "250W",
just in case that was it (it's not).
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Energy usage of custom lamps

Post by slpwnd »

The energy_usage_per_tick is the correct field. I tested it and works as expected (at least in 0.9). The only trick is that during the day the lamps take just some standby energy (1/30 of regular consumption).
immibis
Filter Inserter
Filter Inserter
Posts: 303
Joined: Sun Mar 24, 2013 2:25 am
Contact:

Re: Energy usage of custom lamps

Post by immibis »

Okay, I'm just stupid.

Somehow I thought small lamps use 60W, and adding

Code: Select all

energy_usage_per_tick = 1.0,
makes it 60W (1 J/t * 60 t/s), so I thought it didn't do anything.
kovarex
Factorio Staff
Factorio Staff
Posts: 8293
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Energy usage of custom lamps

Post by kovarex »

Note, that for 0.9, the energy definition will be standartised.
So instead of 0.1 (energy per tick), it has to be "6W"
Post Reply

Return to “Modding help”