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

Wrong determination of multi-chunk file name. #32

Open
tteko opened this issue Mar 2, 2023 · 3 comments
Open

Wrong determination of multi-chunk file name. #32

tteko opened this issue Mar 2, 2023 · 3 comments

Comments

@tteko
Copy link

tteko commented Mar 2, 2023

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?

@tteko
Copy link
Author

tteko commented Mar 2, 2023

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!

@NvC-DmN-CH
Copy link

NvC-DmN-CH commented May 24, 2024

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

@Tiagoquix
Copy link

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.

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

No branches or pull requests

3 participants