Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPK v2 Support? #25

Open
0xFurtiv opened this issue Jun 14, 2021 · 5 comments
Open

VPK v2 Support? #25

0xFurtiv opened this issue Jun 14, 2021 · 5 comments
Labels

Comments

@0xFurtiv
Copy link

On developer.valvesoftware.com, 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?

@rossengeorgiev
Copy link
Member

rossengeorgiev commented Jun 15, 2021

Yes, you can open v1 and v2. The creation of VPK files was only added later and is only for v1, single file.

Ideally, it would be best to rewrite the library and combine the reading and writing into a single class, but I have no plans to do that any time soon

@rossengeorgiev
Copy link
Member

v1.4.0 now creates VPK v2 files by default. Chunking is still not supported, and would be best achieved by a full rewrite

@jgg1971
Copy link

jgg1971 commented May 7, 2022

Dear Rossen,
Would it be possible to add an option parameter to the CLI app to chose whether to export to v1 or v2 (e.g. -v1 or -v2)? I actually need to create v1 VPKs, but I don't see a way to do it with the current version. Thanks for your consideration!

@rossengeorgiev
Copy link
Member

@jgg1971 there already is -cv, see

vpk/vpk/cli.py

Line 32 in 3ff641e

info.add_argument('-cv', '--create-version', dest='create_version', type=int, choices=(1,2), default=2, help='Create VPK with this version')

@jgg1971
Copy link

jgg1971 commented May 7, 2022

OK, sorry, I didn't look at the source code. This option is not shown in the readme, so I didn't think it was implemented. Thanks for the quick answer and good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants