ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
634 stars 74 forks source link

[L4D2] [Linux] Audio breaks if `soundmixers.txt` is loaded on game boot. #6053

Open MutinCholer opened 3 months ago

MutinCholer commented 3 months ago

In Linux's native version of Left 4 Dead 2, most of the game's audio no longer plays after either a second session has started after installation or the Speaker Configuration settings are changed.

https://www.youtube.com/watch?v=cvdUTUVSbBo

A workaround for this issue is to delete the addonlist.txt file before launching the game. Of course, this can be automated by adding the following text to the game's launch option before starting a new session:

rm -r ./left4dead2/addonlist.txt ; %command%

https://www.youtube.com/watch?v=K5fEQL3Vg20

kisak-valve commented 3 months ago

Hello @MutinCholer, I suspect that there's something more subtle going on. Can you share the contents of addonlist.txt and if you're trying to use any audio related mods or workshop items?

MutinCholer commented 3 months ago

Here are the contents listed in the addonlist.txt file.

addonlist.txt

As for whether I use any audio-related add-ons, I decided to move some of them outside of the workshop directory to see if any of them break the audio on the Linux version. While most of them work fine, the add-on for 2050 (Incomplete) seems to be the culprit. Although I'm not sure what exact file is breaking audio, I do know that using the Proton version of Left 4 Dead 2 doesn't have this issue.

MutinCholer commented 3 months ago

After removing most of the content from the VPK file for 2050 (Incomplete), I realized that the soundmixers.txt file is the reason why most of the in-game audio broke in the Linux version.

soundmixers.txt