ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
635 stars 74 forks source link

[Linux] [L4D2] Where is the tool to manage VPK files? #2001

Open Braasileiro opened 8 years ago

Braasileiro commented 8 years ago

Hello, I have a rather complex problem.

I need the Valve VPK tool to create/extract VPK files on Linux. I searched a lot on Google and found the "vpk_linux32", but it doesn't support the V1 header that is used in L4D2 files. Is there a tool to do this? On Windows, the L4D2 Authoring Tools comes with the "vpk.exe".

I'm using Arch Linux x64.

XandrosDarkstorm commented 5 years ago

I am using Linux Mint 19.1 x64 and also can't find vpk_linux32 for Left 4 Dead 2. I tried to download Left 4 Dead 2 Authoring Tools, but Steam refused to do it and this tool is marked as "Not available" in list of tools. This is very strange because if Valve adopted Linux platform, where are the tools?

I understand that vpk_linux32 for L4D2 probably is not going to happen, so here is my questions:

  1. Will vpk.exe work under Wine?
  2. (If answer for first question is yes) How to force steam to download this tool for Windows? Installing Windows as a virtual machine/second boot is not an option.
cherinyy commented 5 years ago

Can find vpk_linux32 on Team Fortress 2

dieselburner commented 4 years ago

vpk_linux32 is available here.

v1993 commented 4 years ago

@dieselburner Your version creates vpk V2 as well.

The best I got with vpk.exe (included with Portal 2) under wine is to get it display usage, but didn't managed to pack files with it - it still only prints usage.

Currently downloading TF2 to test its version, but suspect it to be V2 packer as well because it uses V2 VPKs.

ThisNekoGuy commented 4 years ago

So, does this simply mean that mod authoring in Linux for L4D2 is impossible?

SupinePandora43 commented 3 years ago

tf2 vpk_linux32 can create archives. but it shows error when trying to extract:

$ sudo vpk x kiyoshi_pyro.vpk models/weapons/c_models/c_pyro_animations.mdl
extracting models/weapons/c_models/c_pyro_animations.mdl
Unable to create 'models/weapons/c_models/c_pyro_animations.mdl'.

without specifying file to extract it doesn't print error, but still, doesn't extract file

L1pE commented 3 years ago

tf2 vpk_linux32 can create archives. but it shows error when trying to extract:

$ sudo vpk x kiyoshi_pyro.vpk models/weapons/c_models/c_pyro_animations.mdl
extracting models/weapons/c_models/c_pyro_animations.mdl
Unable to create 'models/weapons/c_models/c_pyro_animations.mdl'.

without specifying file to extract it doesn't print error, but still, doesn't extract file

Same here, I remember being able to extract VPKs with it years ago though.

XandrosDarkstorm commented 1 year ago

Those of you, who are still looking for a way to pack\unpack VPKs, use this Python script: https://github.com/ValvePython/vpk I have downloaded the repository archive, extracted "vpk" folder and moved "cli.py" out of "vpk" folder. Then i changed the first line in cli.py so it looks for "python3" instead of "python". And it works. Make sure to specify version 1 (-cv 1) when creating new vpk for Left 4 Dead 2.