Skip to content

Commit 9e29f4b

Browse files
authored
Merge pull request #15 from Gametoast/hud-and-load-options
Hud and load options
2 parents a31cd76 + f8fed2c commit 9e29f4b

37 files changed

+117
-3
lines changed

0/bin/LVLTool.exe

-1.23 MB
Binary file not shown.
79 KB
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
This is the hud delivered in the initial '0' patch by AnthonyBF2
2+
for the Aspyr Classic Collection BF2
3+
4+
============================ String hashing special-ness ============================
5+
The BF2 build often runs a special hash operation on filenames (and other strings) to compress strings into 4 bytes.
6+
7+
We don't know the real filename for the Aspyr 1 player Hud.
8+
The name was translated to the hash '0xdc27b03d'
9+
Which has a matching un-hash of 'zri6jc'
10+
11+
Surely Not the name aspyr chose, but it'll work.
12+
So if you want to create a deployable hud for Aspyr BF2, you'll want to name
13+
your HUD file 'zri6jc.hud'
14+
Then run:
15+
md MUNGED
16+
C:\BF2_ModTools\ToolsFL\bin\ConfigMunge.exe -inputfile $*.hud -continue -platform PC -sourcedir . -outputdir MUNGED
17+
18+
The output file in the MUNGED folder will be named 'zri6jc.config'; re-name it to '0xdc27b03d.hud_'
19+
to get it to replace the existing one using LVLTool.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@echo off
2+
3+
if exist ..\..\..\..\data2\_lvl_common\ingame.lvl (
4+
REM use LVLTool to replace the player 1 hud file
5+
..\..\bin\LVLTool.exe -file ..\..\..\..\data2\_lvl_common\ingame.lvl -r 0xDC27B03D.hud_
6+
7+
REM overwrite any hud_texture_pack.lvl file
8+
echo copy hud_texture_pack.lvl now...
9+
copy /y hud_texture_pack.lvl ..
10+
) else (
11+
echo Error! Could not find ingame.lvl; hud not applied
12+
)
13+
14+
15+
REM Let user see the messages above
16+
pause
232 KB
Loading
84.7 KB
Loading
88.5 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Notes:
2+
1. This hud is was only tested with Aspyr CC BF2
3+
4+
2. The 'hud_texture_pack.lvl' contains only a small unused image.
5+
It is intended to overwrite any 'hud-options\hud_texture_pack.lvl' from other mods to restore the default hud.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@echo off
2+
3+
if exist ..\..\..\..\data2\_lvl_common\ingame.lvl (
4+
REM use LVLTool to replace the player 1 hud file
5+
..\..\bin\LVLTool.exe -file ..\..\..\..\data2\_lvl_common\ingame.lvl -r 0xDC27B03D.hud_
6+
7+
REM overwrite any hud_texture_pack.lvl file
8+
echo copy hud_texture_pack.lvl now...
9+
copy /y hud_texture_pack.lvl ..
10+
) else (
11+
echo Error! Could not find ingame.lvl; hud not applied
12+
)
13+
14+
15+
REM Let user see the messages above
16+
pause
229 KB
Loading

0 commit comments

Comments
 (0)