Eagle_Eye
|
|
Handy Batch File...
I use a batch file to create my pff files when I'm modding..
It's faster than using Raven's Tool.
The original is by AB, he supplied it or packing the files in the AB JO Med, I modified it for my own use.
Here is a link to the download.. Batch File
Here is the original..
@echo off
if exist jointops.exe goto ingamedir
for %%f in ( *.3di) do .\pack .\localres.pff %%f /FORCE
for %%f in ( *.3di) do del %%f
for %%f in ( *.pcx) do .\pack .\localres.pff %%f /FORCE
for %%f in ( *.pcx) do del %%f
for %%f in ( *.cpt) do .\pack .\localres.pff %%f /FORCE
for %%f in ( *.cpt) do del %%f
for %%f in ( *.tga) do .\pack .\localres.pff %%f /FORCE
for %%f in ( *.tga) do del %%f
goto complete
:ingamedir
echo This program cannot be run from the JointOps Directory
echo Please make sure that your med and associated files are
echo in there own dir - WITH a COPY of your JO localres.pff
echo and a COPY of your JO resource.pff, then run this program
echo from that directory.
pause
goto end
:complete
echo All files have been succesfully packed - installation Complete.
echo If you like this MED feel free to make a small donation to
echo DFBarracks.com and help support its creator.
:end
Here's my version..
@echo off
if not exist pack.exe goto nopackfile
for %%f in ( *.3di) do .\pack .\EEmod.pff %%f /FORCE
for %%f in ( *.pcx) do .\pack .\EEmod.pff %%f /FORCE
for %%f in ( *.tga) do .\pack .\EEmod.pff %%f /FORCE
for %%f in ( *.dds) do .\pack .\EEmod.pff %%f /FORCE
for %%f in ( *.def) do .\pack .\EEmod.pff %%f /FORCE
for %%f in ( *.bin) do .\pack .\EEmod.pff %%f /FORCE
goto complete
:nopackfile
echo This program cannot be run without the pack.exe file
echo Please make sure that you put a copy in the same directory
echo as this batch file..there's a copy in your BHD Folder..
pause
goto end
:complete
cls
echo All files have been succesfully packed - installation Complete.
echo If you like this batch file, feel free to make a small donation to
echo DFBarracks.com....and support your site...
pause
:end
With the original, it will delete all files after packing, mine won't, since we are creating a test pff file, and we still need all the files..
You can alter the batch file to create one of your own name, just use a text editor.
How To Use
I create a folder and put all my files I need in that folder, ie..def, pcx, 3di, bin, dds etc...
In that same folder, put a copy of this batch file, and a copy of the Pack.exe, found in your BHD folder..if you forget, my version will detect that,
and not run..
Run the batch file using window explorer, then, move the pff file you created to your bhd/mod folder....run using your modified shortcut, don't forget
to make a test map as well....using your new items..
EE
|
|
|
|