Steam for Linux

Steam for Linux

Pietas 25 Jan, 2014 @ 10:48pm
Opening .vpk and vtf files on Linux?
I've been debating on where to post this, but since it's applicable to all Valve games, I hope it's OK here.

I'd like to open .vpk and .vtf files on Linux (for modding purposes), but the developer wiki hasn't helped me out here-- GCFscape only works on Windows.

Is there some other tool I don't know about, or maybe a way to get GSCscape/VTFEdit running with WINE?
< >
Showing 1-14 of 14 comments
Rhyndos 1 Feb, 2014 @ 2:15pm 
I couldn't run VTFEdit on Wine either, but I'm a novice with Linux.
Dusk of Oolacile 2 Feb, 2014 @ 2:10pm 
The file format is officially specified by Valve. You can write an unpacker anytime you want.

https://developer.valvesoftware.com/wiki/VPK_File_Format
Pietas 17 Feb, 2014 @ 9:15pm 
Minor update in case anyone's searching for the same issue: you can run GCFScape and VTFEdit via Wine if you also install the .Net platform within Wine. I use winetricks, and those two now work like a charm.

I'm still working on getting Valve's linux native vpk_linux32 to work-- I've followed the tutorial given on the dev wiki, and can't even get it to execute, even if I use the shell script they provide. Will update again (again, in case someone else needs this) once I've got that sorted.
hirsute 20 Feb, 2014 @ 6:15pm 
cd "SteamApps/common/Team Fortress 2/bin" LD_LIBRARY_PATH=. ./vpk_linux32 l ../tf/tf2_lv_dir.vpk
Pietas 20 Feb, 2014 @ 6:21pm 
Does it use the same syntax as the windows version to pack files? That's the last thing I was looking for.
hirsute 20 Feb, 2014 @ 6:40pm 
Dunno, but I'd assume yes ? I never tried to create VPKs, merely extracted them to dig around.
Pietas 20 Feb, 2014 @ 7:06pm 
Originally posted by hirsute:
Dunno, but I'd assume yes ? I never tried to create VPKs, merely extracted them to dig around.

Cool. GCFscape via WINE works perfectly, but being able to pack stuff will be a MASSIVE improvement when sorting out workshop mods that have random conflicts.
Napalm 8 Mar, 2014 @ 12:24pm 
They directions for running it on 64bit systems

https://developer.valvesoftware.com/wiki/VPK#Linux_users

Listing and extracting works on some VPKs and segfaults on others.
Haze33E 15 Mar, 2016 @ 4:32pm 
@Pietas Sorry for the necro but I'm on Ubuntu 14.04 32bit. What would I need to do to be able to open/edit vtf vmt vpk files. I'm looking into custom crosshairs and modeling for team fortress 2.
Last edited by Haze33E; 15 Mar, 2016 @ 4:32pm
tuxutku 8 Apr, 2018 @ 8:44am 
EDIT: this project is borked and doesn't work/worked anyways
use Tiny7 in a vm, thats the best way to do it:
https://archive.org/details/Tiny7

https://github.com/linux-source-tools/gimp-plugin-vtf is the linux version of gimp-vtf-plugin, i have installed it an it works
https://user-images.githubusercontent.com/24626743/38469393-9bb61328-3b5c-11e8-81ff-003207adceb0.png
Last edited by tuxutku; 3 Feb, 2019 @ 5:04am
Managor 16 Aug, 2020 @ 7:01am 
The tool keeps complaining that the images are not powers of two so I made a minor edit to remove the functionality. Now you can view your TF2 sprays https://gitlab.com/Managor/gimp-plugin-vtf
Last edited by Managor; 9 Dec, 2020 @ 6:06pm
https://pypi.org/project/vpk/

cli tool for VPKs, a bit late but I hope this helps someone! <3
https://github.com/linux-source-tools

This repo might also help ^^
< >
Showing 1-14 of 14 comments
Per page: 1530 50