Hi, in my mod, I'm replacing the sounds of bots with random speech sounds.
https://mods.factorio.com/mod/Age_of_Em ... _soundpack
Attached: 4 short videos showing the problem
I did several test to isolate the problem.
For example, I made data.raw["logistic-robot"]["logistic-robot"].charging_sound = nil
I tried messing with every setting in working_sound (fade_in_ticks, max_sounds_per_prototype, probability, aggregation...),
The problem
probability works on an individual level (if I put it to like 1/1200, when I have one bot, it only speaks once every 20s)
but the same sounds are repeated when they're in a group
I tried changed working_sound to this barebone definition, with only 2 sounds
{sound = {variations = {
{sound1}, {sound2}
}}}
I then notice one bot just repeats the same sound over and over.
The linked videos show mostly base settings with the content of working_sound.sound and charging_sound.sound replaced with my own sounds, but I could not change the behavior of repeated sound when they're in a group, no matter what I changed.
Note that I found this similar issue, but it's marked as solved.
(I hope that's clear enough, that's pretty hard to test bot sounds as a player)
viewtopic.php?p=651406&hilit=robot+sound#p651406
[Donion][2.0.58] Bots each repeat one sound in a loop
[Donion][2.0.58] Bots each repeat one sound in a loop
- Attachments
-
- 2025-06-27 22-59-35.mp4
- (2.14 MiB) Downloaded 13 times
-
- 2025-06-27 22-40-05.mp4
- (3.84 MiB) Downloaded 14 times
-
- 2025-06-27 22-39-40.mp4
- (1.89 MiB) Downloaded 13 times
-
- 2025-06-27 22-39-32.mp4
- (689.79 KiB) Downloaded 14 times
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Re: [2.0.58] Bots each repeat one sound in a loop
I'm not sure I understand the problem you're describing since in the videos I can hear different sounds playing at different times.
Are you saying the problem is that sometimes the same variation of the sound plays multiple times in a row? This should not happen and as far as I can tell it doesn't happen in-game when I test it.
Best would be if you post an example lua definition of working_sound and charging_sound with a recording and explanation what you're expecting/trying to do.
Edit: there's couple of debug options to help see which sounds are playing: "show-environment-sound-info" and "show-recently-played-sound-info"
Are you saying the problem is that sometimes the same variation of the sound plays multiple times in a row? This should not happen and as far as I can tell it doesn't happen in-game when I test it.
Best would be if you post an example lua definition of working_sound and charging_sound with a recording and explanation what you're expecting/trying to do.
Edit: there's couple of debug options to help see which sounds are playing: "show-environment-sound-info" and "show-recently-played-sound-info"
Re: [2.0.58] Bots each repeat one sound in a loop
I downloaded your mod and I have a guess what you might be experiencing.
The charging sound loops as long as the robot is charging so if you have a very short voice sound used as a charging sound (which you have) it will loop several times as the robot charges.
The charging sound loops as long as the robot is charging so if you have a very short voice sound used as a charging sound (which you have) it will loop several times as the robot charges.
Re: [Donion][2.0.58] Bots each repeat one sound in a loop
As to how to solve this I would suggest not using charging sound at all and keep only working sound with a probability.
Re: [Donion][2.0.58] Bots each repeat one sound in a loop
Hi, thanks for looking at it. The problem also happens when I disable charging sounds completely. Hold on, I can make a version that shows the problem while only having the working sound.
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Re: [Donion][2.0.58] Bots each repeat one sound in a loop
Ok, I was sure of my tests, but I can't reproduce the problem as described. The loop indeed comes from the charging, which seems to ignore the probability setting (maybe that's intentional?). Disabling charging sound in today's tests makes the working sounds behave as intended.
Sorry for the wrong information, I think this can be closed, but thanks for looking into it
Sorry for the wrong information, I think this can be closed, but thanks for looking into it
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Re: [Donion][2.0.58] Bots each repeat one sound in a loop
The probability is part of the working_sound definition so it doesn't affect the charging_sound.
Note that working sounds also loop when the probability is 1.0 (the default).
Note that working sounds also loop when the probability is 1.0 (the default).