vpk
vpk copied to clipboard
📦 Open, Search, Extract and Create VPKs in python
 I got an error code saying that Unknown verson 2 for vpk
On [developer.valvesoftware.com](https://developer.valvesoftware.com/wiki/VPK_File_Format#VPK_readers), this project is listed as supporting VPK v1 and v2. Is there support for writing VPK v2 archives? If not, is there a plan to support it?
When trying to open a specific VPK to change a part to enable some hidden features, I get hit with the ``Error: Invalid header, or unsupported version`` error. Is there...
In order to create a VPK archive using this project, the files must first exist in the OS's file system. If I read a file and perform some simple string...
This updates the readme to include the following options: * `-cv` / `--create-version` * `-pe` / `--path-encoding`
I tried to unpack two files i have: **sde_pack_lang_english_dir.vpk** and **sde_pack_lang_english_000.vpk** by command: ```bash vpk -x . sde_pack_lang_english_dir.vpk ``` IOError: [Errno 2] No such file or directory: 'sde_pack_lang__000.vpk' I guess...
I was looking to use this tool for my project. We have a large number of assets, with our materials alone surpassing 6GB. I used the CLI tool to attempt...
Passing a pathlib Path to vpk.open ```py from pathlib import Path vpk_path = Path("C:/Program Files (x86)/Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/pak01_dir.vpk") vpk.open(vpk_path) ```` Will fail on get_file ``` >>items_game_file = package.get_file("scripts/items/items_game.txt") TypeError: Path.replace()...
I want to know, is there or will be a function that adds a file to existing pack
I tried to do an extraction of the VPK file and repackaged it. ```python def extract(): pak1 = vpk.open("E:/Program Files (x86)/Steam/steamapps/workshop/content/570/2967026351/2967026351.vpk") for filepath in pak1: print(filepath) file = pak1.get_file(filepath) path...