Page 1 of 2
To Clever Chaps: HUD fix for L4D2?
Posted: 19 Nov 2009, 20:18
by Mach1.9pants
I have (with thanks) used the HUD on centre screen fix on L4D1, but my PC clan are playing version2 now. Has anyone done a fix for that?
I will try and figure it out myself but I really don't know where to start!
Cheers
To Clever Chaps: HUD fix for L4D2?
Posted: 19 Nov 2009, 21:15
by A Small White Box
Does the old one work?
To Clever Chaps: HUD fix for L4D2?
Posted: 19 Nov 2009, 21:58
by Mach1.9pants
Admittedly I haven't tried the old ones, but considering that every time there is a patch on L4D1 you have to use a new fix I doubt it would work.
I will try it tonight :)
To Clever Chaps: HUD fix for L4D2?
Posted: 20 Nov 2009, 18:19
by Leapo
Don't use the old one, it breaks the HUD in the new game pretty badly.
L4D2 is going to require a new patch.
To Clever Chaps: HUD fix for L4D2?
Posted: 21 Nov 2009, 21:33
by A Small White Box
Well, I haven't picked it up yet, so I won't be able to get to it yet. I'm looking at Black Friday to pick it up.
To Clever Chaps: HUD fix for L4D2?
Posted: 21 Nov 2009, 21:45
by Mach1.9pants
Well, I haven't picked it up yet, so I won't be able to get to it yet. I'm looking at Black Friday to pick it up.
Cool, I'll be looking forward to your skills :)
I picked it up pre-order in a 4 pack, 45$NZ... half price compared to shops ATM :)
To Clever Chaps: HUD fix for L4D2?
Posted: 22 Nov 2009, 22:51
by Downtown1
Ahhh man, surely you guys won't leave me and A Small Box to provide them again.. when the description for how to do it was so simple anyone who uses notepad could do it :P
To Clever Chaps: HUD fix for L4D2?
Posted: 22 Nov 2009, 23:41
by Mach1.9pants
Ahhh man, surely you guys won't leave me and A Small Box to provide them again.. when the description for how to do it was so simple anyone who uses notepad could do it :P
Where is the description and I will give it a go
To Clever Chaps: HUD fix for L4D2?
Posted: 23 Nov 2009, 15:57
by Unknownsock
Just find the correct file, and change the numbers accordingly.
Abit of trial and error ;)
To Clever Chaps: HUD fix for L4D2?
Posted: 23 Nov 2009, 19:35
by Mach1.9pants
Sorry 'just find the correct file and change the numbers a bit' means absolutley nothing to me, there are hundreds of files in every game. That is not, as Downtown said, 'a simple description.
To Clever Chaps: HUD fix for L4D2?
Posted: 23 Nov 2009, 19:45
by MobsterOO7
I'll compare the two files later tonight, we'll see what we can see. I haven't modded a hud file since I did CSS so go easy on me.
To Clever Chaps: HUD fix for L4D2?
Posted: 23 Nov 2009, 21:59
by Unknownsock
Sorry 'just find the correct file and change the numbers a bit' means absolutley nothing to me, there are hundreds of files in every game. That is not, as Downtown said, 'a simple description.
Just find the fix from the original game, either find that file or something similiar in the L4D2 folder.
Every object or group of objects will have a number, this being the location (x,y) of that part of the HUD, like i said trial and error until its correct.
To Clever Chaps: HUD fix for L4D2?
Posted: 23 Nov 2009, 22:31
by MobsterOO7
They've changed the way the HUD files are done, none of these files exist in the .ncf files for L4D2. There isn't even a UI folder in the resource folder.
So yeah, I have no idea which files to even edit.
To Clever Chaps: HUD fix for L4D2?
Posted: 23 Nov 2009, 23:02
by Unknownsock
They've changed the way the HUD files are done, none of these files exist in the .ncf files for L4D2. There isn't even a UI folder in the resource folder.
So yeah, I have no idea which files to even edit.
Oh my bad didnt release ><
Won't be getting it till next week.
Well you better get looking with notepad ;)
To Clever Chaps: HUD fix for L4D2?
Posted: 23 Nov 2009, 23:13
by MobsterOO7
Well you better get looking with notepad ;)
He He, no.
Maybe you should get on that with notepad.
To Clever Chaps: HUD fix for L4D2?
Posted: 26 Nov 2009, 20:32
by Downtown1
Just find the correct file, and change the numbers accordingly.
Abit of trial and error ;)
Incorrect, it's way simpler than that...
I think I also figured out how to modify these values for triplehead2go resolutions.. I got the voice placement correctly on my first try at least, so I'm assuming they are right.
For 3x1680x1050 you need to add 768 to every xpos value that you want to move to the middle
For 3x1280x1024 you need to add 600 to every xpos value that you want to move to the middle
If someone wants to try tweaking the original CFG that Paddy posted and test it for 3x1680x1050 with my suggestion of adding 768, then we can see if my hypothesis is correct.
------------
So what is my hypothesis?
The HudLayout.res file is made for 640x480. Whenever the resolutions changes then all values are automatically scaled according to this. But what if the aspect ratio changes?
I believe the values are locked to the height being 480, so for example if your resolution is 1280x1024 then to the hudlayout.res its like you have 600x480. If your resolution is 1024x768 then it's 640x480, if it's 1920x1200 then it's 768x480.
So basically that's how I got the 600 value and the 768 value is by getting the corresponding proportional resolution with a height of 480.
from http://www.widescreengamingforum.com/node/9708
Incase you have trouble reading carefully the HUDs for 3x1680x1050 are the same as the HUDs for 3x1920x1200 the same as 3x2560x1600.. it's all aspect ratio based.
They've changed the way the HUD files are done, none of these files exist in the .ncf files for L4D2. There isn't even a UI folder in the resource folder.
So yeah, I have no idea which files to even edit.
In that case finding where the HudLayout.res got moved to will be the first challenge.
To Clever Chaps: HUD fix for L4D2?
Posted: 26 Nov 2009, 21:55
by ViciousXUSMC
crosshair is more important than HUD for me, though I guess you can consider a crosshair part of the HUD :D
To Clever Chaps: HUD fix for L4D2?
Posted: 27 Nov 2009, 02:12
by Downtown1
cl_crosshair_size 1
cl_crosshair_dynamic 0
To Clever Chaps: HUD fix for L4D2?
Posted: 27 Nov 2009, 03:21
by Mach1.9pants
cl_crosshair_size 1
cl_crosshair_dynamic 0
Cool, in what file? :?
To Clever Chaps: HUD fix for L4D2?
Posted: 27 Nov 2009, 03:36
by Downtown1
cfgautoexec.cfg (you will have to make it)
That just makes the crosshair a bit smaller and forces it not to adjust itself dynamically which will pretty much give you a nice + (if a bit larger than normal) instead of 4 line segments separated by huge swaths of space.