Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

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

Open ghost opened this issue 13 years ago • 5 comments

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.

ghost avatar Sep 20 '13 20:09 ghost

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.

Yesbuddy avatar Sep 21 '13 15:09 Yesbuddy

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

ghost avatar Sep 21 '13 15:09 ghost

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

Yesbuddy avatar Sep 21 '13 15:09 Yesbuddy

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

ghost avatar Sep 21 '13 16:09 ghost

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

alfred-valve avatar Sep 23 '13 17:09 alfred-valve