L4D2 Center HUD fix

Discussions about getting games to run in a Multi-Mon setup.
Post Reply
GitDat
Posts: 131
Joined: 09 Feb 2010, 20:11

Re: L4D2 Center HUD fix

Post by GitDat »

Not sure on the differences but glad it works. :)


It fixed my laggy Oblivion too :bowdown Now to find a centered HUD for it, hehe.
Cooler Master Cosmos II | ASUS X99-Deluxe | Thermaltake Water 3.0 Extreme S | 5930k @ 4.5GHz | 32GB G.Skill Ripjaws V 3200MHz | SLI GTX 1080 Ti's | Samsung 960 Pro NVMe M.2 SSD | Corsair AX1500i | 3DMark Fire Strike Ultra - 13,780 | Windows 10 Pro 64-bit | Nvidia Surround® 3 x BenQ XL2735 | Samsung CHG90 Auxiliary Monitor
GitDat
Posts: 131
Joined: 09 Feb 2010, 20:11

Re: L4D2 Center HUD fix

Post by GitDat »

Hi, I am new to these forums, been reading about a week now since I found this place.
I have long been into multi-monitor setups and trying to get various games working across them, untill I recently discovered softTH which came to yeild much better results, for which I then stumbled across WSGF :D in search for some HUD fixes.

So having read the various comments mainly by Downtown I have managed to put together a res pack for 3x1920x1080 (5760x1080).
This is my first attempt and thought I would share it with you folks, the vast majoprity of HUD content is now centered including "Delphium killed the Hunter" "Delphium was protected by Nick". The scores (pressing tab) are still on the left, as is the main game menu although starting a game and lobby area is centered.


3x1920x1080 (5760x1080) working as of 27th December 2009.


http://empire.ispeeds.net/~delphi/wsgf/l4d2/left4dead2-5760x1080_27_12_2009.rar
This is a steady host however please feel free to mirror it on WSGF.


I'm getting not HUD at all when I try this :(
Cooler Master Cosmos II | ASUS X99-Deluxe | Thermaltake Water 3.0 Extreme S | 5930k @ 4.5GHz | 32GB G.Skill Ripjaws V 3200MHz | SLI GTX 1080 Ti's | Samsung 960 Pro NVMe M.2 SSD | Corsair AX1500i | 3DMark Fire Strike Ultra - 13,780 | Windows 10 Pro 64-bit | Nvidia Surround® 3 x BenQ XL2735 | Samsung CHG90 Auxiliary Monitor
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

Try the updated pak01 file.

EDIT: file recived from Truckchase! and hosted here... http://empire.ispeeds.net/~delphi/wsgf/l4d2/pak01_dir.7z
| 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 |
Leapo
Posts: 144
Joined: 19 Apr 2008, 22:46

Re: L4D2 Center HUD fix

Post by Leapo »

Not working right for me. Things are appearing behind my bezels, and my health bar looks like it's behind Nick's.

What do I have to edit to fix this?

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

Re: L4D2 Center HUD fix

Post by Delphium »

I suspect that it is due to you using a non native res by expanding the res to include your bezels.
It could also be due to updates in the game messing with the fixes.
Can you try again but without bezel management to confirm this?
| 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 |
Leapo
Posts: 144
Joined: 19 Apr 2008, 22:46

Re: L4D2 Center HUD fix

Post by Leapo »

Without bezel management (5040x1050) most of the stuff lines up, but my health bar is still behind Nick's.

Any way to fix this to allow for bezel management? I'm using 128 pixel bezels (total resolution 5296x1050).
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

EDIT: I have created an updated step by step list of instructions here.


You will likely need to make your own custom HUD based on the info provided below or on the 1st page.

You will need to edit the hudlayout.res file, look at the comparative here between 5760x1080 and 5040x1050.
(note, I used 860 instead of 853 to increment the values by in my mod, as this was prior to working out the exact formula.)

Bear in mind the following equation to determine what value you need to increse the xpos values by.

For a ratio of 48:9 the xpos values are incremented by 853.
480*16/9=853.
For a ratio of 48:10 I incremented the xpos values by 768.
480*16/10=768.
For a ratio of 15:4 I incremented the xpos values by 600.
480*5/4=600.
For a ratio of 12:3 I incremented the xpos values by 640.
480*4/3=640.

So for a resolution of 5296x1050 (5040x1050 res with 256px bezel compensation) visit HERE for a calculator to determine how much to increment by.



There for you need to increment the xpos values by 806.

Try these out.
HudHDRDemo = "xpos" "806"
HudWeaponSelection = "xpos" "r904"
HudDeathNotice = "xpos" "806"
CHudSurvivorTeamStatus = "xpos" "r891"
CHudLocalPlayerDisplay = "xpos" "r1566"
CHudTeamDisplay = "xpos" "811"
CItemPickupPanel = "xpos" "806"
HudPZDamageRecord = "xpos" "806"
StatsCrawl = "xpos" "806"
CHudZombieTeamDisplay = "xpos" "806"

I hope this info gives a clear understanding of how to make a custom res centered 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 |
User avatar
GeneralAdmission
Editors
Editors
Posts: 1560
Joined: 12 Sep 2007, 19:14

Re: L4D2 Center HUD fix

Post by GeneralAdmission »

Added a note and link to the first post for the custom calculation info. Thanks Delphium.

Also, Valve support was a dead end re: VAC. They actually said I need to inquire on the Steam forums regarding my question. :?
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

Added a note and link to the first post for the custom calculation info. Thanks Delphium.

Welcome :twothumb. I have also started work on a tool to automate all this for various source engine games which is currently a work in progress, I have posted some info about it here and shall post updates as and when.

Also, Valve support was a dead end re: VAC. They actually said I need to inquire on the Steam forums regarding my question. :?

Shame, although having used these HUD mods for the past few months for both L4D2 and even TF2 servers I have had very little issue with VAC, as had been said before, I think it can be considered just like any other HUD mod that you can get for the variours source engine games, which again have no issues with VAC. I think we are safe... Touch wood :P
| 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 »

I have a question that maybe someone can answer for me. when I extract the dir, i see mudlayout.res. Is this the same file as hudlayout.res? if so, how does renaming it set the proper settings but having it as mudlayout.res does not. also, how can I edit basechat.res, nothing seems to take?

Here is my code for hudlayout.res for resolution 6020x1080 w/ bezel management for Eyefinity.

Code: Select all



   "Resource/HudLayout.res"
   {
      overview
      {
         "fieldname"            "overview"
         "visible"            "1"
         "enabled"            "1"
         "xpos"               "0"
         "ypos"               "480"
         "wide"               "0"
         "tall"               "0"
      }
   
      HudCommentary
      {
         "fieldName" "HudCommentary"
         "xpos"   "c-190"
         "ypos"   "350"
         "wide"   "380"
         "tall"  "40"
         "visible" "0"
         "enabled" "1"
         
         "alpha"      "0"
         
         "PaintBackgroundType"   "2"
         
         "bar_xpos"      "650"
         "bar_ypos"      "20"
         "bar_height"   "8"
         "bar_width"      "320"
         "speaker_xpos"   "50"
         "speaker_ypos"   "8"
         "count_xpos_from_right"   "10"   // Counts from the right side
         "count_ypos"   "8"
         
         "icon_texture"   "vgui/hud/icon_commentary"
         "icon_xpos"      "600"
         "icon_ypos"      "0"      
         "icon_width"   "40"
         "icon_height"   "40"
      }
      
      HudHDRDemo
      {
         "fieldName" "HudHDRDemo"
         "xpos"   "910"
         "ypos"   "0"
         "wide"   "640"
         "tall"  "480"
         "visible" "0"
         "enabled" "1"
         
         "Alpha"   "255"
         "PaintBackgroundType"   "2"
         
         "BorderColor"   "0 0 0 255"
         "BorderLeft"   "16"
         "BorderRight"   "16"
         "BorderTop"      "16"
         "BorderBottom"   "64"
         "BorderCenter"   "0"
         
         "TextColor"      "255 255 255 255"
         "LeftTitleY"   "422"
         "RightTitleY"   "422"
      }
   
      HudSurvivalTimer
      {
         "fieldName" "HudSurvivalTimer"
         "visible" "1"
         "enabled" "1"
         "xpos"      "c-220"
         "ypos"      "-10"   [$WIN32]
         "ypos"      "-2"   [$X360]
         "zpos"      "0"
         "wide"    "440"
         "tall"    "100"
   
         "PaintBackground"   "0"
         
         "NumberFont"      "HudNumbers"
      }
   
      HudScavengeTimer
      {
         "fieldName" "HudScavengeTimer"
         "visible" "1"
         "enabled" "1"
         "xpos"      "c-220"
         "ypos"      "15"   [$WIN32]
         "ypos"      "5"   [$X360]
         "zpos"      "0"
         "wide"    "440"
         "tall"    "100"
   
         "PaintBackground"   "0"
         
         "NumberFont"      "HudNumbers"
      }
   
      HudScavengeProgress
      {
         "fieldName" "HudScavengeProgress"
         "visible" "1"
         "enabled" "1"
         "xpos"      "c-42"
         "ypos"      "23"
         "zpos"      "0"
         "wide"    "85"
         "tall"    "43"
   
         "PaintBackground"   "0"
         
         "NumberFont"      "HudNumbers"
      }
   
      TargetID
      {
         "fieldName" "TargetID"
         "visible" "1"
         "enabled" "1"
         "xpos"      "c-320"
         "ypos"      "c-240"
         "wide"    "320"
         "tall"    "240"
      }
   
      PlayerLabel
      {
         "fieldName" "PlayerLabel"
         "visible" "1"
         "enabled" "1"
         "xpos"      "c-320"
         "ypos"      "c-240"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudArmor
      {
         "fieldName"      "HudArmor"
         "xpos"   "924"
         "ypos"   "440"
         "wide"   "132"
         "tall"  "40"
         "visible" "1"
         "enabled" "1"
   
         "PaintBackgroundType"   "2"
         
         "icon_xpos"   "0"
         "icon_ypos"   "2"
         "digit_xpos" "34"
         "digit_ypos" "2"
      }
      
      HudSuit
      {
         "fieldName"      "HudSuit"
         "xpos"   "908"
         "ypos"   "432"
         "wide"   "108"
         "tall"  "36"
         "visible" "1"
         "enabled" "1"
   
         "PaintBackgroundType"   "2"
   
         
         "text_xpos" "8"
         "text_ypos" "20"
         "digit_xpos" "50"
         "digit_ypos" "2"
      }
   
      HudProgressBar
      {
         "fieldName" "HudProgressBar"
         "xpos"   "c-114"
         "ypos"   "c10"
         "if_split_screen_vertical"
         {
            "ypos"   "c-10"
         }
         "wide"   "300"
         "tall"  "80"
         "visible" "1"
         "enabled" "1"
         "PaintBackgroundType"   "0" // No corners
         "PaintBackground"   "0"
      }
   
      HudRoundTimer
      {
         "fieldName" "HudRoundTimer"
         "xpos"   "c-20"
         "ypos"   "440"
         "wide"   "120"
         "tall"  "40"
         "visible" "1"
         "enabled" "1"
         
         "PaintBackgroundType"   "2"
   
         "FlashColor" "HudIcon_Red"      
   
         "icon_xpos"      "0"
         "icon_ypos"      "2"
         "digit_xpos"   "34"
         "digit_ypos"   "2"
      }
   
      HudAccount
      {
         "fieldName" "HudAccount"
         "xpos"   "r902"
         "ypos"   "374"
         "wide"   "116"
         "tall"  "80"
         "visible" "1"
         "enabled" "1"
   
         "PaintBackgroundType"   "2"
   
         "icon_xpos"   "0"
         "icon_ypos"   "36"
         "digit_xpos" "104"
         "digit_ypos" "36"
         "icon2_xpos"   "0"
         "icon2_ypos"   "2"
         "digit2_xpos"   "104"
         "digit2_ypos"   "2"
      }
   
      HudShoppingCart
      {
         "fieldName" "HudShoppingCart"
         "xpos"   "784"
         "ypos"   "200"
         "wide"   "40"
         "tall"  "40"
         "visible" "1"
         "enabled" "1"
   
         "PaintBackgroundType"   "2"
         "IconColor"         "HudIcon_Green"
   
      }
   
      HudC4
      {
         "fieldName" "HudC4"
         "xpos"   "784"
         "ypos"    "248"
         "wide"   "40"
         "tall"  "40"
         "visible" "1"
         "enabled" "1"
      
   
         "PaintBackgroundType"   "2"
         "IconColor"         "HudIcon_Green"
         "FlashColor"      "HudIcon_Red"
   
      }
   
      HudDefuser
      {
         "fieldName" "HudDefuser"
         "xpos"   "784"
         "ypos"    "248"
         "wide"   "40"
         "tall"  "40"
         "visible" "1"
         "enabled" "1"
   
         "PaintBackgroundType"   "2"
   
         "IconColor"            "HudIcon_Green"
   
      }
   
      HudHostageRescueZone
      {
         "fieldName" "HudHostageRescueZone"
         "xpos"   "784"
         "ypos"    "248"
         "wide"   "40"
         "tall"  "40"
         "visible" "1"
         "enabled" "1"
      
   
         "PaintBackgroundType"   "2"
         "IconColor"         "HudIcon_Green"
         "FlashColor"      "HudIcon_Red"
      }
   
      HudScenarioIcon
      {
         "fieldName" "HudScenarioIcon"
         "xpos"   "c110"
         "ypos"   "443"
         "wide"   "40"
         "tall"  "44"
         "visible" "1"
         "enabled" "1"
   
         "PaintBackgroundType"   "2"
   
         "IconColor"            "Hostage_Yellow"   
      }
   
      HudFlashlight
      {
         "fieldName" "HudFlashlight"
         "visible" "1"
         "enabled" "1"
         "xpos"   "784"
         "ypos"   "370"
         "wide"   "102"
         "tall"   "20"
         
         "text_xpos" "8"
         "text_ypos" "6"
         "TextColor"   "255 170 0 220"
   
         "PaintBackgroundType"   "2"
      }
      
      HudDamageIndicator
      {
         "fieldName" "HudDamageIndicator"
         "visible" "1"
         "enabled" "1"
   
         // TF Damage Indicator vars
         "MinimumWidth" "40"
         "MaximumWidth" "80"
         "StartRadius" "120"
         "EndRadius" "80"
         "MinimumHeight" "30"
         "MaximumHeight" "60"
         "MinimumTime" "2"
   
         // CS Damage Indicator vars
         "DmgColorLeft" "255 0 0 0"
         "DmgColorRight" "255 0 0 0"
         
         "dmg_xpos" "30"
         "dmg_ypos" "100"
         "dmg_wide" "36"
         "dmg_tall1" "240"
         "dmg_tall2" "200"
      }
   
      HudZoom
      {
         "fieldName" "HudZoom"
         "visible" "1"
         "enabled" "1"
         "Circle1Radius" "66"
         "Circle2Radius"   "74"
         "DashGap"   "16"
         "DashHeight" "4"
         "BorderThickness" "88"
      }
   
      HudWeaponSelection
      {
         "fieldName" "HudWeaponSelection"
         "xpos"   "r1010"
         "ypos"   "c-90"
         "wide"   "100"
         "tall"   "175"
         "visible" "1"
         "enabled" "1"
         "usetitlesafe" "1"
         
         "if_split_screen_horizontal"
         {
            "ypos"   "0"
         }
   
         "LargeBoxWide" "150"
         "LargeBoxTall" "32"
         "SmallBoxWide" "150"
         "SmallBoxTall" "24"
         "BoxGap" "1"
         "BoxDirection" "0"   // 0 is up, 1 is down, 2 is left, 3 is right
   
         "SelectionNumberXPos" "4"
         "SelectionNumberYPos" "4"
         "SelectionGrowTime"   "0.4"
   
         "Ammo1XPos"   "55"
         "Ammo1YPos"   "4"
   
         "Ammo2XPos"   "58"
         "Ammo2YPos"   "5"
   
         "IconXPos" "-55"   // negative numbers mean right side
         "IconYPos" "-5"
         "IconYPos_lodef" "2"
   
         "TextYPos" "68"   
         "TextColor" "SelectionTextFg"
         "MaxSlots"   "5"
         "PlaySelectSounds"   "0"
            
         "PrimaryWeaponsYPos"   "10"   
         "PrimaryWeaponBoxWide"   "53"
         "PrimaryWeaponBoxTall"   "28"
         
         "MeleeWeaponX"      "2"
         "MeleeWeaponY"      "0"
         "MeleeWeaponWide"   "49"
         "MeleeWeaponTall"   "22"   
         
         "ChainsawX"         "2"
         "ChainsawY"         "2"
         "ChainsawWide"      "41"
         "ChainsawTall"      "19"   
         "ChainsawBarX"      "45"
         "ChainsawBarY"      "2"
         "ChainsawBarWide"   "5"
         "ChainsawBarTall"   "19"      
               
         "PrimaryAmmoXPos"   "22"
         "PrimaryAmmoYPos"   "0"
         "ReserveAmmoXPos"   "22"
         "ReserveAmmoYPos"   "14"   
         
         "AmmoIconXPos"   "20"
         "AmmoIconYPos"   "3"
         "AmmoIconSize"   "22"   // wide and tall
         
         "SpecialAmmoXPos"   "29"
         "SpecialAmmoYPos"   "4"
               
         "PrimaryWeaponsYPos"   "10"
         "PrimaryWeaponWide"      "60"
         "PrimaryWeaponTall"      "20"
               
         "PrimaryBindingYPos"   "38"
         
         "PistolBoxWide"   "53"
         "PistolBoxTall"   "24"
               
         "RightSideIndent"   "10"
         "IconSize"      "24"   // square weapon icon sizes         
         
         "PrimaryAmmoFont"      "HudAmmo"
         "ReserveAmmoFont"      "HudAmmoSmall"      
         "PistolAmmoFont"      "HudAmmo"
         
         "SelectedItemColor"            "142 214 57 255"
         "UnselectedItemColor"         "White"
         "SelectedReserveAmmoColor"      "93 142 32 255"
         "UnselectedReserveAmmoColor"   "169 169 169 255"
         
         "InactiveItemColor"      "90 90 90 255"      [$WIN32]
         "InactiveItemColor"      "55 55 55 255"      [$X360]
         
         "SelectedScale"   "1.0"   // scale selected boxes by this much
         
         "SpecialAmmoXPos"   "18"
         "SpecialAmmoYPos"   "6"
      }
   
      HudCrosshair
      {
         "fieldName" "HudCrosshair"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
   
         "ability_size"   "17"
         "ability_surpressed_color" "127 127 127 255"
         "ability_charging_color" "127 127 127 255"
         "ability_ready_color" "255 255 255 255"
      }
   
      HudDeathNotice
      {
         "fieldName" "HudDeathNotice"
         "visible" "1"
         "enabled" "1"
         "xpos"    "910"
         "ypos"    "0"
         "wide"    "f0"
         "tall"    "480"
   
         "MaxDeathNotices" "6"
         "IconSize"      "16"
         "TextFont"            "Default"
      }
   
      HudVehicle
      {
         "fieldName" "HudVehicle"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
   
      CVProfPanel
      {
         "fieldName" "CVProfPanel"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      ScorePanel
      {
         "fieldName" "ScorePanel"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudTrain
      {
         "fieldName" "HudTrain"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudMOTD
      {
         "fieldName" "HudMOTD"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudMessage
      {
         "fieldName" "HudMessage"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudMenu
      {
         "fieldName" "HudMenu"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
         "zpos" "1"
   
         "TextFont"            "Default"
         "ItemFont"            "Default"
         "ItemFontPulsing"      "Default"
      }
   
      HudCloseCaption
      {
         "fieldName" "HudCloseCaption"
         "visible"   "1"
         "enabled"   "1"
         "xpos"      "c-150"
         "ypos"      "r220"   [$WIN32]
         "ypos"      "r230"   [$X360]
         "wide"      "300"
         "tall"      "135"
         "usetitlesafe"   "1"
         
         "if_split_screen_vertical"
         {
            "ypos"      "r160"
            "tall"      "108"
         }
         
         "if_split_screen_horizontal"
         {
            "xpos"      "0"
            "ypos"      "r220"
            "wide"      "275"
            "tall"      "108"
         }
   
         "BgAlpha"   "128"
   
         "GrowTime"      "0.25"
         "ItemHiddenTime"   "0.2"  // Nearly same as grow time so that the item doesn't start to show until growth is finished
         "ItemFadeInTime"   "0.15"   // Once ItemHiddenTime is finished, takes this much longer to fade in
         "ItemFadeOutTime"   "0.3"
         "topoffset"      "0"
      }
   
      HudHistoryResource
      {
         "fieldName" "HudHistoryResource"
         "visible" "1"
         "enabled" "1"
         "xpos"    "r808"
         "wide"    "640"
         "tall"    "330"
         "history_gap" "55"
      }
   
      HudGeiger
      {
         "fieldName" "HudGeiger"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HUDQuickInfo
      {
         "fieldName" "HUDQuickInfo"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudWeapon
      {
         "fieldName" "HudWeapon"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
      HudAnimationInfo
      {
         "fieldName" "HudAnimationInfo"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
      
      "CHudVote"
      {
         "fieldName"      "CHudVote"
         "xpos"         "778"         
         "ypos"         "c-80"
         "wide"         "210" [$ENGLISH]
         "wide"         "290" [!$ENGLISH]
         "tall"         "200"
         "visible"      "1"
         "enabled"      "1"
         "bgcolor_override"   "0 0 0 0"
         "PaintBackgroundType"   "0" // rounded corners
         "usetitlesafe"   "1"
      }
      
      "CHudAbilityTimer"
      {
         "ControlName"   "CHudAbilityTimer"
         "fieldName"      "CHudAbilityTimer"
         "xpos"         "r840"
         "ypos"         "r120"
         "wide"         "80"
         "tall"         "70"
         "visible"      "1"
         "enabled"      "1"
         "ability_surpressed_color" "127 127 127 255"
         "ability_charging_color" "127 127 127 255"
         "ability_ready_color" "255 255 255 255"
         "usetitlesafe"   "1"
         
           "if_split_screen_left"
         {
            "xpos"   "-8"
         }
      }
      "HudZombieHealth"
      {
         "fieldName"      "HudZombieHealth"
         "xpos"         "r1155"
         "ypos"         "r100"
         "wide"         "400"
         "tall"         "100"
         "visible"      "1"
         "enabled"      "1"
         "usetitlesafe"   "1"   // 2
                 
           "if_split_screen_left"
         {
            "xpos"   "1"
         }
      }
      CBudgetPanel
      {
         "fieldName" "CBudgetPanel"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
      CTextureBudgetPanel
      {
         "fieldName" "CTextureBudgetPanel"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudPredictionDump
      {
         "fieldName" "HudPredictionDump"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudScope
      {
         "fieldName" "HudZoom"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      HudVoiceSelfStatus
      {
         "fieldName" "HudVoiceSelfStatus"
         "visible" "1"
         "enabled" "1"
         "xpos" "r900"
         "ypos" "r78"
         "wide" "24"
         "tall" "24"
         
         "usetitlesafe"   "1"
         
         "if_split_screen_left"
         {
            "xpos"   "100"
         }
      }
   
      HudVoiceStatus
      {
         "fieldName" "HudVoiceStatus"
         "visible" "1"
         "enabled" "1"
         "xpos" "r898"
         "ypos" "0"
         "wide" "150"
         "tall" "290"
   
         "item_tall"   "15"
         "item_wide"   "120"
   
         "item_spacing" "2"
   
         "icon_ypos"   "0"
         "icon_xpos"   "0"
         "icon_tall"   "16"
         "icon_wide"   "16"
   
         "text_xpos"   "18"
         "text_font"   "DefaultDropShadow"
         
         "inverted"   "0"   // draws text in player color, no background
      }
   
      HudFlashbang
      {
      }
      
      HudHintDisplay   [$WIN32]
      {
         "fieldName"   "HudHintDisplay"
         "visible"   "0"
         "enabled" "1"
         "xpos"   "c-200"
         "ypos"   "294"
         "wide"   "400"
         "tall"   "50"
         "text_xpos"   "8"
         "text_ypos"   "8"
         "center_x"   "0"   // center text horizontally
         "center_y"   "-1"   // align text on the bottom
      }
   
      HudHintKeyDisplay
      {
         "fieldName"   "HudHintKeyDisplay"
         "visible"   "0"
         "enabled"    "1"
         "xpos"      "r888"
         "ypos"      "r340"
         "wide"      "10"
         "tall"      "200"
         "text_xpos"   "8"
         "text_ypos"   "8"
         "text_xgap"   "8"
         "text_ygap"   "8"
         "TextColor"   "255 170 0 220"
   
         "PaintBackgroundType"   "2"
      }
   
      HudTerritory
      {
         "fieldName" "HudTerritory"
         "visible" "1"
         "enabled" "1"
         "xpos"   "1008"
             "ypos"   "432"
             "wide" "240"
             "tall" "48"
      }
   
      TerritorySCore
      {
          "fieldName" "TerritoryScore"
          "visible" "0"
          "enabled" "0"
          "xpos"   "1008"
          "ypos"   "450"
          "wide" "200"
          "tall" "200"
          "text_xpos" "8"
          "text_ypos" "4"
      }
   
   
      "HudChat"
      {
         // BaseChat.res overrides many of these values - make your edits there
         
         "ControlName"      "EditablePanel"
         "fieldName"       "HudChat"
         "visible"       "1"
         "enabled"       "1"
         "xpos"         "910"
         "ypos"         "275"
         "wide"          "320"
         "tall"          "120"
         "PaintBackgroundType"   "2"
         "usetitlesafe"   "1"
      }
   
      // TERROR:
      HudMessagePanel   // HudMessage is already taken :P
      {
         "fieldName"   "HudMessagePanel"
         "visible"   "0"
         "enabled" "1"
         "xpos"   "888"
         "ypos"   "r235"
         "wide"   "400"
         "tall"   "180"
         "PaintBackgroundType"   "2"
         "text_xpos"   "4"
         "text_ypos"   "4"
         "text_spacing"   "1"
      }
   
      HudBlood
      {
         "fieldName" "HudBlood"
         "visible" "1"
         "enabled" "1"
         "wide"    "640"
         "tall"    "480"
      }
   
      "CHudSurvivorTeamStatus"
      {
         "ControlName"      "CHudSurvivorTeamStatus"
         "fieldName"      "CHudSurvivorTeamStatus"
         "xpos"         "r910"
         "ypos"         "120"
         "wide"         "65"
         "tall"         "5"
         "visible"      "1"
         "enabled"      "1"
         "PaintBackgroundType"   "2"
      }
      
      CHudLocalPlayerDisplay
      {
         "fieldName" "CHudLocalPlayerDisplay"
         "visible" "1"
         "enabled" "1"
         
         "usetitlesafe"   "1"
   
         "xpos"      "r1070"
         "ypos"      "r91"
         "wide"      "140"
         "tall"      "300"
         
         "if_split_screen_left"
         {
            "xpos"   "0"
         }
         
         "if_split_screen_top"
         {
            "ypos"   "r90"
         }
      }
   
      CHudTeamDisplay
      {
         "fieldName" "CHudTeamDisplay"
         "visible" "1"
         "enabled" "1"
         
         "usetitlesafe"   "1"
   
         "xpos"      "910"
         "ypos"      "r73"
         "wide"      "f0"
         "tall"      "100"
         
         "if_split_screen_horizontal"
         {
            "ypos"   "c-59"      
         }
         
         "if_split_screen_vertical"
         {
            "xpos"         "c-300"   
            "wide"         "600"
            "tall"         "100"
            "usetitlesafe"   "1"
         }
      }
   
      HudFinaleMeter
      {
         "fieldName" "HudFinaleMeter"
         "visible" "1"
         "enabled" "1"
         "xpos"   "c-100"
         "ypos"   "12"
         "wide"    "200"
         "tall"    "20"
         "PaintBackgroundType"   "2" // rounded corners
      }
   
      HudFrustrationMeter
      {
         "fieldName"            "HudFrustrationMeter"
         "xpos"               "778"
         "ypos"               "c0"
         "wide"               "300"
         "tall"               "84"
         "visible"            "1"
         "enabled"            "1"
         "PaintBackgroundType"   "0"
         "usetitlesafe"         "2"
      }
      
      HudInfectedVOIP
      {
         "fieldName"            "HudInfectedVOIP"
         "xpos"               "r898"
         "ypos"               "c100"
         "wide"               "120"
         "tall"               "84"
         "visible"            "1"
         "enabled"            "1"
         "PaintBackgroundType"   "0"
         "usetitlesafe"         "2"
      }
   
      // Tank approaching / Too far from Survivors
      HudZombiePanel
      {
         "fieldName" "HudZombiePanel"
         "visible" "1"
         "enabled" "1"
         "xpos"         "c-190"
         "ypos"         "c10"
         "wide"         "400"
         "tall"         "155"
         //"PaintBackgroundType"   "2"
         
         "if_split_screen_horizontal"
          {
             "ypos"   "c-45"         
           }
           
           "if_split_screen_left"
         {
            "xpos"   "c-145"
         }
         
         "if_split_screen_right"
         {
            "xpos"   "c-175"
         }
      }
   
       HudGhostPanel
      {
         "fieldName"      "HudGhostPanel"
         "visible"      "1"
         "enabled"      "1"
         "xpos"         "c-180"
         "ypos"         "c10"
         "wide"         "400"
         "tall"         "155"
         "WhiteText"      "192 192 192 255"
         "RedText"      "246 5 5 255"
         "padding"      "4"
         
          "if_split_screen_horizontal"
          {
            "ypos"   "c-45"         
           }
           
           "if_split_screen_left"
         {
            "xpos"   "c-145"
         }
         
         "if_split_screen_right"
         {
            "xpos"   "c-205"
         }
         
         "if_split_screen_top"   [$X360]
         {
            "ypos"   "c-70"
         }
      }
   
      HudCredits
      {
         "fieldName" "HudCredits"
         "visible" "1"
         "enabled" "1"
         "xpos"      "c-270"
         "ypos"      "c-190"
         "wide"    "540"
         "tall"    "380"
      }
   
      HudAnnouncement
      {
         "fieldName" "HudAnnouncement"
         "xpos"   "c-150"
         "ypos"   "300"
         "wide"   "300"
         "tall"  "15"
         "visible" "0"
         "enabled" "1"
         "PaintBackgroundType"   "2"
      }
   
      CHudTeamMateInPerilNotice
      {
         "fieldName" "CHudTeamMateInPerilNotice"
         "ypos"   "50"
         "visible" "1"
         "enabled" "1"
      }
   
      HudIntensityGraph
      {
         "fieldName" "HudIntensityGraph"
         "xpos"   "r843"
         "ypos"   "190"
         "wide"   "70"
         "tall"  "100"
         "visible" "1"
         "enabled" "1"
         "PaintBackgroundType"   "2"
      }
      
      HudLeavingAreaWarning
      {
         "fieldName" "HudLeavingAreaWarning"
         "xpos"   "778"
         "ypos"   "c26"
         "wide"   "200"
         "tall"  "14"
         "visible" "1"
         "enabled" "1"
         "PaintBackgroundType"   "2"
         "usetitlesafe"   "2"
      }
      
      CItemPickupPanel
      {
         "fieldName" "CItemPickupPanel"
         "xpos"   "910"
         "ypos"   "0"
         "wide"   "f0"
         "tall"  "f0"
         "visible" "1"
         "enabled" "1"
         "PaintBackgroundType"   "2"
         
         "usetitlesafe"   "0"
      }
      
      HudPZDamageRecord
      {
         "fieldName" "HudPZDamageRecord"
         "xpos"   "910"         
         "ypos"   "170"         
         "wide"   "f0"
         "tall"  "75"
         "visible" "1"
         "enabled" "1"
         "PaintBackgroundType"   "2"
         "usetitlesafe" "1"
         
         "label_textalign"      "west"
         
         "if_split_screen_horizontal"
          {
            "ypos"   "55"
            "label_textalign"      "west"
           }
           
           "if_split_screen_vertical"
          {
            "ypos"   "55"
            "label_textalign"      "center"
           }
      }
      
      StatsCrawl
      {
         "fieldName" "StatsCrawl"
         "visible" "1"
         "enabled" "1"
         
         "xpos"   "910"         
         "ypos"   "0"         
         "wide"   "f0"
         "tall"  "f0"
         
         "vote_bot_inset_x" "150"   [$X360]
         "vote_bot_inset_y" "75"      [$X360]
   
         "skip_legend_inset_x"   "70"   [$X360]
         "skip_legend_inset_y"   "55"   [$X360]
         
         "vote_bot_inset_x" "90"      [$WIN32]
         "vote_bot_inset_y" "45"      [$WIN32]
         
         "skip_legend_inset_x"   "10"   [$WIN32]
         "skip_legend_inset_y"   "25"   [$WIN32]
         
         "SkipLabelFont"   "DefaultLarge"
         "ButtonFont"   "GameUIButtons"
   
         "StatsCrawlFont"   "OuttroStatsCrawl"
         "StatsCrawlUnderlineFont" "OuttroStatsCrawlUnderline"
   
         "CreditsCrawlFont"   "Credits"
         
         "votes"
         {
            "box_size"      "16"
            "spacer"      "4"
            "box_inset"      "1"
         }
      }
      
      PZEndGamePanel
      {
         "fieldName" "PZEndGamePanel"
         "visible" "1"
         "enabled" "1"
   
         "xpos"   "c-177"
         "ypos"   "c10"
         "wide"   "354"
         "tall"   "200"
      }
      
      CHudZombieTeamDisplay
      {
         "fieldName" "CHudZombieTeamDisplay"
         "visible" "1"
         "enabled" "1"
         
         "usetitlesafe"   "1"
         "xpos"      "910"
         "ypos"      "r75"
         "wide"      "f0"
         "tall"      "100"
         
         // vert:
         //"xpos"      "r100"
         //"ypos"      "20"
         //"wide"      "100"
         //"tall"      "460"
         
         "VertPanelSpacing"   "45"
         "HorizPanelSpacing"   "140"
         
         "if_split_screen_horizontal"
         {
            "ypos"   "c-59"      
         }
         
         "if_split_screen_vertical"
         {
            "xpos"   "c-140"
         }
      }
   }
   


I'm trying to move the chat to center monitor.




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

Re: L4D2 Center HUD fix

Post by Delphium »

I have a question that maybe someone can answer for me. when I extract the dir, i see mudlayout.res. Is this the same file as hudlayout.res? if so, how does renaming it set the proper settings but having it as mudlayout.res does not.
-Tanshin

From what I have seen it is the same file when doing a comparison, I am unsure why it is called mudlayout however.

I'm trying to move the chat to center monitor.

-Tanshin

I have been searching and trying to do this also to no avail :(.
| 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 »

About the filenames and such...take a look at my fourth or fifth post on the first page of this thread for an explanation of how the game "sees" files. some trickery is needed to get the mod to work. apply the same procedure to basechat.res and it should function the same (I haven't modded this file yet myself).
Tanshin
Posts: 80
Joined: 22 Jan 2010, 09:34

Re: L4D2 Center HUD fix

Post by Tanshin »

About the filenames and such...take a look at my fourth or fifth post on the first page of this thread for an explanation of how the game "sees" files. some trickery is needed to get the mod to work. apply the same procedure to basechat.res and it should function the same (I haven't modded this file yet myself).


Yes sir, you were 100% correct. after playing around with file locations and multiple lines, I got it just the way I want it. It was a lot more simple then i thought. I did a search in HxD for basechat.res. The line just above it that says ...}..}..basechat. /'.*

I changed basechat to sasechat. Then I needed to place the basechat.res file in resources/ui.

Here is my code.

Code: Select all

"Resource/UI/BaseChat.res"

   {
      "HudChat"
      {
         "ControlName"         "EditablePanel"
         "fieldName"          "HudChat"
         "visible"             "1"
         "enabled"             "1"
         "xpos"               "910"
         "ypos"                  "r205"  [$WIN32]
         "ypos"               "5"    [$X360]
         "wide"                "280"   [$WIN32]
         "wide"                "350"   [$X360]
         "tall"                "120"
         "PaintBackgroundType"   "2"
         "usetitlesafe"         "1"
      }
   
      KeyStateLabel
      {
         "ControlName"      "Label"
         "fieldname"         "KeyStateLabel"
         "visible"          "1"
         "enabled"          "1"
         "xpos"            "10"   [$WIN32]
         "xpos"            "42"   [$X360]
         "ypos"            "2"
         "wide"             "300"
         "tall"            "12"
         "textAlignment"      "north-west"
      }
   
      ChatInputLine
      {
         "ControlName"         "EditablePanel"
         "fieldName"          "ChatInputLine"
         "visible"             "1"
         "enabled"             "1"
         "xpos"               "10"   [$WIN32]
         "xpos"               "42"   [$X360]
         "ypos"               "395"
         "wide"                "260"
         "tall"                "2"
         "PaintBackgroundType"   "0"
      }
   
      "ChatFiltersButton"
      {
         "ControlName"      "Button"
         "fieldName"         "ChatFiltersButton"
         "xpos"            "225"
         "ypos"            "2"
         "wide"            "45"
         "tall"            "15"
         "autoResize"      "1"
         "pinCorner"         "0"
         "visible"         "0"
         "enabled"         "1"
         "tabPosition"      "0"
         "labelText"         "#chat_filterbutton"
         "textAlignment"      "center"
         "dulltext"         "0"
         "brighttext"      "0"
         "Default"         "0"      
      }
   
      "HudChatHistory"
      {
         "ControlName"      "RichText"
         "fieldName"         "HudChatHistory"
         "xpos"            "10"   [$WIN32]
         "ypos"            "17"   [$WIN32]
         "xpos"            "10"   [$X360]
         "ypos"            "10"   [$X360]
         "wide"             "260"   [$WIN32]
         "wide"             "350"   [$X360]
         "tall"            "75"   [$WIN32]
         "tall"            "120"   [$X360]
         "wrap"            "1"
         "autoResize"      "1"
         "pinCorner"         "1"
         "visible"         "1"
         "enabled"         "1"
         "labelText"         ""
         "textAlignment"      "south-west"
         "font"            "ChatFont"
         "maxchars"         "-1"
      }
   }
   



Here is a picture.





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

Re: L4D2 Center HUD fix

Post by Delphium »

:rockout WIN :D cheers for the info!! I shall have a look at this myself :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 »

Glad to see it works!

I'd like to put out an official call for the various HUD mods posted in this thread. If you have created working hudlayout.res and basechat.res files for your resolution, please zip the files and provide a link here so I can download them. Name the .zip file something like this: L4D2HUD-XRESxYRES-[username].

I will collect the files, upload them to the WSGF server, and post links along with a summary of usage in the first post of the thread to make things simpler for users to find and acquire the mods. Of course, I will credit you by name for whatever you submit.

This should be a one-time effort as it's highly unlikely for Valve to implement HUD changes that break the modification(s). The only issue will be re-hex editing the .vpk file whenever the game does an auto-update to a new version. I'm toying with some ideas to make this easier to address for end users--any input on this is welcome.
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

Sounds like a good idea, I shall endever to update the mod for 5760x1080 I had put together.
I am also at the same time working on a tool that would hopefully automate a lot of the editing of various .res files and I beleive it could be nice to do this not just for L4D2 but for the various source engine games, as there are a number of fixes for the likes of TF2 as well, so perhaps we can pool these resources together. :)
| 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 »

Another thing I have been having difficulty with is the item pop ups, when you pick yo items at the start of a scenario, the icon pops up onto your screen and is supposed to shift over to the weapon bar, I can not find out how to move this popup.

Also, I have already created a 5760x1080 mod, this should work with 5760x1200 as well.
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

L4D2HUD-5760x1080-delphium.zip

Here is mine quickly updated.
| 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 »

L4D2HUD-5760x1080-delphium.zip

Here is mine quickly updated.


^no pictures? :/



5760-x-1080-center-HUD-fix

I have both 5760x1080 and 6020x1080 in that file.
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: L4D2 Center HUD fix

Post by Delphium »

I did say quickly updated, I am not on my L4D2 / triple head pc atm.

I could provide one later, but if you have gone and done a selection of them, then it would effectively be a duplicate? :?
| 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 |
Post Reply

Who is online

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