Skip to content

VPK v2 Support? #25

Open
Open

Description

@0xFurtiv

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?

Activity

  1. rossengeorgiev commented on Jun 15, 2021

    @rossengeorgiev
    Member

    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

  2. rossengeorgiev commented on Dec 25, 2021

    @rossengeorgiev
    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

  3. juliogaray commented on May 7, 2022

    @juliogaray

    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!

  4. rossengeorgiev commented on May 7, 2022

    @rossengeorgiev
    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')

  5. juliogaray commented on May 7, 2022

    @juliogaray

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions