closecaption_*.dat compiling incorrectly + X360 in-game buttons

Hello there! I have a problem with compiling closecaption_russian.dat with captioncompiler.exe. Every time I compile this file and copied to the correct folder in custom .vpk, the game crashes with an error “Invalid file ID”. Can someone help me with compiling of this subtitles? Giving me correct instruction or compiling it correctly by yourselves? I can’t wait for official fix for russian localisation and i wanted to fix it by myself (put in missing and correct translation of few lines), but this error is driving me crazy for 2 weeks.

closecaption_russian.txt (784 KB)

And can someone tell me, how to enable ingame controller button icons that in “Black Mesa\hl2\hl2_textures_dir.vpk\materials\vgui\fonts\buttons_32.vtf”? I remember that in CSGO there was file “button_32.VBF”, and these icons works in game perfectly.

P.S. Sorry 4 my eng.

I’ve compiled a vpk for you with closecaption_russian.dat using your closecaption_russian.txt. See if that one works. It works fine on my system placed in a custom folder (which is mounted in gameinfo.txt).

EDIT 2017-05-29: Apparently, you solved the issue yourself.

Just to add some general info, the error “Invalid file ID” means that the engine couldn’t find the correct file header in the .dat file, which means that the .dat file must be either empty or completely corrupt.

Also, captioncompiler.exe uses the same file loading system as the game’s engine, which means you’ll need to setup a custom folder in gameinfo.txt, or it will just load the closecaption_…txt file from the official .vpks. The closecaption_…dat file is written to the “steamapps\Black Mesa\bms\resource” folder (make sure that folder exists), and you’ll need to move it to the “resource” folder in your mod’s folder/vpk, which is placed in your custom folder, in order for the game to use it (e.g., “steamapps\Black Mesa\bms\custom\closecaption_mod\resource”).

Founded in 2004, Leakfree.org became one of the first online communities dedicated to Valve’s Source engine development. It is more famously known for the formation of Black Mesa: Source under the 'Leakfree Modification Team' handle in September 2004.