Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Delta Force (https://novahq.net/forum/forumdisplay.php?f=101)
-   -   [DFBHD] Installing BHD Maps In Steam (https://novahq.net/forum/showthread.php?t=49564)

Guest001 02-24-2019 08:06 AM

Installing BHD Maps In Steam
 
1 Attachment(s)
At the time of posting, the steam version of BHD is not working as expected so mods and custom files requiring switches will fail unless packed.


To install maps successfully you'll need to use the packing tool to enable wac script, animation and dialog files.


You can use the following scripts saved as .bat files or download the uploaded templates below.


To configure the script to pack your files, replace MapName with your mission name...

METHOD:
Extract all the mission files to the BHD folder as usual then click on the custom MapName_Install.bat file to pack the PFF

BHDSteamMap_Install
Installs the files. Pack...

Code:

@echo off
for %%f in ( MapName.ain) do .\pack .\Localres.pff %%f /FORCE
for %%f in ( MapName.bin) do .\pack .\Localres.pff %%f /FORCE
for %%f in ( MapName.dbf) do .\pack .\Localres.pff %%f /FORCE
for %%f in ( MapName.end) do .\pack .\Localres.pff %%f /FORCE
for %%f in ( MapName.lwf) do .\pack .\Localres.pff %%f /FORCE
for %%f in ( MapName.pcx) do .\pack .\Localres.pff %%f /FORCE
for %%f in ( MapName.wac) do .\pack .\Localres.pff %%f /FORCE
goto DelRootF
:DelRootF
for %%f in ( MapName.ain) do del %%f
for %%f in ( MapName.bin) do del %%f
for %%f in ( MapName.dbf) do del %%f
for %%f in ( MapName.end) do del %%f
for %%f in ( MapName.lwf) do del %%f
for %%f in ( MapName.pcx) do del %%f
for %%f in ( MapName.wac) do del %%f
goto OptPFF
:OptPFF
pack Localres.pff /OPT
pause
 exit

BHDSteamMap_UnInst
Removes the files. Unpack...

Code:

@echo off
pack localres.pff -MapName.ain /force
pack localres.pff -MapName.bin /force
pack localres.pff -MapName.dbf /force
pack localres.pff -MapName.end /force
pack localres.pff -MapName.lwf /force
pack localres.pff -MapName.pcx /force
pack localres.pff -MapName.wac /force
goto OptPFF
:OptPFF
pack Localres.pff /OPT
pause
exit

BHDSteamMap_UnInst2
Create then Click on MapName_UnInst2.bat to remove bms, til and mis files from the game folder as well.

Code:

@echo off
pack localres.pff -MapName.ain /force
pack localres.pff -MapName.bin /force
pack localres.pff -MapName.dbf /force
pack localres.pff -MapName.end /force
pack localres.pff -MapName.lwf /force
pack localres.pff -MapName.pcx /force
pack localres.pff -MapName.wac /force
goto DelRootF
:DelRootF
for %%f in ( MapName.bms) do del %%f
for %%f in ( MapName.mis) do del %%f
for %%f in ( MapName.til) do del %%f
goto OptPFF
:OptPFF
pack Localres.pff /OPT
pause
exit


Scott 02-25-2019 07:53 AM

Did they update the game or something? My steam version seems to be working ok with maps not being packed?

Nice batch file for those having issues! I added it to our files here: https://novahq.net/files.php?ID=730

Guest001 02-26-2019 05:20 AM

Quote:

Originally Posted by Scott (Post 391005)
Did they update the game or something? My steam version seems to be working ok with maps not being packed?

Nice batch file for those having issues! I added it to our files here: https://novahq.net/files.php?ID=730


Thanks Scott, after reading your post I purchased BHD on Steam myself and...



The switches seem to be working...


The reason for all of this? It was being reported on Steam a while back that Mods etc wouldn't work so I posted this (belated) fix for running custom files without the switches - :dontknow:

Anyway the fix is still useful for those who don't know how to set the switch or just want to start the game from the steam gui.


All times are GMT -5. The time now is 03:34 PM.

Powered by vBulletin®