This Python script will consolidate a Quake gamedir with loose files and PAKs into a single PAK file.
Command-line usage: python -m consolidate_quake_gamedir [--quiet | --verbose] gamedir
Or from a Python script:
from consolidate_quake_gamedir import consolidate, PrintOut
# PrintOut.NONE
# PrintOut.INFO (default if not specified)
# PrintOut.VERBOSE
consolidate('gamedir', PrintOut.INFO)
Outputs: gamedir_consolidated/pak0.pak
Example console output:
Unpaking gamedir/pak0.pak to gamedir_temp
Unpaking gamedir/pak1.pak to gamedir_temp
Unpaking gamedir/pak2.pak to gamedir_temp
Copying loose files from gamedir to gamedir_temp
Repaking gamedir_temp to gamedir_consolidated/pak0.pak
Cleaning up temporary files from gamedir_temp
vgio
Install with: pip install vgio
Run python -m example.consolidate_hwjam3
from the root folder of this project.
This example script will automatically download Halloween Jam 3,
extract it to hwjam3
, and consolidate it to hwjam3_consolidated/pak0.pak
. This all
happens within the example
subdirectory.