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

Discussion in 'Tutorials & Resources' started by Egan, Sep 28, 2015.

  1. Egan

    aa Egan

    Messages:
    1,318
    Positive Ratings:
    1,519
    Pak to FileList
    Last updated: 9/28/2015 - v0.1

    [​IMG]

    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.

    [​IMG]

    [​IMG]

    [​IMG]

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

    [​IMG]

    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.

    [​IMG]

    [​IMG]


    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):

    [​IMG]

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

    [​IMG]

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

    [​IMG]

    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:

    [​IMG]

    [​IMG]

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

    [​IMG]

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

    Code:
    -addorupdatelist $path\$file.bsp $path\$file-filelist.txt $path\$file.bsp
    [​IMG]

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

    Code:
    $path\$file.bsp $bspdir\$file.bsp
    [​IMG]

    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.



    .
     
    • Thanks Thanks x 6
    Last edited: Sep 28, 2015