Pak to FileList program - BSPZIP filelist generator from old packed maps

Egan

aa
Feb 14, 2010
1,375
1,721
Pak to FileList
Last updated: 9/28/2015 - v0.1

VPGR7q2.png


Download latest version

What is it?

Pak to FileList is a program that generates a filelist compatible with BSPZIP for a selected folder of custom content very quickly.

Why would I need it?

This would be useful to you if it takes a while to pack things, or if you've forgotten which things need to be packed if you're updating an older map.

How do I use it?
First download the program.

Second, you will need a folder of custom content. An easy way to get a folder of custom content from your already-packed map is to open it in VIDE - http://www.tophattwaffle.com/downloads/vide/

Open VIDE, Select the last icon on the right 'Pakfile Lump Editor', Open your packed map, and click Extract (2nd last button), save the .zip file of packed content anywhere you want.

b0cZiJ3.png


X2klvJG.png


UU1pjVN.png


After you've saved the extracted .zip, you will need to extract the files from the .zip to its own folder:

CFG5uVf.png


Inside of the extracted files folder you may need to clean up the non-necessary stuff: vertex lighting data (.vhv in the main folder), and anything in the /materials/maps/ folder (all the lightmap data and cubemap files).
You can delete these files inside of PaktoFileList but it's slower.

WY8YVwK.png


DSDsfBI.png



Now open PaktoFileList.exe

Click Open Folder and browse for the folder which you extracted from the .zip file (alternatively, the folder which contains all custom content):

Ypuggf7.png


You can save this just as a list of files, but for now let's click 'Save as List for BSPZIP'.

kab1423.png


The best naming convetion for this BSPZIP filelist is 'full filename of your map'-filelist.txt:

8iat0pO.png


And that's it! The filelist will be made with the local location and actual-computer location for every item in all subdirectories of our selected folder.

How can I use this BSPZIP?
To set BSPZIP up you will need to create two new run commands inside of a Hammer Advanced compile option. You can make a separate configuration for this or copy an existing configuration and add these to the end (like what TopHattWaffle does).

First click New in the middle, click Cmds at the side, and then click Executables:

KdacK1Y.png


160sRC0.png


Now find Steam/steamapps/common/Team Fortress 2/bin/bspzip.exe:

Fefp9OX.png


In the Parameters field you will need to add the following code:

Code:
-addorupdatelist $path\$file.bsp $path\$file-filelist.txt $path\$file.bsp

OoxdIlK.png


Now click New, Cmds, Copy File, and add this to the Parameters:

Code:
$path\$file.bsp $bspdir\$file.bsp

mLXsK3w.png


Now all that's left to do is check the two checkmarks at the side of the run commands to enable these two.

If you run this Autopack Level compile configuration it will automatically package your <filename>-filelist.txt files into the .bsp (assuming one exists for the map).
Note that the filelist must be located in the same directory as the .vmf.

Requirements:
VC++ Runtime libraries (you probably already have this): https://support.microsoft.com/en-us/kb/2977003
VIDE: http://www.tophattwaffle.com/downloads/vide/
7zip (or something similar that can extract .zip files): http://www.7-zip.org/

Changelog:
v0.1 - 9/28/2015 - First release, basic functionality.



.
 
Last edited: