Team Fortress 2

Team Fortress 2

Not enough ratings
Solution when the game crashes when the HUD is inserted.
By なかっち(Dimas)
It was difficult to find anyone explaining the problem of the game suddenly crashing when a HUD is introduced, and after researching and fiddling around I found a solution, so I'm leaving it here for posterity. (English translation for https://steamcommunity.com/sharedfiles/filedetails/?id=2999511967 )
   
Award
Favorite
Favorited
Unfavorite
Sudden conclusion
We suspect this is due to closed captioning.

If not, there is no longer a point at which this guide is useful.
Solution No. 1 (very simple).
Turn off closed captioning, this should be the quickest way to solve the problem without detailed logic.
Solution No. 2 (for those who didn't like No. 1, it is also the cornerstone of this guide).
For those who want to use a stylish HUD but also want to use closed captions, we will explain the solution in a little more detail.

First of all, why are closed captions and HUDs incompatible?
Generally, custom HUDs have a very narrow closed captioning area to improve the appearance, unlike the default HUD, but as you know, Team Fortress 2 has seven voice actors speaking the nine classes (the Demoman and Heavy, and the Pyro and Spy are all played by the same voice actor). The characters talk so much that the HUD can't handle the subtitles in the small space available, so the game freezes and is forced to quit.

What should I do?
[TF2/TF2C/OF] Another Closed Captions Project!
https://gamebanana.com/mods/25151
This section explains some interesting explanations and translations of some of the explanations in the explanatory text of the



From the Team Fortress 2 startup screen, select Manage → Browse Local Files (see diagram) and then open hudlayout.res at tf\custom\HUD you are using\scripts\ with Notepad or something then find the HudCloseCaption entry in it and process it as follows.

HudCloseCaption
{
"fieldName" "HudCloseCaption"
"visible" "1"
"enabled" "1"
"xpos" "c-250"
"ypos" "276" [$WIN32]
"ypos" "236" [$X360]
"wide" "500"
"tall" "136" [$WIN32]
"tall" "176" [$X360]

"BgAlpha" "128"

"GrowTime" "0.25"
"ItemHiddenTime" "0.2"
"ItemFadeInTime" "0.15"
"ItemFadeOutTime" "0.3"
"topoffset" "0"
}


The caption block should now be in the same situation as the default and should work well. If it still does not work, adjust it to fit the HUD or contact the HUD administrator.
At the end.
That concludes the explanation, I only hope that this guide will help someone one day, customise it to your liking and have a good TF2 life!