[1.1.87] incorrect sound function

This subforum contains all the issues which we already resolved.
Lindor
Inserter
Inserter
Posts: 30
Joined: Sat Sep 28, 2019 10:54 pm
Contact:

[1.1.87] incorrect sound function

Post by Lindor »

Hey :)

"__base__/prototypes/entity/sounds.lua":
function "sounds.large_explosion(volume)" has an unused "volume" parameter.

The volume is always set to 0.55 in spite of different prototypes trying to set different volumes.

Examples from "__base__/prototypes/entity/explosions.lua":

Code: Select all

(...)
  {
    type = "explosion",
    name = "big-explosion",
    (...)
    sound = sounds.large_explosion(1.0)
  },
(...)
  {
    type = "explosion",
    name = "storage-tank-explosion",
    (...)
    sound = sounds.large_explosion(0.8),
  },(...)
Implying that different volumes are a wanted feature but it's not correctly scripted.
Donion
Factorio Staff
Factorio Staff
Posts: 312
Joined: Sun Aug 22, 2021 9:18 am
Contact:

Re: [Donion] [1.1.87] incorrect sound function

Post by Donion »

Hi. Good catch, thanks for the report, it's now fixed for the next release.
Post Reply

Return to “Resolved Problems and Bugs”