Skip to content

Utility for quickly packing dependencies in Half-Life 2 BSP maps.

Notifications You must be signed in to change notification settings

cannon/quickpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 

Repository files navigation

QuickPack

Utility for quickly and conveniently packing model, material, texture, and sound dependencies in Half-Life 2 BSP maps.

Automatically packs materials used in custom models, unlike Pakrat. Furthermore, it only packs used materials for models with multiple skins!

To use:

  • Install Python 3.8 from https://www.python.org/downloads/
  • Run QuickPack.py from a command prompt, with the full path to your map as the only argument. Example:
    QuickPack.py "C:\Program Files (x86)\Steam\steamapps\common\Half-Life 2\hl2\maps\mymap.bsp"

Your map must be located in the (game root)/maps folder. This program only runs on windows (as it uses bspzip.exe)

New feature: File whitelists and blacklists:

  • To force the program to pack specific files and their dependencies, make a mapname.pack.txt file in your maps folder with one filename on each line. Filenames should be relative to the game root, for example: materials/specialtexture.vmt
  • To force the program not to pack specific files and their dependencies, make a mapname.nopack.txt file in the maps folder. You can now use regular expressions.. For example, to prevent all materials in the "materials/external/" directory from packing, add a line to the file containing materials/external/.*

New feature: Minify VMTs: Removes comments whitespace, and other junk from vmts to clean up and save a tiny bit of space. Pass --minify-vmt. This feature is in beta, so check over the result before shipping anything.

If you experience any problems, or would like features to be added, please start an issue!

About

Utility for quickly packing dependencies in Half-Life 2 BSP maps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages