Widescreen Gaming Forum
http://www.wsgf.org/phpBB3/

L4D2 Center HUD fix
http://www.wsgf.org/phpBB3/viewtopic.php?f=68&t=18490
Page 11 of 20

Author:  Tanshin [ 22 Feb 2010, 23:48 ]
Post subject:  Re: L4D2 Center HUD fix

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

Center screen score board!!





-Tanshin

Author:  Delphium [ 23 Feb 2010, 09:23 ]
Post subject:  Re: L4D2 Center HUD fix

Can you share with us your .vpk please?

Savs me and others having to duplicate work and thus concentrate our time on other improvements.

Author:  GeneralAdmission [ 23 Feb 2010, 20:31 ]
Post subject:  Re: L4D2 Center HUD fix

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.

Author:  Tanshin [ 23 Feb 2010, 21:40 ]
Post subject:  Re: L4D2 Center HUD fix

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:
"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

Author:  Delphium [ 24 Feb 2010, 00:50 ]
Post subject:  Re: L4D2 Center HUD fix

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

Author:  GeneralAdmission [ 24 Feb 2010, 01:15 ]
Post subject:  Re: L4D2 Center HUD fix

@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. ;)

Author:  Maxi [ 24 Feb 2010, 12:48 ]
Post subject:  Re: L4D2 Center HUD fix

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

Author:  Delphium [ 24 Feb 2010, 14:28 ]
Post subject:  Re: L4D2 Center HUD fix

@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.

Author:  Tanshin [ 07 Mar 2010, 18:28 ]
Post subject:  Re: L4D2 Center HUD fix

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. :-)

Author:  Delphium [ 07 Mar 2010, 19:31 ]
Post subject:  Re: L4D2 Center HUD fix

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 :)

Page 11 of 20 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/