[boskid][1.1.2] Power Switch does not play sound effects
Posted: Sun Nov 29, 2020 11:13 pm
Despite having working_sound defined in its prototype (the actual definition in base/prototypes/entity/circuit-network.lua), the power switch does not play sounds. I confirmed this by building a power switch, standing right next to it, and toggling it on and off, both manually and with the circuit network, as well as with the switch electrically loaded and not. I used the debug option that lists the recent sound plays to confirm that the sounds aren't played.
Furthermore, it seems like the switch has never played sounds, based on this thread. But the prototype and these release notes make it seem like it should?
For easy reference, here's the definition:
I did confirm that the sound files exist, so it seems like this was intended to play sounds but the internal support was never added to the game.
Furthermore, it seems like the switch has never played sounds, based on this thread. But the prototype and these release notes make it seem like it should?
For easy reference, here's the definition:
Code: Select all
working_sound =
{
sound =
{
filename = "__core__/sound/silence-1sec.ogg",
volume = 0
},
activate_sound =
{
{
filename = "__base__/sound/power-switch-activate-1.ogg",
volume = 0.4
},
{
filename = "__base__/sound/power-switch-activate-2.ogg",
volume = 0.4
},
{
filename = "__base__/sound/power-switch-activate-3.ogg",
volume = 0.4
}
},
deactivate_sound =
{
filename = "__core__/sound/silence-1sec.ogg",
volume = 0
},
audible_distance_modifier = 0.4,
--max_sounds_per_type = 3
},