Skip to content

Wrong determination of multi-chunk file name. #32

Description

@tteko

I tried to unpack two files i have:
sde_pack_lang_english_dir.vpk and sde_pack_lang_english_000.vpk
by command:

vpk -x . sde_pack_lang_english_dir.vpk

IOError: [Errno 2] No such file or directory: 'sde_pack_lang__000.vpk'

I guess what is about the third underscore character in VPK file name?

Activity

  1. tteko commented on Mar 2, 2023

    @tteko
    Author

    Addition.
    I tried to rename the files differently and found out that there is 'a forbidden' word in the file name, namely 'english'.
    For some reason this word disappears when opening a chunk file!

  2. NvC-DmN-CH commented on May 24, 2024

    @NvC-DmN-CH

    Wow it literally looks for the word "english" and replaces it with something else!

    path = path.replace('english','').replace("dir.", "%03d." % metadata['archive_index'])

    I feel like this was done to make it work for vpk names in a specific game, so the tool may still not be fully reliable with this line removed

  3. Tiagoquix commented on Sep 12, 2024

    @Tiagoquix

    The replacement should be removed or at least an option should be made to ignore it. Getting same error when trying to extract tf2_sound_vo_english_dir.vpk.

  4. Tiagoquix commented on May 26, 2025

    @Tiagoquix

    friendly ping @rossengeorgiev

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions