-
Notifications
You must be signed in to change notification settings - Fork 0
4.1 Linux: Using VTFEdit under WINE
Sloofy edited this page Nov 12, 2020
·
1 revision
- WINE (Website)
- VTFEdit (Archive, Valve Developer Wiki)
- Winetricks (AUR, Ubuntu or similar)
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.
- Open the terminal and type
WINEPREFIX=~/.newprefix32bit WINEARCH="win32" winecfg
to make a new 32-bit version of WINE. This will open WINECFG. - Once in WINECFG, change Windows version to
Windows XP
then exit. - Type into console
WINEPREFIX=~/.newprefix32bit winetricks
. - Select
Select the default wineprefix
. - Select
Install a windows DLL or compoment
. - Install
.NET 3.5
for good luck andVisual C++ 2005 Libraries
. - 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.