ValveSoftware / Source-1-Games

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

[HLDM:S] Misused CS:S fonts and wrong title font in ClientScheme.res #1343

Closed ghost closed 10 years ago

ghost commented 10 years ago

It looks like Counter-Strike: Source's "resource/clientscheme.res" file was used as a placeholder during the development of Half-Life Deatchmatch: Source. Unfortunately, non-existent CS:S fonts and other stuff weren't replaced with the right ones even in release version of the game in 2006. It also may be seen in console:

errors

How to Fix

First, replace calls to the non-existent placeholder fonts (lines 1437-1440)

        "1"     "resource/cs.ttf"
        "2"     "resource/csd.ttf"
        "3"     "resource/Cstrike.ttf"
        "4"     "resource/CSlogo.ttf"

with the following call to the default title font:

        "1"     "resource/HALFLIFE2.ttf"

Then remove unused Icons font placeholder (lines 573-583):

        Icons
        {
            "1"
             {
            "name"  "Counter-Strike" // Cstrike.ttf
            "tall"  "28"
            "weight" "0"
            "additive" "1"
            "antialias" "1"
             }
        }

Replace placeholder ClientTitleFont section (lines 585-595)

        ClientTitleFont
        {
            "1"
            {
                "name"  "Counter-Strike Logo" // CSlogo.ttf
                "tall"  "60"
                "weight" "0"
                "additive" "0"
                "antialias" "1"
            }
        }

with the correct one:

        ClientTitleFont
        {
            "1"
            {
                "name"  "HalfLife2"
                "tall"  "50"
                "weight" "0"
                "additive" "0"
                "antialias" "1"
            }
        }

Finally, replace the placeholder HudNumbers font (line 614)

                "name"  "Counter-Strike" // Cstrike.ttf

with the real one:

                "name"  "Verdana"

The result is:

snapshot

Also, you may note that errors in console are gone.

Thank you.

Yesbuddy commented 10 years ago

It is fixed in HL:S but not in HLDM:S, it would be nice to keep the "two games" always with the same fixes.

ghost commented 10 years ago

@Yesbuddy HLDM:S uses it's own ClientScheme.res scheme file, so the fix for HL:S makes no sense.

Yesbuddy commented 10 years ago

@FrenchMan Oh okay, but I guess you got what I meant.

ghost commented 10 years ago

@Yesbuddy I think so. Verdana in game title looks really frigging.

alfred-valve commented 10 years ago

I'm going to use Half-Life2 for the hubnumbers, otherwise looks good, thanks