Non-localizable text in GoldSrc resource files
It would be great to move plain english strings from settings.scr + user.scr (Half-Life: Blue Shift, Half-Life: Opposing Force) and gfx\shell\kb_act.lst (Half-Life: Opposing Force) to GUI localization files (*_english.txt) as it was partially done for Half-Life: Opposing Force in yesterday's update.
For example, replace
"mp_decals"
{
"Multiplayer decal limit"
{ NUMBER 0.000000 4096.000000 }
{ "300.000000" }
}
in HL:BS's user.scr file with
"mp_decals"
{
"#Valve_Multiplayer_Decal_Limit"
{ NUMBER 0.000000 4096.000000 }
{ "300.000000" }
}
Thx.
I was surprised when I saw those missing loc tokens, if you call out the files that need fixing it will help me not miss any.
OK, here is the list:
bshift\settings.scr (plain english entries) bshift\user.scr (plain english entries) gearbox\gfx\shell\kb_act.lst (partially localized) gearbox\settings.scr (plain english entries) gearbox\user.scr (plain english entries) valve\spectatormenu.txt (plain english entries) valve\spectcammenu.txt (plain english entries)
Here's a take on making the files localized. I think it would be a good idea to add a gearbox_english.txt file.
resource/gearbox_english.txt
"lang"
{
"Language" "English"
"Tokens"
{
"Gearbox_Night_Vision_Goggles" "Night vision goggles"
"Gearbox_Capture_The_Flag_Title" "CAPTURE THE FLAG"
"Gearbox_Change_Character" "Change character"
"Gearbox_Drop_Current_Powerup" "Drop current powerup"
"Gearbox_Flag_Info" "Flag info"
"Gearbox_Capture_Limit" "Capture Limit"
"Gearbox_Mouse_Zoom_Sensitivity" "Mouse zoom sensitivity ratio"
"Gearbox_Auto_Team" "Auto Team Assignment"
"OF_BOOT0TITLE" "BOOT CAMP"
"OF1A1TITLE" "INCOMING"
"OF1A3TITLE" "WELCOME TO BLACK MESA"
"OF1A5TITLE" "WE ARE PULLING OUT"
"OF2A1TITLE" "MISSING IN ACTION"
"OF2A4TITLE" "FRIENDLY FIRE"
"OF3A1TITLE" "WE ARE NOT ALONE"
"OF3A3TITLE" "CRUSH DEPTH"
"OF4A1TITLE" "VICARIOUS REALITY"
"OF4A4TITLE" "PIT WORM'S NEST"
"OF5A1TITLE" "FOXTROT UNIFORM"
"OF6A1TITLE" "THE PACKAGE"
"OF6A4TITLE" "WORLDS COLLIDE"
"OF7A0TITLE" "CONCLUSION"
}
}
user.scr
DESCRIPTION INFO_OPTIONS
{
"zoom_sensitivity_ratio"
{
"#Gearbox_Mouse_Zoom_Sensitivity"
{ NUMBER 0 -1 }
{ "1.2" }
}
"mp_decals"
{
"#Valve_Multiplayer_Decal_Limit"
{ NUMBER 0.000000 4096.000000 }
{ "300.000000" }
}
}
settings.scr
DESCRIPTION SERVER_OPTIONS
{
"hostname"
{
"#Valve_Hostname"
{ STRING }
{ "Opposing Force" }
}
"maxplayers"
{
"#Valve_Max_Players"
{ NUMBER 1.000000 32.000000 }
{ "32.000000" }
}
"sv_password"
{
"#Valve_Server_Password"
{ STRING }
{ "" }
}
"mp_teamlist"
{
"#Valve_Valid_Teams"
{ STRING }
{ "Shephard;gordon" }
}
"mp_fraglimit"
{
"#Valve_Frag_Limit"
{ NUMBER 0.000000 -1.000000 }
{ "0.000000" }
}
"mp_timelimit"
{
"#Valve_Time_Limit"
{ NUMBER 0.000000 -1.000000 }
{ "30.000000" }
}
"mp_ctf_capture"
{
"#Gearbox_Capture_Limit"
{ NUMBER 0.000000 -1.000000 }
{ "5.000000" }
}
"mp_ctf_autoteam"
{
"#Gearbox_Auto_Team"
{ NUMBER 0.000000 1.000000 }
{ "0.000000" }
}
"mp_falldamage"
{
"#Valve_Falling_Damage"
{
LIST
"#Valve_Normal" "0"
"#Valve_Realistic" "1"
}
{ "0.000000" }
}
"mp_teamplay"
{
"#Valve_Teamplay"
{ BOOL }
{ "0" }
}
"mp_friendlyfire"
{
"#Valve_Friendly_Fire"
{ BOOL }
{ "0" }
}
"mp_weaponstay"
{
"#Valve_Weapons_Stay"
{ BOOL }
{ "0" }
}
"mp_forcerespawn"
{
"#Valve_Force_Respawn"
{ BOOL }
{ "0" }
}
"mp_footsteps"
{
"#Valve_Footsteps"
{ BOOL }
{ "1" }
}
"mp_flashlight"
{
"#Gearbox_Night_Vision_Goggles"
{ BOOL }
{ "0" }
}
"mp_autocrosshair"
{
"#Valve_Autocrosshair"
{ BOOL }
{ "0" }
}
}
kb_actl.lst
"blank" "==========================" "blank" "#Valve_Movement_Title" "blank" "==========================" "+forward" "#Valve_Move_Forward" "+back" "#Valve_Move_Back" "+left" "#Valve_Turn_Left" "+right" "#Valve_Turn_Right" "+moveleft" "#Valve_Move_Left" "+moveright" "#Valve_Move_Right" "+jump" "#Valve_Jump" "+duck" "#Valve_Duck" "+moveup" "#Valve_Swim_Up" "+movedown" "#Valve_Swim_Down" "+lookup" "#Valve_Look_Up" "+lookdown" "#Valve_Look_Down" "force_centerview" "#Valve_Look_Straight_Ahead" "+strafe" "#Valve_Strafe_Modifier" "+mlook" "#Valve_Mouse_Look_Modifier" "+klook" "#Valve_Keyboard_Look_Modifier" "+use" "#Valve_Use_Items" "blank" "==========================" "blank" "#Valve_Communication_Title" "blank" "==========================" "+voicerecord" "#Valve_Use_Voice_Communication" "messagemode" "#Valve_Chat_Message" "messagemode2" "#Valve_Team_Message" "blank" "==========================" "blank" "#Valve_Combat_Title" "blank" "==========================" "+attack" "#Valve_Primary_Attack" "+attack2" "#Valve_Secondary_Attack" "+reload" "#Valve_Reload_Weapon" "+speed" "#Valve_Walk" "impulse 100" "#Gearbox_Night_Vision_Goggles" "impulse 201" "#Valve_Spray_Logo" "slot1" "#Valve_Weapon_Category_1" "slot2" "#Valve_Weapon_Category_2" "slot3" "#Valve_Weapon_Category_3" "slot4" "#Valve_Weapon_Category_4" "slot5" "#Valve_Weapon_Category_5" "slot6" "#Valve_Weapon_Category_6" "slot7" "#Valve_Weapon_Category_7" "invprev" "#Valve_Previous_Weapon" "invnext" "#Valve_Next_Weapon" "lastinv" "#Valve_Last_Weapon_Used" "blank" "==========================" "blank" "#Gearbox_Capture_The_Flag_Title" "blank" "==========================" "changeteam" "#Valve_Change_Team" "changeclass" "#Gearbox_Change_Character" "impulse 205" "#Gearbox_Drop_Current_Powerup" "flaginfo" "#Gearbox_Flag_Info" "blank" "==========================" "blank" "#Valve_Miscellaneous_Title" "blank" "==========================" "+showscores" "#Valve_Display_Scores" "snapshot" "#Valve_Take_Screen_Shot" "save quick" "#Valve_Quick_Save" "load quick" "#Valve_Quick_Load" "pause" "#Valve_Pause_Game" "quit" "#Valve_Quit_Game"
Did some cleanup on the keyboard file removing the entries for each single weapon that just made the kayboard list unnecessarily long.
Yeah, this is it, except the removal of fast weapon switch commands.
@alfred-valve Thank you. One little issue -- it looks like you missed bshift\user.scr, gearbox\resource\gearbox_english.txt and gearbox\user.scr files in current release.
The user.scr files won't update, by design, you need a fresh install to get that change. user.scr is marked as user editable, so we don't alter it after the first install. There is no gearbox_english loc file, the couple of strings for that are in valve_english.txt.
@alfred-valve
The settings.scr files are [as a matter of fact] user editable as well, but they are always kept up to date. What is the reason to keep user.scr out of sync? Can you list all the files marked as user editable (non-updatable) except config.cfg and user.scr?
Also, it may be easier to delete user.scr files manually and re-validate game content instead of complete fresh install. Will it do the trick? [Edit: checked -- yes, it will.]
As for gearbox_english.txt, i'm asking because there is no "Gearbox_*" tokens in valve_english.txt, and as a result, I have a bunch of non-tokenized strings like these:

It would be reasonable to put these tokens to gearbox_english.txt because the are related to HL:OF only.
Strange, still no change for now. :( I'm using the last beta.
I bet I didn't rebuild the games steam depots after I fixed up the localization files, thanks for double checking.
Okay, really fixed now.
I'm glad to confirm this :-)