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

HudText missing from CS:S

Open KyleSanderson opened this issue 13 years ago • 9 comments

In most other Source (1) based Games, HudText is present and can serve as a vital constant reminder of displaying data (Such as "You are the VIP"). This can serve many roles, and while Alfred shot down the implementation in 2008, I believe the community has passed the point where such a thing would be a shocker in games. I'm totally open to another way of printing data, but we need another way to display prompts carefully and thoughtfully to clients. Otherwise the mod community is going to continue to suffer, and confuse users who are new to the game.

KyleSanderson avatar Feb 15 '13 18:02 KyleSanderson

Wow...that was fast. Hadn't opened up this repo yet...

bdeen-valve avatar Feb 15 '13 18:02 bdeen-valve

All that needs to be done to resolve this issue is something like this which needs to be added to ClientScheme.res

    CenterPrintText
    {
       "1"
       {
            "name"      "Trebuchet MS" [!$OSX]
            "name"      "Helvetica" [$OSX]
            "tall"      "18"
            "weight"    "900"
            "range" "0x0000 0x007F" // Basic Latin
            "antialias" "1"
            "additive" "1"
       }
    }

rlabrecque avatar Feb 15 '13 20:02 rlabrecque

No news on this one yet? It would open up so many possibilities

Nafrayu avatar May 05 '13 19:05 Nafrayu

This is very important for the developers of plugins!

JMorell avatar Feb 27 '14 07:02 JMorell

@kisak-valve this landed via Eric Smith in 2014~. As it's been almost a year(?) since the game sync'd, if you could confirm it's still present before the next branch sync that would be great.

KyleSanderson avatar Dec 20 '16 20:12 KyleSanderson

Hello @KyleSanderson, Unfortunately, I am a community moderator and do not have access to pending updates. We'll need to wait for a Valve dev to give some insight.

kisak-valve avatar Dec 20 '16 21:12 kisak-valve

I pulled up some game demo's from 2012 showing that game_text has worked fine before Oct. 2013 however it returned a engine version error. (Hldms)

1157 avatar Dec 28 '16 23:12 1157

@EricS-Valve You're assigned to this, what's your progress on it?

Yetoo1 avatar Jan 17 '22 23:01 Yetoo1

Additional details from #8370 (closed as a duplicate of this one):

HudText works in CS:S today, but it's hard to use for readable server HUDs:

  • Even with alpha 255 the text is see-through. This seems to come from "additive" "1" on the font (see the ClientScheme snippet above), so the text can never be opaque.
  • There is no background option, so plugins fake one with a r_screenoverlay VTF.
  • Only one color per message, so plugins overlap several channels to color a label and a value differently.

Screenshot and full description: #8370

claymancss1337 avatar Oct 12 '26 19:10 claymancss1337