Widescreen Gaming Forum

[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
It is currently 04 Jul 2024, 09:09

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 24 Jul 2010, 02:46 
Offline
Editors
Editors
User avatar

Joined: 12 Sep 2007, 19:14
Posts: 1560
***Update***- 2010/8/1
Great news! Hex-editing the pak01_dir.vpk is no longer necessary. Valve added the following command line option in the latest update:
Code:
-override_vpk

Simply extract/edit your hudlayout.res file as needed, then launch the game with this command line parameter (you can set this by right click->Properties->Set Launch Options on Alien Swarm in your Steam library).


Update- Game updated right after I posted this. Grab the new replacement vpk here: (link removed)

The HUD for Alien swarm can be fixed like other Source games. Here's how. First, download these files: (links removed)

1- Navigate to the game directory. It should look like this:
..Steamsteamappscommonalien swarmswarm
2- BACK UP the pak01_dir.vpk file to a different location! (outside of the Alien Swarm directory)
3- Extract the pak01_dir.vpk from the above archive into the game folder, replacing the original file.
4- Navigate down into the Scripts subdirectory and extract the hudlayout.res file from the .zip into this folder.
5- Now it's time for a little editing. Tools needed: text editor and calculator.

Open the hudlayout.res file in your text editor. Scroll down until you find the section titled ASW_Hud_Master. A few lines down you will see this:
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "480"

Thanks to Downtown1 we know how Source HUDs work. They are based on a resolution of 640x480, which is a 4:3 aspect ratio. What you need to do is calculate an "xpos" value based on your resolution. I'll use mine as an example:

Calculate AR of a single monitor: 1280 / 1024 = 1.25
Calculate new xpos value: 480 * 1.25 = 600 -->This is the value you will enter in the "xpos" line:
"xpos" "600"

For some reason the minimap isn't affected by the master setting so it needs to be edited as well. Scroll up to the top of the hudlayout.res file to the ASWHudMinimap section and find this line:
"xpos" "r171"
Now ADD your calculated value to the current value. Mine:
"xpos" "r771"
Result:


Save the edits you made to the res file and launch the game.

To be addressed:
-I haven't played much with the fix yet so things may be broken/unchanged.
-Bezel managed resolutions may need tweaking. Maybe take full Horiz resolution, divide by 3, then use that as the value for single-screen Horiz. Please report results here so we can confirm a method.
[Ed] Re-thinking this, what you may need to do is add the Horiz res of one screen to the number of compensated bezel pixels as your single-screen Horizontal value. Example: 1680+100pix (for one set of bezels) = 1780.
-The vpk is hex-edited to force the engine to recognize the extracted .res file. Official updates to this file will break the HUD mod as the new vpk file will need to be hex edited again.
-More as I think of it.

_________________
VirtualDub Game Recording Guide | BFME2 & RotWK Widescreen/Triplehead Mods


Top
 Profile  
 


PostPosted: 24 Jul 2010, 02:56 
Offline
Administrators
Administrators
User avatar

Joined: 27 Dec 2009, 14:27
Posts: 1789
+rep
Excellent intructions. :cheers
I shall look into adding Alien Spawn profiles to the HUD editor to make it easier with bezel compensation.

Nice work! :)

_________________
| 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 |


Top
 Profile  
 
PostPosted: 24 Jul 2010, 20:25 
Offline
Editors
Editors
User avatar

Joined: 12 May 2010, 01:19
Posts: 187
Location: Texas
Thank ya sir, makes playing this game a lot easier when I can see the hud. :cheers


Top
 Profile  
 
PostPosted: 25 Jul 2010, 20:23 
Offline

Joined: 25 Jul 2010, 20:15
Posts: 5
I didn't get this to work on eyefinity...
(it should work on offline play just as well right?)
or is it the latest update that isnt supported yet?

I pasted the pak01_dir.vpk (replacing the old one) at:
C:Program Files (x86)SteamSteamAppscommonalien swarmswarm

and the hudlayout.res at:
C:Program Files (x86)SteamSteamAppscommonalien swarmswarmscripts

my each monitor's resolution is 1680x1050
so i changed xpos to 1.6x480+171 = "r939" and 1.6x480 = "768" respectively..

the hud was still the same just like before....
am i doing anythin wrong here....?

Thanks loads for any help!!


Top
 Profile  
 
PostPosted: 27 Jul 2010, 01:06 
Offline
Editors
Editors
User avatar

Joined: 12 Sep 2007, 19:14
Posts: 1560
If the HUD is totally unchanged then I suspect the engine is not "seeing" the extracted hudlayout.res file, which would mean it is still reading that file from inside the pak01_dir.vpk. Delete that vpk from the game folder and re-extract from the archive I posted. I just double-checked and the modded .vpk is functional (yes it should work offline).

Also, did you use the second, v02 archive I posted? Steam updated the game shortly after I started this thread so I had to re-mod the .vpk and upload a new version. Let me know how this goes.

_________________
VirtualDub Game Recording Guide | BFME2 & RotWK Widescreen/Triplehead Mods


Top
 Profile  
 
PostPosted: 27 Jul 2010, 02:40 
Offline

Joined: 25 Jul 2010, 20:15
Posts: 5
ah, you're right!
i guess backing up the original pak01_dir.vpk, ( copying to commonalien swarm ) somehow doesnt prevent the game from accessing it...

now it works like a charm! :D

thanks much!!


Top
 Profile  
 
PostPosted: 27 Jul 2010, 04:22 
Offline
Editors
Editors
User avatar

Joined: 12 Sep 2007, 19:14
Posts: 1560
ah, you're right!
i guess backing up the original pak01_dir.vpk, ( copying to commonalien swarm ) somehow doesnt prevent the game from accessing it...

now it works like a charm! :D

thanks much!!

You're welcome. :twothumb

I'll add a little note to the first post about the vpk backup.

_________________
VirtualDub Game Recording Guide | BFME2 & RotWK Widescreen/Triplehead Mods


Top
 Profile  
 
PostPosted: 27 Jul 2010, 17:44 
Offline

Joined: 07 Mar 2008, 14:00
Posts: 140
Yeah tried it as well with my 5760x1200 resolution perfect :)

ASWHudMinimap

"xpos" "r939"

ASW_Hud_Master

"xpos" "768"

Thank you :)


Top
 Profile  
 
PostPosted: 01 Aug 2010, 20:38 
Offline
Editors
Editors
User avatar

Joined: 12 Sep 2007, 19:14
Posts: 1560
Latest game patch abrogates the need to edit pak01_dir.vpk due to a new command line parameter:
Code:
-override_vpk

First post updated with instructions.

_________________
VirtualDub Game Recording Guide | BFME2 & RotWK Widescreen/Triplehead Mods


Top
 Profile  
 
PostPosted: 06 Aug 2010, 08:54 
Offline

Joined: 13 Feb 2010, 20:03
Posts: 145
Delph is this being added to the HUD fixer? I'm lazy.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  




Powered by phpBB® Forum Software © phpBB Group