Centered HUD for Team Fortress 2

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

Re: Centered HUD for Team Fortress 2

Post by GitDat »

Is there a way to get all the text on the middle screen too? It'd be nice to not have to turn my head to see who typed something or who killed me :)
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: Centered HUD for Team Fortress 2

Post by Delphium »

Is there a way to get all the text on the middle screen too? It'd be nice to not have to turn my head to see who typed something or who killed me :)

:welcome
Yes, I beleive it is chatbox.res that requires updating, personally I am quite happy with the text out of my way, but I would be willing to take a look into this... stay tuned.
| 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 |
GitDat
Posts: 131
Joined: 09 Feb 2010, 20:11

Re: Centered HUD for Team Fortress 2

Post by GitDat »

[quote]Is there a way to get all the text on the middle screen too? It'd be nice to not have to turn my head to see who typed something or who killed me :)

:welcome
Yes, I beleive it is chatbox.res that requires updating, personally I am quite happy with the text out of my way, but I would be willing to take a look into this... stay tuned.

Awesome :cheers Thanks. How about the kill messages that usually pop up on the top right corner? It'd be nice to have everything on the center screen and just have my side screens for watching my back when I'm planting stickies :P haha
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: Centered HUD for Team Fortress 2

Post by Delphium »

How about the kill messages that usually pop up on the top right corner?

Oh, did I miss that? I thought I fixed it!
I admit though I have not played TF2 for a while now, pritty much since my last update, just been having toomuch fun in other games lol.

Anychance you could provide us with a screenie?
| 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 |
GitDat
Posts: 131
Joined: 09 Feb 2010, 20:11

Re: Centered HUD for Team Fortress 2

Post by GitDat »

It looks like a separate message that only shows when my character gets killed. I just tried to take a screenshot with FRAPS but it's only doing the main screen :( TF2 made a .tga file screenshot also so hopefully that got it. Once I can figure out what program to use to view .tga files :)
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: Centered HUD for Team Fortress 2

Post by GitDat »

The .tga only had the center screen as well. What program do I use to get a screenshot of all 3 screens?

On a side note.. Does anyone have a problem with double-clicking or scrolling down on the mouse wheel not working in TF2 when using SoftTH? Is SoftTH the only program to use to get multiple monitors working on TF2? Sorry for all the noob questions :hide
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: Centered HUD for Team Fortress 2

Post by Delphium »

SoftTH is not the only method for tripple screen, Matrox tripple head to go and ATi's Eyeinfinity also work.

If you are using softTH, then when you hit printscreen button on the keyboard, it should dump a .tga to your "my documents" folder.
This is how I grabbed the tri screen images using SoftTH.

I am looking into moving the chat box atm, its not as simple as I had first thought it would be.
Will likely have to wait till later tonight when I get home from work to be able to test out some settings, playing tf2 in windowed mode via VNC/remote desktop dont prove to be the easyest heh.
| 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 |
GitDat
Posts: 131
Joined: 09 Feb 2010, 20:11

Re: Centered HUD for Team Fortress 2

Post by GitDat »

I think my .tga viewer is messed up because it keeps only showing one screen. Anyway, it's just the kill message and the box that pops up that shows players' special weapons that show up on the right.

Is there anyway to get this HUD to work on Zombie Panic? :mrgreen:
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: Centered HUD for Team Fortress 2

Post by Delphium »

Ill be honest, I dont play Zombie Panic so I am unlikely to spend hours trying to fix it.
I know it should in principle be the same as tf2/l4d/l4d2/cs/dod etc.
However I have writen a script in perl that will scan a .res file and automaticly increment most the xpos values by a value that you specify.
Check this post in this thread for more info about this script, as it may or may not work for you on zombie panic as it was designed for TF2, this is the best I can offer at this time.
| 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 |
GitDat
Posts: 131
Joined: 09 Feb 2010, 20:11

Re: Centered HUD for Team Fortress 2

Post by GitDat »

Any luck with the text centering? 8) Thanks for working on this btw.
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: Centered HUD for Team Fortress 2

Post by Delphium »

Working on it when ive the time, I have not forgotten or given up yet, just only had about 2 hours in the last couple of days to myself when im not bombared by work or familey duties.

The chatbox is a tricky one, and looks like many other folks have attempted to move it in the past, so im still searching and experimenting to find that magic value that moves it about.
| 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
Downtown1
Insiders
Insiders
Posts: 647
Joined: 22 Aug 2007, 19:00

Re: Centered HUD for Team Fortress 2

Post by Downtown1 »



3x1920x1080 / 5760x1080 / (48:9) - working 07/Jan/2010
hudlayout.res


I have also worked with a friend to develop a perl script that reads the hudlayout.res file and is able to increment a defined value to all the xpos values, this had made updating and testing a lot faster than manually searching for and calculating each value by hand.


Do you ever run into issues because you incremented some values that shouldn't have been incremented? Just curious since a blind update of all xpos key/value strings seems kind of risky.

But great job on the script, :D
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: Centered HUD for Team Fortress 2

Post by Delphium »

[quote]

3x1920x1080 / 5760x1080 / (48:9) - working 07/Jan/2010
hudlayout.res


I have also worked with a friend to develop a perl script that reads the hudlayout.res file and is able to increment a defined value to all the xpos values, this had made updating and testing a lot faster than manually searching for and calculating each value by hand.


Do you ever run into issues because you incremented some values that shouldn't have been incremented? Just curious since a blind update of all xpos key/value strings seems kind of risky.

But great job on the script, :D

I had run into issues before yes, tho nothing major, I have now a slightly updated script to counter the ones that required no changes here...

Code: Select all

#!/usr/bin/perl

   use strict;
   
   my $x = $ARGV[1];
   open(my $f, '<', $ARGV[0]);
   open(my $f2, '>', $ARGV[2]);
   my $text = '';
   $text .= $_ while(<$f>);
   $text =~ s/^(s*"xpos"s+"r?)(-?d+)(?=")/$1.($2+$x);/eim;
   my $hud_sections = join('|', [
     'HudWeaponSelection', 'HudKothTimeStatus',
     'HudObjectiveStatus', 'HudProgressBar']);
   $text =~ s/((?:$hud_sections)s+{[^}]*?
       "xpos"s+"r?)(-?d+)(?=")/$1.0/egisx;
   $text =~ s/(HudWeaponSelections+{[^}]*?
       "rightmargin"s+"r?)(-?d+)(?=")/$1.$x/eisx;
   print $fh2 $text;


This will ignore the following sections,
"HudWeaponSelection"
"HudKothTimeStatus"
"HudObjectiveStatus"
"HudProgressBar"
and only replace xpos values that do not contain C or C- there for anything that is already centered remains untouched.
| 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 |
digitalhigh
Posts: 1
Joined: 24 Feb 2010, 21:23

Re: Centered HUD for Team Fortress 2

Post by digitalhigh »

Hey delph,

The setup info you provided me with is working great, however, I'm having a bit of a problem with the voice notification popup. Currently, it appears right in the middle of the right beziel, so I can't see who's saying what.

Any idea what value I would need to change in order to fix this.

Oh, and I'm interested in having the team chat appear in the center window as well.

Another idea I had was for an inverted HUD...where all of the non-centered screen items appear in the left/right screens, but on the side nearest the center monitor...i think it would involve just including the width of the center monitor and another beziel into the magic number.
Aix
Posts: 38
Joined: 14 Oct 2009, 14:17

Re: Centered HUD for Team Fortress 2

Post by Aix »

Hello all,

Now that we've finally got Bezel Compensation, I've noticed that I'm going to need to modify the my TF2 hudlayout file to custom fit my (current) 5256x1050 resolution. :doh

Can I define specific locations for my heath meter and ammo, or have the above posted HUD files been optimized to scale with specific aspect ratios?

Right now my health/ammo/buildings/etc. are all sitting behind my monitor bezels, which isn't so helpful. :lol: It's a shame having to go back to the stock HUD, leaving my health/ammo in the far corners. If it's possible to mod it, what values do I need to change in the example below?

Code: Select all

   CHealthAccountPanel

      {
         "fieldName"            "CHealthAccountPanel"
         "xpos"               "844"
         "xpos_minmode"         "61"
         "ypos"               "r152"
         "ypos_minmode"         "r134"
         "wide"               "116"
         "tall"              "180"
         "visible"             "1"
         "enabled"             "1"
         "PaintBackgroundType"   "2"
      }
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: Centered HUD for Team Fortress 2

Post by Delphium »

@digitalhigh - I have yet to check voice notification due to time restraints and working on other projects, for team chat you need to look for basechat.res.
As for the inverted hud idea, I had thought about this also to be honest :) although thats a little more tricky to do, lots more experimenting needed.

@Aix - Try incrementing the xpos value by 801. :)
| 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 |
GoDM1N
Posts: 4
Joined: 04 Mar 2010, 23:50

Re: Centered HUD for Team Fortress 2

Post by GoDM1N »

Heres my problem can anyone help?

http://i151.photobucket.com/albums/s159/JDRyder/Untitled-3.jpg

The timer and people left in arena are very out of place. Is there a fix for this?
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: Centered HUD for Team Fortress 2

Post by Delphium »

Welcome to the forums.

Which center hud mod are you using?
| 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 |
GoDM1N
Posts: 4
Joined: 04 Mar 2010, 23:50

Re: Centered HUD for Team Fortress 2

Post by GoDM1N »

Welcome to the forums.

Which center hud mod are you using?


None, I did use pindab0ter HUD2 for about 30mins before finding this, but I uninstalled it, or so I thought.
User avatar
Delphium
Administrators
Administrators
Posts: 1789
Joined: 27 Dec 2009, 14:27

Re: Centered HUD for Team Fortress 2

Post by Delphium »

Subject: Centered HUD for Team Fortress 2

[quote]Welcome to the forums.

Which center hud mod are you using?

Im not using any mods, I uninstalled the only one I every used, which was the pindab0ter HUD2. I deleted the folders the files were in and then verified the to get the defaults back

Would suggest that you check the install documentation to the pindab0ter HUD2 mod for removal instructions. The mods here are designed to work witht he default hud. Otherwise it would appear you need to adjust a couple of "ypos" values that handle the items moving up and down the screen, the timer if I recall is kothtimer, the other I do not know. Check to see if there are any .res files located in the team fortress 2tfscripts and team fortress 2tfresourceui folders, if so, remove them and try again.
| 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: No registered users and 5 guests