So as I said I would I took a closer look at the modified
Main.hud file posted by
Malakakaius with a hex editor and compared the file to the original Main.hud file that's in
therest.pk3 found in the base folder, and I discovered that only one number in a single line of code was changed:
(The original code)
<hud backfill hud_backfill clear>
<frame main 0 0 border 16 0 clear backfill clear>
<frame subtitle 0 44 cut main page stats>
<frame weapons 0 320 cut main page off>
<frame bottomleft 176 0 cut main page left>
<frame bottommiddle 258 0 cut main>
<frame bottomright 0 0 cut main page right>
<frame toolhealth 0 20 cut bottommiddle page toolboxhealth>
<frame middle 0 38 cut bottommiddle>
<frame middleleft 64 0 cut middle page toolbox>
<frame middlecenter 128 0 cut middle page off>
<frame middleright 0 0 cut middle cpage hud_alarm>
<frame health 0 0 cut bottommiddle cpage hud_healthpage>
</hud>
(which was Changed to)
<hud backfill hud_backfill clear>
<frame main 0 0 border 0 0 clear backfill clear> <---- only this line of code was changed.<frame subtitle 0 44 cut main page stats>
<frame weapons 0 320 cut main page off>
<frame bottomleft 176 0 cut main page left>
<frame bottommiddle 258 0 cut main>
<frame bottomright 0 0 cut main page right>
<frame toolhealth 0 20 cut bottommiddle page toolboxhealth>
<frame middle 0 38 cut bottommiddle>
<frame middleleft 64 0 cut middle page toolbox>
<frame middlecenter 128 0 cut middle page off>
<frame middleright 0 0 cut middle cpage hud_alarm>
<frame health 0 0 cut bottommiddle cpage hud_healthpage>
</hud>
So basically in english, the way Malakaius fixed this problem was he took the Main.hud file in the Pk3 file and opened it up in a hex editor, and changed the line
# 29, and changed the hexes
39-20-36 to
30-20-30 That's basically how he did it.
So then I decided to unzip the pk3 file, and replace the original Main.hud file, for the modified one, and then rezipped it into a pk3, and replaced the pk3 with the new one, ran the game...only to find the game wouldn't run....
SOOOOOOOOOOOOOOOOO, then I decided to take a different route and just open the pk3 up in 7zip, and just add the file through there...and well here's the results(also I apologise in advance for the ads on the video, I'm partnered with a network, and they don't allow me to turn it off...sorry):
http://www.youtube.com/watch?v=1JzEoXsA ... e=youtu.beSo yeah, it's crazy how one number in a single line of code can fix a game or break it huh?
Anyway I've taken the liberty to simplify the process by making a .zip of the modified Pk3 file and uploaded it for you guys at the Widescreen forums to alleviate the time it takes to fix the hud, you're welcome:
http://www.4shared.com/zip/FAkzZQqT/SOF2HudFix.html?Anyway, if any moderator is smart enough to see this post, I would recommend posting these findings to the official Soldier of Fortune 2 Widescreen report, I bet many would appreciate it.
Anyway Cheers
-TheAspergianGamer