L4D2 Center HUD fix

Discussions about getting games to run in a Multi-Mon setup.
Post Reply
Tanshin
Posts: 80
Joined: 22 Jan 2010, 09:34

Re: L4D2 Center HUD fix

Post by Tanshin »

In my on going struggle with centering the HUD in l4d2, I have made a new addition.

Center screen score board!!





-Tanshin
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

Can you share with us your .vpk please?

Savs me and others having to duplicate work and thus concentrate our time on other improvements.
| Gigabyte X79S-UP5-WiFi Skt2011 | i7 4820k @4.4GHz Watercooled (Ivy Bridge-E) | Corsair Vengence 32GB @2133MHz 11-11-11-27 2T Quad-Channel (8x4GB) | AMD R9-Fury-X 4GB @1140/505MHz + EKWB Watercooled | 256GB Crucial MX200 SSD | 8x 1TB Samsung F3 SATA-II | Corsair 850W TX PSU | 3x Dell S2209W 22"wide TFT's (5760x1080res) | Logitech Z-5400 5.1ch speakers | Win7 Ultimate x64 |
User avatar
GeneralAdmission
Editors
Editors
Posts: 1560
Joined: 12 Sep 2007, 19:14

Re: L4D2 Center HUD fix

Post by GeneralAdmission »

Thanks for the quick replies, guys.

Delphium, your tool sounds like a great idea (I saw the dev thread you started). I'm trying to brainstorm a method of making the necessary hex-edits to the .vpk file as easy as possible since many folks are put off by such file-hacking voodoo. Ideally a one-click modification tool with automatic updates based on game patches would be the best, but I'm not a coder and have little scripting experience so it may take me awhile to figure something out.
Tanshin
Posts: 80
Joined: 22 Jan 2010, 09:34

Re: L4D2 Center HUD fix

Post by Tanshin »

I don't have a place to host my files, but all the .res files in the vpk have ...}..}.. before them, I can however place my code for the score board modification, there are a lot of fields that need to be edited, and I have only done so for the campaign and not for the versus or other gameplay types.

This also belongs in the /Resource/UI folder. Names scoreboard.res. Anything with xpos = 910 is something that i have modified for my custom resolution. Simply making anything with 910 to 908, or whatever you have decided to be your ideal most left position, should fit for 5760 x 1080. also, anything with 920, or 1000+ should be modified accordingly, as each one of these position the images over the background, I added 900 to each of them so i got the right image position. it will take some playing around with to get it right for you.

In total, I would think it would be rather difficult to set the position with the click of a single button. I will keep you up to date with all the files I tweak. today I'm painting the bedroom for my wife and I, so I wont have any time to tweak.

In the next few days, I should be able to tweak another one for other resolutions if this is too difficult.

Code: Select all

"Resource/UI/ScoreBoard.res"      //the screen that comes up when you press TAB

   {
      "scores"
      {
         "ControlName"      "CClientScoreBoardDialog"
         "fieldName"      "scores"
         "xpos"      "910"
         "ypos"      "42"
         "wide"      "f0"
         "tall"      "480"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "0"
         "enabled"      "1"
         "tabPosition"      "0"
         "scoreboard_position"   "north-west"
   
         // Sizes for Infected sectioned list panel
         infected_avatar_size      "24"
         infected_name_width         "110"
         infected_status_width      "30"
         infected_score_width      "30"
         infected_death_width      "30"
         infected_ping_width         "30"
      }
   
      "BackgroundImage" [$X360]
      {
         "ControlName"   "Panel"
         "fieldName"      "BackgroundImage"
         "xpos"         "0"
         "ypos"         "0"
         "zpos"         "0"
         "wide"         "400" [$ENGLISH]
         "wide"         "515" [!$ENGLISH]
         "tall"         "480"
         "visible"      "1"
         "enabled"      "1"
         "bgcolor_override"   "0 0 0 230"
      }
      
      "BackgroundImage" [$WIN32]
      {
         "ControlName"   "Panel"
         "fieldName"      "BackgroundImage"
         "xpos"         "900"
         "ypos"         "0"
         "zpos"         "0"
         "wide"         "340" [$ENGLISH]
         "wide"         "375" [!$ENGLISH]
         "tall"         "480"
         "visible"      "1"
         "enabled"      "1"
         "bgcolor_override"   "0 0 0 230"
      }
   
   
      "ServerName"
      {
         "ControlName"      "Label"
         "fieldName"      "ServerName"
         "xpos"      "920"
         "ypos"      "10"
         "wide"      "330"
         "tall"      "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "0"
         "enabled"      "1"
         "labelText"      ""
         "textAlignment"      "north-west"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"      "FrameTitle"
         "fgcolor_override" "White"
      }
      
      "MissionTitle"
      {
         "ControlName"      "Label"
         "fieldName"      "MissionTitle"
         "xpos"      "920" [$WIN32]
         "ypos"      "13" [$WIN32]
         "xpos"      "60" [$X360]
         "ypos"      "23" [$X360]
         "wide"      "330" [$ENGLISH]
         "wide"      "440" [!$ENGLISH]
         "tall"      "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "labelText"      ""
         "textAlignment"      "north-west"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"      "FrameTitle"
         "fgcolor_override" "White"
         "wrap"      "1"
      }
      
      "MissionObjective"
      {
         "ControlName"      "Label"
         "fieldName"      "MissionObjective"
         "xpos"      "920"   [$WIN32]
         "ypos"      "27"    [$WIN32]
         "xpos"      "60"   [$X360]
         "ypos"      "58"    [$X360]
         "wide"      "330"
         "tall"      "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "labelText"      ""
         "textAlignment"      "north-west"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"      "Default"
         "fgcolor_override" "MediumGray"
         "wrap"         "1"
         "usetitlesafe"   "1" [$WIN32]
      }
   
      "ImgGoldMedal"
      {
         "ControlName"               "ImagePanel"
         "fieldName"                  "ImgGoldMedal"
         "xpos"                     "60"   [$X360]
         "xpos"                     "25"   [$WIN32]
         "ypos"                     "85"   [$X360]
         "ypos"                     "70"   [$WIN32]
         "zpos"                     "2"
         "wide"                     "20"
         "tall"                     "20"
         "pinCorner"                  "0"
         "visible"                  "1"
         "enabled"                  "1"
         "tabPosition"               "0"
         "image"                     "hud/survival_medal_gold"
         "scaleImage"               "1"
      }
      
      "LblGoldMedalTime"
      {
         "ControlName"               "Label"
         "fieldName"                  "LblGoldMedalTime"
         "xpos"                     "46"   [$WIN32]
         "xpos"                     "95"   [$X360]
         "ypos"                     "85"   [$X360]
         "ypos"                     "70"   [$WIN32]
         "wide"                     "50"
         "tall"                     "20"
         "zpos"                     "2"
         "autoResize"               "0"
         "pinCorner"                  "0"
         "visible"                  "1"
         "enabled"                  "1"
         "tabPosition"               "0"
         "labelText"                  "0:00"
         "textAlignment"               "west"
         "Font"                     "Default"
      }
      
      "ImgSilverMedal"
      {
         "ControlName"               "ImagePanel"
         "fieldName"                  "ImgSilverMedal"
         "xpos"                     "60"   [$X360]
         "xpos"                     "25"   [$WIN32]
         "ypos"                     "100"   [$X360]
         "ypos"                     "85"   [$WIN32]
         "zpos"                     "2"
         "wide"                     "20"
         "tall"                     "20"
         "pinCorner"                  "0"
         "visible"                  "1"
         "enabled"                  "1"
         "tabPosition"               "0"
         "image"                     "hud/survival_medal_silver"
         "scaleImage"               "1"
      }
      
      "LblSilverMedalTime"
      {
         "ControlName"               "Label"
         "fieldName"                  "LblSilverMedalTime"
         "xpos"                     "46"   [$WIN32]
         "xpos"                     "95"   [$X360]
         "ypos"                     "100"   [$X360]
         "ypos"                     "85"   [$WIN32]
         "wide"                     "50"
         "tall"                     "20"
         "zpos"                     "2"
         "autoResize"               "0"
         "pinCorner"                  "0"
         "visible"                  "1"
         "enabled"                  "1"
         "tabPosition"               "0"
         "labelText"                  "0:00"
         "textAlignment"               "west"
         "Font"                     "Default"
      }
      
      "ImgBronzeMedal"
      {
         "ControlName"               "ImagePanel"
         "fieldName"                  "ImgBronzeMedal"
         "xpos"                     "60"   [$X360]
         "xpos"                     "25"   [$WIN32]
         "ypos"                     "115"   [$X360]
         "ypos"                     "100"   [$WIN32]
         "zpos"                     "2"
         "wide"                     "20"
         "tall"                     "20"
         "pinCorner"                  "0"
         "visible"                  "1"
         "enabled"                  "1"
         "tabPosition"               "0"
         "image"                     "hud/survival_medal_bronze"
         "scaleImage"               "1"
      }
      
      "LblBronzeMedalTime"
      {
         "ControlName"               "Label"
         "fieldName"                  "LblBronzeMedalTime"
         "xpos"                     "46"   [$WIN32]
         "xpos"                     "95"   [$X360]
         "ypos"                     "115"   [$X360]
         "ypos"                     "100"   [$WIN32]
         "wide"                     "50"
         "tall"                     "20"
         "zpos"                     "2"
         "autoResize"               "0"
         "pinCorner"                  "0"
         "visible"                  "1"
         "enabled"                  "1"
         "tabPosition"               "0"
         "labelText"                  "0:00"
         "textAlignment"               "west"
         "Font"                     "Default"
      }
   
      "ImgLevelLargeImage"
      {
         "ControlName"         "ImagePanel"
         "fieldName"            "ImgLevelLargeImage"
         "xpos"               "995"         [$WIN32]
         "ypos"               "54"         [$WIN32]
         "wide"               "163"         [$WIN32]
         "tall"               "82"         [$WIN32]
         "xpos"               "152"         [$X360]
         "ypos"               "70"         [$X360]
         "wide"               "150"         [$X360]
         "tall"               "75"         [$X360]
         "scaleImage"         "1"
         "pinCorner"            "0"
         "visible"            "1"
         "enabled"            "1"
         "tabPosition"         "0"
         "image"               "maps/any"
         "scaleImage"         "1"
      }
      
      "ImgLevelLargeImageFrame"
      {
         "ControlName"         "ImagePanel"
         "fieldName"            "ImgLevelLargeImageFrame"
         "xpos"               "990"           [$WIN32]
         "ypos"               "48"           [$WIN32]
         "wide"               "202"           [$WIN32]
         "tall"               "98"            [$WIN32]
         "xpos"               "145"           [$X360]
         "ypos"               "62"            [$X360]
         "wide"               "184"           [$X360]
         "tall"               "90"           [$X360]
         "scaleImage"         "1"
         "pinCorner"            "0"
         "visible"            "1"
         "enabled"            "1"
         "tabPosition"         "0"
         "image"               "campaignFrame"
         "scaleImage"         "1"
      }      
   
      "Map1"
      {
         "ControlName"      "ImagePanel"
         "fieldName"      "Map1"
         "xpos"         "920" [$WIN32]
         "xpos"         "65" [$X360]
         "ypos"         "c-150" [$WIN32]
         "ypos"         "90" [$X360]
         "wide"         "60"
         "tall"         "30"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "fillcolor_override"   "DarkGray"
         "usetitlesafe"   "1" [$WIN32]
      }
      "Map2"
      {
         "ControlName"      "ImagePanel"
         "fieldName"      "Map2"
         "xpos"         "982" [$WIN32]
         "xpos"         "127" [$X360]
         "ypos"         "c-150" [$WIN32]
         "ypos"         "90" [$X360]
         "wide"         "60"
         "tall"         "30"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "fillcolor_override"   "DarkGray"
         "usetitlesafe"   "1" [$WIN32]
      }
      "Map3"
      {
         "ControlName"      "ImagePanel"
         "fieldName"      "Map3"
         "xpos"         "1044" [$WIN32]
         "xpos"         "189" [$X360]
         "ypos"         "c-150" [$WIN32]
         "ypos"         "90" [$X360]
         "wide"         "60"
         "tall"         "30"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "fillcolor_override"   "DarkGray"
         "usetitlesafe"   "1" [$WIN32]
      }
      "Map4"
      {
         "ControlName"      "ImagePanel"
         "fieldName"      "Map4"
         "xpos"         "1106" [$WIN32]
         "xpos"         "251" [$X360]
         "ypos"         "c-150" [$WIN32]
         "ypos"         "90" [$X360]
         "wide"         "60"
         "tall"         "30"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "fillcolor_override"   "DarkGray"
         "usetitlesafe"   "1" [$WIN32]
      }
      "Map5"
      {
         "ControlName"      "ImagePanel"
         "fieldName"      "Map5"
         "xpos"         "1168" [$WIN32]
         "xpos"         "313" [$X360]
         "ypos"         "c-150" [$WIN32]
         "ypos"         "90" [$X360]
         "wide"         "60"
         "tall"         "30"
         "autoResize"   "0"
         "pinCorner"      "0"   
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "fillcolor_override"   "DarkGray"
         "usetitlesafe"   "1" [$WIN32]
      }
   
      "CurrentMap"
      {
         "ControlName"      "Label"
         "fieldName"      "CurrentMap"
         "xpos"         "1268"   // code sets this to the xpos of the correct MapN control
         "ypos"         "120"
         "wide"         "90"
         "tall"         "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "0"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"         "DefaultDropShadow"
         "labelText"      "#L4D_Scoreboard_Current_Map"
         "centerwrap"   "1"
      }
      
      "CurrentMapArrow"
      {
         "ControlName"      "Label"
         "fieldName"      "CurrentMapArrow"
         "xpos"         "1268"   // code sets this to the xpos of the correct MapN control
         "ypos"         "113"
         "wide"         "60"
         "tall"         "12"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "0"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"      "GameUIButtons"
         "labelText"      "r"
      }
   
      "OpponentMap"
      {
         "ControlName"      "Label"
         "fieldName"      "OpponentMap"
         "xpos"         "1268"   // code sets this to the xpos of the correct MapN control
         "ypos"         "60"
         "wide"         "60"
         "tall"         "0"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "0"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"      "DefaultDropShadow"
         "labelText"      "#L4D_Scoreboard_Opponent_Map"
         "centerwrap"   "1"
      }
      
      "RescueMap"
      {
         "ControlName"      "Label"
         "fieldName"      "RescueMap"
         "xpos"         "1268"   // code sets this to the xpos of the correct MapN control
         "ypos"         "120"
         "wide"         "80"
         "tall"         "12"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "0"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"      "DefaultDropShadow"
         "labelText"      "#L4D_Scoreboard_Rescue_Map"
      }
      "RescueMapArrow"
      {
         "ControlName"      "Label"
         "fieldName"      "RescueMapArrow"
         "xpos"         "1268"   // code sets this to the xpos of the correct MapN control
         "ypos"         "113"
         "wide"         "60"
         "tall"         "12"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "0"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"      "GameUIButtons"
         "labelText"      "r"
         "fgcolor_override" "White"
      }
   
      "SurvivorBackground"
      {
         "ControlName"   "ScalableImagePanel"
         "fieldName"      "SurvivorBackground"
         "xpos"      "915"
         "ypos"      "c-85"
         "wide"      "311"
         "tall"      "129"
         "visible"      "1"
         "enabled"      "1"
         "scaleImage"   "1"   
         "image"         "../vgui/hud/ScalablePanel_bgBlack"
         "zpos"         "-2"
         
         "src_corner_height"      "16"            // pixels inside the image
         "src_corner_width"      "16"
            
         "draw_corner_width"      "8"            // screen size of the corners ( and sides ), proportional
         "draw_corner_height"    "8"   
         
         "usetitlesafe"      "1"
      }   
   
      "Survivor1"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Survivor1"
          "xpos"      "920"
          "ypos"      "c-102"
          "zpos"      "1"
          "wide"      "300"
          "tall"      "80"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Survivor2"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Survivor2"
         "xpos"      "920"
         "ypos"      "c-72"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "80"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Survivor3"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Survivor3"
         "xpos"      "920"
         "ypos"      "c-42"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "80"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Survivor4"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Survivor4"
         "xpos"      "920"
         "ypos"      "c-12"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "80"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
      
      "InfectedBackground"
      {
         "ControlName"   "ScalableImagePanel"
         "fieldName"      "InfectedBackground"
         "xpos"      "15"
         "ypos"      "c42"
         "wide"      "311"
         "tall"      "90"
         "visible"      "1"
         "enabled"      "1"
         "scaleImage"   "1"   
         "image"         "../vgui/hud/ScalablePanel_bgBlack"
         "zpos"         "-2"
         
         "src_corner_height"      "16"            // pixels inside the image
         "src_corner_width"      "16"
            
         "draw_corner_width"      "8"            // screen size of the corners ( and sides ), proportional
         "draw_corner_height"    "8"   
         
         "usetitlesafe"      "1"
      }
   
      "Infected1"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Infected1"
         "xpos"      "20"
         "ypos"      "c33"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "50"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Infected2"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Infected2"
         "xpos"      "20"
         "ypos"      "c53"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "50"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Infected3"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Infected3"
         "xpos"      "20"
         "ypos"      "c73"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "50"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Infected4"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Infected4"
         "xpos"      "20"
         "ypos"      "c93"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "50"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Infected5"
      {
         "ControlName"      "DontAutoCreate"
         "fieldName"      "Infected5"
         "xpos"      "20"
         "ypos"      "c113"
         "zpos"      "1"
         "wide"      "300"
         "tall"      "50"
         "autoResize"      "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"      "0"
         "autoresize"   "0"
         "usetitlesafe"   "1"
      }
   
      "Spectators"
      {
         "ControlName"      "Label"
         "fieldName"      "Spectators"
         "font"         "ScoreboardVerySmall"
         "labelText"      "%spectators%"
         "textAlignment"      "west"
         "xpos"         "20"
         "ypos"         "c130"
         "zpos"         "1"
         "wide"         "424"   [$WIN32]
         "wide"         "0"      [$X360]      // DISABLED
         "tall"         "20"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "usetitlesafe"   "1"
         "noshortcutsyntax" "1"
      }   
         
      "MoveSelectionButton"   [$X360]
      {
         "ControlName"   "Label"
         "fieldName"      "MoveSelectionButton"
         "xpos"         "65"
         "ypos"         "r100"
         "wide"         "24"
         "tall"         "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"         "GameUIButtons"
         "labelText"      "C"
      }   
      
      "MoveSelectionLabel"   [$X360]
      {
         "ControlName"   "Label"
         "fieldName"      "MoveSelectionLabel"
         "xpos"         "90"
         "ypos"         "r100"
         "wide"         "300"
         "tall"         "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "labelText"      "#L4D_Scoreboard_Select_Player"
         "textAlignment"   "west"
         "dulltext"      "0"
         "brighttext"   "0"
         "font"         "DefaultLarge"
      }
      
      "VoteKickButton"   [$X360]
      {
         "ControlName"   "Label"
         "fieldName"      "VoteKickButton"
         "xpos"         "65"
         "ypos"         "r80"
         "wide"         "24"
         "tall"         "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"         "GameUIButtons"
         "labelText"      "#GameUI_Icons_X_3DButton"
      }   
      
      "VoteKickLabel"   [$X360]
      {
         "ControlName"   "Label"
         "fieldName"      "VoteKickLabel"
         "xpos"         "90"
         "ypos"         "r80"
         "wide"         "300"
         "tall"         "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "labelText"      "#L4D_Scoreboard_Vote_Kick"
         "textAlignment"   "west"
         "dulltext"      "0"
         "brighttext"   "0"
         "font"         "DefaultLarge"
      }
      
      "GamerCardButton"   [$X360]
      {
         "ControlName"   "Label"
         "fieldName"      "GamerCardButton"
         "xpos"         "65"
         "ypos"         "r60"
         "wide"         "24"
         "tall"         "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "tabPosition"   "0"
         "PaintBackgroundType"   "0"
         "textAlignment"      "center"
         "dulltext"      "0"
         "brighttext"   "1"
         "font"         "GameUIButtons"
         "labelText"      "#GameUI_Icons_A_3DButton"
      }   
      
      "GamerCardLabel"   [$X360]
      {
         "ControlName"   "Label"
         "fieldName"      "GamerCardLabel"
         "xpos"         "90"
         "ypos"         "r60"
         "wide"         "300"
         "tall"         "24"
         "autoResize"   "0"
         "pinCorner"      "0"
         "visible"      "1"
         "enabled"      "1"
         "labelText"      "#L4D_Scoreboard_View_GamerCard"
         "textAlignment"   "west"
         "dulltext"      "0"
         "brighttext"   "0"
         "font"         "DefaultLarge"
      }
      
      "CVersusModeEmbeddedScoreboard"
      {
         "ControlName"   "CVersusModeEmbeddedScoreboard"
         "fieldName"      "VersusModeScoreboard"
         "xpos"         "15" [$WIN32]
         "xpos"         "13" [$X360]
         "ypos"         "c-228"    [$WIN32]
         "ypos"         "c-220"    [$X360]
         "wide"         "354"
         "tall"         "140"
         "visible"      "1"
         "enabled"      "1"
         "usetitlesafe"   "1"
      }
      
      "CScavengeModeEmbeddedScoreboard"
      {
         "ControlName"   "CScavengeModeEmbeddedScoreboard"
         "fieldName"      "ScavengeModeScoreboard"
         "xpos"         "15" [$WIN32]
         "xpos"         "18" [$X360]
         "ypos"         "c-215"    [$WIN32]
         "ypos"         "c-215"    [$X360]
         "wide"         "354"
         "tall"         "140"
         "visible"      "1"
         "enabled"      "1"
         "usetitlesafe"   "1"
      }
   
      "ThirdPartyServerPanel"
      {
         "ControlName"   "CThirdPartyServerPanel"
         "fieldName"      "ThirdPartyServerPanel"
         "xpos"         "r300"
         "ypos"         "15"
         "wide"         "300"
         "tall"         "130"
         "visible"      "0"      [$WIN32]
         "visible"      "0"       [$X360]
         "enabled"      "0"
      }
   }
   



-Tanshin
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

Thanks for the quick replies, guys.

Delphium, your tool sounds like a great idea (I saw the dev thread you started). I'm trying to brainstorm a method of making the necessary hex-edits to the .vpk file as easy as possible since many folks are put off by such file-hacking voodoo. Ideally a one-click modification tool with automatic updates based on game patches would be the best, but I'm not a coder and have little scripting experience so it may take me awhile to figure something out.

:onethumb slowly but surely getting there :)
I would like to finish the tool, but after perhaps can assit with working out the auto hex editing :)
FYI, I am not a coder really either, although I do dable a wee bit, I'm just a quick learner, for which I enjoy setting my self projects like this in order to teach myself. :)


In total, I would think it would be rather difficult to set the position with the click of a single button.

I have produced a perl script which I am still improving that searches for xpos values and will update all values (except any that are c or c-) with a click of a button, ignoring any elements I set into a list. :) It already works for TF2 hudlayout.res, however I am expanding this which I intend to impliment into my hud editing tool.
Essentially I need a list of elements that dont require editing to put them into an ignore list, which ill work out closer to the time of completion.

The more I work on this the more I find to edit, it really is like opening a can of worms hehe.

However of cause please dont let me deter you from producing a nice mod or 2 for us all to enjoy untill I have a more complete tool. :D
| Gigabyte X79S-UP5-WiFi Skt2011 | i7 4820k @4.4GHz Watercooled (Ivy Bridge-E) | Corsair Vengence 32GB @2133MHz 11-11-11-27 2T Quad-Channel (8x4GB) | AMD R9-Fury-X 4GB @1140/505MHz + EKWB Watercooled | 256GB Crucial MX200 SSD | 8x 1TB Samsung F3 SATA-II | Corsair 850W TX PSU | 3x Dell S2209W 22"wide TFT's (5760x1080res) | Logitech Z-5400 5.1ch speakers | Win7 Ultimate x64 |
User avatar
GeneralAdmission
Editors
Editors
Posts: 1560
Joined: 12 Sep 2007, 19:14

Re: L4D2 Center HUD fix

Post by GeneralAdmission »

@Tanshin-
Thanks for sharing the code. If you need file hosting you can always use sites like MediaFire, Rapidshare, Fileshack, etc. for most files.

Fully understand the family commitments so no worries there. :) My 24/7 job is raising a couple of very entertaining rugrats.

@Delphium-
We are of similar minds. I really enjoy tackling new challenges and can't stop myself from pursuing something if it gets my interest. Downside is that I have a goal/project list that would take 5-6 lifetimes to complete. ;)
Maxi
Posts: 23
Joined: 19 Nov 2009, 12:43

Re: L4D2 Center HUD fix

Post by Maxi »

you guys are doing some great work keep it up :)

I did want to ask how easy is it to change the horizontal resolution? I was thinking with ATI's new Bezel Compensation which might increase your resolution by 100 pixels or so, so how will this effect your guys scripts/easily changed? :P
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

@Delphium-
We are of similar minds. I really enjoy tackling new challenges and can't stop myself from pursuing something if it gets my interest. Downside is that I have a goal/project list that would take 5-6 lifetimes to complete. ;)

:D I feel that!

I did want to ask how easy is it to change the horizontal resolution? I was thinking with ATI's new Bezel Compensation which might increase your resolution by 100 pixels or so, so how will this effect your guys scripts/easily changed? :P

The script that I am wokring on will/does (its unfinished at present) take bezel compensation into account, so it should be really easy for the end user, unlike my brain that feels like its turned into a gooey soup of pink mass sloshing around in my head trying to work all this out hehe.

I have already provided some instructions which have now been updated on how folks may work out what values are needed for bezel compensation HERE.
| Gigabyte X79S-UP5-WiFi Skt2011 | i7 4820k @4.4GHz Watercooled (Ivy Bridge-E) | Corsair Vengence 32GB @2133MHz 11-11-11-27 2T Quad-Channel (8x4GB) | AMD R9-Fury-X 4GB @1140/505MHz + EKWB Watercooled | 256GB Crucial MX200 SSD | 8x 1TB Samsung F3 SATA-II | Corsair 850W TX PSU | 3x Dell S2209W 22"wide TFT's (5760x1080res) | Logitech Z-5400 5.1ch speakers | Win7 Ultimate x64 |
Tanshin
Posts: 80
Joined: 22 Jan 2010, 09:34

Re: L4D2 Center HUD fix

Post by Tanshin »

hows the progress going on the app?

I've been working a lot and only have the weekends to do anything, so I've been gaming instead of moding. :-)
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

hows the progress going on the app?

I've been working a lot and only have the weekends to do anything, so I've been gaming instead of moding. :-)

Check here for progress :)
| Gigabyte X79S-UP5-WiFi Skt2011 | i7 4820k @4.4GHz Watercooled (Ivy Bridge-E) | Corsair Vengence 32GB @2133MHz 11-11-11-27 2T Quad-Channel (8x4GB) | AMD R9-Fury-X 4GB @1140/505MHz + EKWB Watercooled | 256GB Crucial MX200 SSD | 8x 1TB Samsung F3 SATA-II | Corsair 850W TX PSU | 3x Dell S2209W 22"wide TFT's (5760x1080res) | Logitech Z-5400 5.1ch speakers | Win7 Ultimate x64 |
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

Updated pak01_dir.vpk renaming "scripts hudlayout" to "scripts mudlayout" as described here.

This fixes the problem since the "The Passing" update.
| Gigabyte X79S-UP5-WiFi Skt2011 | i7 4820k @4.4GHz Watercooled (Ivy Bridge-E) | Corsair Vengence 32GB @2133MHz 11-11-11-27 2T Quad-Channel (8x4GB) | AMD R9-Fury-X 4GB @1140/505MHz + EKWB Watercooled | 256GB Crucial MX200 SSD | 8x 1TB Samsung F3 SATA-II | Corsair 850W TX PSU | 3x Dell S2209W 22"wide TFT's (5760x1080res) | Logitech Z-5400 5.1ch speakers | Win7 Ultimate x64 |
MaxDarklighter
Posts: 140
Joined: 23 Apr 2009, 12:06

Re: L4D2 Center HUD fix

Post by MaxDarklighter »

Hmm estardey playd L4D2 with no problems. Today tried to fix my HUD.
Downloaded pak01_dir.vpk and scripts. Put it in Steamsteamappscommonleft 4 dead 2left4dead2 and next time I ran the game first I saw loading screen at only one monitor, than start menu (at only one monitor too), one sec and I am on the Desktop... Game is still runng, but I am at the Desktop. If I'm trying to "Alt+TAB" it I again saw start menu at one sec and again throwing away on the Desktop :evil:
Guys help PLZ! :(
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

So you had L4D2 wokring across 3 monitors before, and only had to fix the HUD, but when you did, the game no longer loads correctly?

I am not experincing any issues using the files provided, so can you just confirm for me which setup you are using, Eyefinity, Matrox, MView, SoftTH?
Also that the following files are in the correct locations?

SteamSteamAppscommonleft 4 dead 2left4dead2pak01_dir.vpk
SteamSteamAppscommonleft 4 dead 2left4dead2scriptshudlayout.res
SteamSteamAppscommonleft 4 dead 2left4dead2resourceuibasechat.res (if you are moving the chat interface)
| Gigabyte X79S-UP5-WiFi Skt2011 | i7 4820k @4.4GHz Watercooled (Ivy Bridge-E) | Corsair Vengence 32GB @2133MHz 11-11-11-27 2T Quad-Channel (8x4GB) | AMD R9-Fury-X 4GB @1140/505MHz + EKWB Watercooled | 256GB Crucial MX200 SSD | 8x 1TB Samsung F3 SATA-II | Corsair 850W TX PSU | 3x Dell S2209W 22"wide TFT's (5760x1080res) | Logitech Z-5400 5.1ch speakers | Win7 Ultimate x64 |
User avatar
GeneralAdmission
Editors
Editors
Posts: 1560
Joined: 12 Sep 2007, 19:14

Re: L4D2 Center HUD fix

Post by GeneralAdmission »

IIRC L4D2 just had an update in the past couple of days. Occasionally patch changes to the pak01_dir.vpk file will cause the game to fail if you attempt to use an older version hud-modded .vpk. In this case the newest official .vpk must be edited for the hud mod in order for the game to run correctly.
MaxDarklighter
Posts: 140
Joined: 23 Apr 2009, 12:06

Re: L4D2 Center HUD fix

Post by MaxDarklighter »

Yes! Tis happand just after last update! I think it was yesterday!
But the thing is that I tried to re-install it with no luck...
OK I'll try to uninstall it now and use CD (not Steam) to re-install it.

P.S.: I am Matrox user :cheers
User avatar
GeneralAdmission
Editors
Editors
Posts: 1560
Joined: 12 Sep 2007, 19:14

Re: L4D2 Center HUD fix

Post by GeneralAdmission »

Yes! Tis happand just after last update! I think it was yesterday!
But the thing is that I tried to re-install it with no luck...
OK I'll try to uninstall it now and use CD (not Steam) to re-install it.

P.S.: I am Matrox user :cheers

I don't quite understand. Are you going to reinstall l4d2? That is not necessary. What you need to do is follow the instructions here to edit the new .vpk:
http://www.widescreengamingforum.com/forum/viewtopic.php?f=57&t=17516&start=8
MaxDarklighter
Posts: 140
Joined: 23 Apr 2009, 12:06

Re: L4D2 Center HUD fix

Post by MaxDarklighter »

Hmm... guys! I reinstall L4D2 first from Steam, than from my CD... it just keep throwing me on the desktop just after loading screen!
I tried to run it on single screen - that's OK! But if using Matrox and 3x22" it keep throwing me on desktop!!! :x
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

I tried to run it on single screen - that's OK! But if using Matrox and 3x22" it keep throwing me on desktop!!! :x
Sorry, but could you please confirm if this before or after you make any moddifications to the games files?

By the sounds, it seems the game fails to run on 3 screens at all ???
Failing before even adding the HUD mod?
| Gigabyte X79S-UP5-WiFi Skt2011 | i7 4820k @4.4GHz Watercooled (Ivy Bridge-E) | Corsair Vengence 32GB @2133MHz 11-11-11-27 2T Quad-Channel (8x4GB) | AMD R9-Fury-X 4GB @1140/505MHz + EKWB Watercooled | 256GB Crucial MX200 SSD | 8x 1TB Samsung F3 SATA-II | Corsair 850W TX PSU | 3x Dell S2209W 22"wide TFT's (5760x1080res) | Logitech Z-5400 5.1ch speakers | Win7 Ultimate x64 |
MaxDarklighter
Posts: 140
Joined: 23 Apr 2009, 12:06

Re: L4D2 Center HUD fix

Post by MaxDarklighter »

By the sounds, it seems the game fails to run on 3 screens at all ???
Failing before even adding the HUD mod?


Yes u'r wright! Failing before even adding the HUD mod!
But just two days ago I was playing it with no problem on 3x monitors!

I really don't know what to do and what is the core of the problem... :( May be after I add HUD fix something change in register? And now when I'm trying to re-install the game register stays wrong?

(Sorry for my english. Hope you'll understand)
MaxDarklighter
Posts: 140
Joined: 23 Apr 2009, 12:06

Re: L4D2 Center HUD fix

Post by MaxDarklighter »

May be there somewhere in game data .ini file where I can change resolution? I think so because of loading screen - it showing on one monitor instead of 3x...
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 6 guests