This is the code I used
Code: Select all
data.raw.beam["laser-beam"] = {
{
filename = "__BetterSounds__/sounds/beam.ogg",
volume = 1
}
}
Code: Select all
data.raw.beam["laser-beam"] = {
{
filename = "__BetterSounds__/sounds/beam.ogg",
volume = 1
}
}
Well according to https://github.com/wube/factorio-data/b ... s.lua#L175,Rioma wrote: Wed Jan 08, 2025 4:33 am I'm trying to replace the electric beam sound by a custom one but I can't make it work.
This is the code I used
Code: Select all
data.raw.beam["laser-beam"] = { { filename = "__BetterSounds__/sounds/beam.ogg", volume = 1 } }
Code: Select all
require("util")
table.merge(data.raw.beam["laser-beam"].working_sound.sound, {
filename = "__BetterSounds__/sounds/beam.ogg",
volume = 1 })