Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Something strange happens. While audio files are clearly here, the game tells some audio file are missing.
After messing around with vpk, extracting sound, etc. I found this:
When unaltered, new sounds are not played. When unmout sound vpk, old hl2/bm audios are played. When extract sounds, it's "missing" now. I copied another wav, it plays...
Forgot to mention, i played on linux.
game+mod bshift/sound
to the gameinfo.txt file.. Worked like a charm, sounds are now playing.
Guess there is some issue with parsing the .vpks for some unknown reason.. Strange that it works for all the other ones with models and such but not for the bshift_sound.vpk
This is not a real solution as this uses hundred of files on your disk instead of the vpks, it works but depending on file system performance it might slow loading / exhaust number of open files.
B.t.w. congratulations on the great mod! It is really well made! I especially like the detailed maps and all the little eastereggs / small activities in them :D
Very strange that it works this way...
Not at all, this seems to be some issue where the linux binary isn´t able to parse the .vpk not an issue with the wav sounds.. Probably be readding them to the vpk you somehow change the name/key of that file in the vpk and the binary is able to parse it.
The .wav files are ok / the engine is able to play them like they are.
I thought maybe there is a difference on upper / lowercase, as for example black mesa tries to load UI/button_rollover.wav but it´s ui/button_rollover.wav in the VPK, but it doesn´t work for other sounds as well so probably that´s not the issue.
.VPK file format changed in the past multiple times, there is a v1 version and a v2.
The sound.vpk is v2. However there are some modes, which skip some parts of the path of a file if they are a repeat of the previous files path.. This is indicated by encoding a \0 instead of a \0\0 at the start of the path or something like that. This was introduced in the v1 format but only later used in v2.. The files in bshift are encoded with this "skipping" maybe this is not supported in the version of source they are using for the linux binary or something like that.. Not sure though.. As materials.vpk has skipping as well..
See https://developer.valvesoftware.com/wiki/VPK_File_Format#VPK_2 "Notes" section for details.
In order to work around this problem the following steps must be taken:
0: To make our life easier let us set this variable containing the path to the steam directory, then change to the mod directory. Execute all the commands in this directory. The dollar sign "$" indicates the command prompt, and the command should be executed as a regular user, but not part of any of the commands.
1: Concatenate the sound vpk fragments
The vpk tool which will be used in the next step cannot handle multipart vpk files, so it is need to be concatenated together:
2: Unpack the VPK file
The vpk files can be extracted using the vpk tool which is shipped with many source-based games. Unfortunately Black Mesa does not have this tool, therefore you need to install another game to get the vpk tool. I suggest "Synergy" since this is a free mod, and it have a relatively recent version of the vpk tool.
Once you installed Synergy you will have the vpk tool at "$STEAM_COMMON_DIR/Synergy/bin/vpk_linux32". Use the following command to extract the prepared vpk file.
3: Move the sound files to the proper directory, and delete the temporary/unneeded files:
4: Add the sound directory to gameinfo.txt
Open the gameinfo.txt using any texteditor
"game+mod bshift/sound"
Save the file, and start the game.
Had to do the same on Linux to get audio working.
I had trouble with VPK extraction using `vpk_linux32`, so I used a Python implementation instead: https://github.com/ValvePython/vpk
1. `pip3 install vpk`
2. Change to bshift directory in terminal
3. `vpk bshift_sound_dir.vpk -x .`
In topic "Something odd with wav encoding" user with nick "timvisee [Linux]" sugested using "vpk" utility from pip3. It's easier than vpk_linux32.
It would be good if someone would test the steps and describe the broken one.
Valve's vpk_linux32 is broken, thankfully ValvePython's vpk works fine without needing `cat` command. I prepared an installation guide, feel free to make a script of it;
https://www.reddit.com/r/linux_gaming/comments/rasla9/black_mesa_blue_shifts_halflife_blue_shift_remake/