Skip to content

4.1 Linux: Using VTFEdit under WINE

Sloofy edited this page Nov 12, 2020 · 1 revision

Prerequisites


Taken from u/Comrade-Viktor's comment on r/SFM

In order to have TF2 use the image textures that we want, we need to have the file as a .vtf (Valve Texture Format). Unfortunately, VTFEdit (the program that lets us convert our images) isn't native to Linux, nor does it run out of the box through WINE. This is because VTFEdit is a 32-bit program. Here's how to resolve that.


  1. Open the terminal and type WINEPREFIX=~/.newprefix32bit WINEARCH="win32" winecfg to make a new 32-bit version of WINE. This will open WINECFG.
  2. Once in WINECFG, change Windows version to Windows XP then exit.
  3. Type into console WINEPREFIX=~/.newprefix32bit winetricks.
  4. Select Select the default wineprefix.
  5. Select Install a windows DLL or compoment.
  6. Install .NET 3.5 for good luck and Visual C++ 2005 Libraries.
  7. Go to the same directory as where your VTFEdit installer is and type WINEPREFIX=~/.newprefix32bit wine "THE PATH TO THE INSTALLER".

Essentially, every time we wish to use the 32-bit version of WINE we've created, we can prefix the wine command with WINEPREFIX=~/.newprefix32bit. VTFEdit should now be working as it should.

Clone this wiki locally