Page 1 of 1

[0.17.53] Lamps playing working_sound when unpowered

Posted: Wed Jul 03, 2019 6:43 pm
by Deadlock989
TL;DR
Lamps given a working_sound always play it all the time, even if unpowered (with flashing yellow "unplugged" triangle), or if deactivated via circuit network, or if it's daytime and the lamp is off.

I know the wiki says that this property can be applied to entities which "don't actually do work". But my expectation was that turning power into light was counted as work.
Steps to reproduce
1. Add a working sound to an existing lamp, e.g.

Code: Select all

data.raw.lamp["small-lamp"].working_sound = {
	filename = "__base__/sound/radar.ogg",
	volume = 1.0,
}
2a. Place the lamp outside of an electric grid so that it flashes the disconnected icon, stand near it.
2b. Power the lamp, connect it to a circuit network that doesn't have any signals, stand near it.
2c. Power the lamp, wait for full daytime, stand near it.

Re: [0.17.53] Lamps playing working_sound when unpowered

Posted: Wed Jul 03, 2019 7:37 pm
by Rseding91
Thanks for the report. Lamps were never designed to operate with or around sounds and so if they don't work it's not really a concern.