Steam for Linux

Steam for Linux

Pietas Jan 25, 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-15 of 15 comments
Rhyndos Feb 1, 2014 @ 2:15pm 
I couldn't run VTFEdit on Wine either, but I'm a novice with Linux.
Dusk of Oolacile Feb 2, 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 Feb 17, 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 Feb 20, 2014 @ 6:15pm 
cd "SteamApps/common/Team Fortress 2/bin" LD_LIBRARY_PATH=. ./vpk_linux32 l ../tf/tf2_lv_dir.vpk
Pietas Feb 20, 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 Feb 20, 2014 @ 6:40pm 
Dunno, but I'd assume yes ? I never tried to create VPKs, merely extracted them to dig around.
Pietas Feb 20, 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 Mar 8, 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 Mar 15, 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; Mar 15, 2016 @ 4:32pm
tuxutku Apr 8, 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; Feb 3, 2019 @ 5:04am
Managor Aug 16, 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; Dec 9, 2020 @ 6:06pm
EdenIsASpood May 30, 2024 @ 10:20pm 
https://pypi.org/project/vpk/

cli tool for VPKs, a bit late but I hope this helps someone! <3
EdenIsASpood May 30, 2024 @ 10:23pm 
https://github.com/linux-source-tools

This repo might also help ^^
Cinna Cat Cwunch Dec 15, 2024 @ 6:27pm 
Originally posted by TrollFace:
https://github.com/craftablescience/VPKEdit, this might work
For VPKs, definitely. I have been using the program myself and it works just as it would under Windows. For VTFs, you would still have to use VTFEdit (original or Reloaded) under wine to be able to manipulate them, if you only go by GUI that is. For CLI, you can use this[github.com] instead. I'm surprised there isn't a gui version of this program yet.
< >
Showing 1-15 of 15 comments
Per page: 1530 50