Goldsource to Source texture porting
Let's say you have an old Half-Life map ported to the Source engine, but wanted to keep some of the textures as well. First of all you're going to need your custom WAD file. For this tutorial we will be using the
cstrike.wad from Counter-Strike.
What you need to do is to go to your hard drive and create an
HL1 directory somewhere. Then once inside it, make a new directory. This should be the mod's directory (for example:
cstrike for counter-strike). Put your .wad file in that directory. For this tutorial it would be
Now go to your
\sourcesdk\bin directory. You will see the program
xwad.exe. Right click on it and click Create Shortcut. Take this shortcut and put it in your
\hl1\modname directory; for our tutorial it would be
Right click on that shortcut and go to
Target it should say something like:
C:\Program Files\Steam\SteamApps\<username>\sourcesdk\bin\xwad.exe. We are going to need to add a string so that
xwad.exe knows where to find our mod. So after the quotes add this:
-basedir C:\hl1\cstrike -wadfile C:\hl1\cstrike\cstrike.wad. Hit apply, then ok.
Before we go onto the next step you need to copy the
\sourcesdk\launcher\ to your
Now we are ready to convert your wad. Find your
C:\hl1\modname folder. Click on the wad you want to convert and drag it to the
xwad.exe shortcut we just made. It should take a few seconds and show the texture names it is converting and any changes in size it is making to the texture.
After that is done you will have new
materialsrc directories in your
C:\hl1\modname directory. You now need to compile your textures so that they will show up in game. What
xwad.exe did for you is it converted all your textures to the appropriate size and save them as .TGAs and created .VMT files for those textures.
Now, let's run these textures through
vtex.exe. First go to your
\counter-strike source\cstrike\materials directory and create a new directory with your old wad's name. For this tutorial it would be
Then, go to your
\sourcesdk\bin directory and find
vtex.exe. Create a shortcut like before and put it in your
C:\hl1\modname directory. After the
C:\Program Files\Steam\SteamApps\<username>\sourcesdk\bin\vtex.exe you are going to add this
C:\hl1\yourmod\materialsrc\<wadname>\*.tga (for this tutorial it will be
This should create the .vtf's and place the compiled versions in
\counter-strike source\cstrike\materials\cstrike. When the process finishes, copy all the other files located in
C:\hl1\cstrike\materials\cstrike to your
\counter-strike source\cstrike\materials\cstrike directory.
Your custom textures will now load up in the Hammer and in game.
Applying converted textures to old maps
Now, open up Hammer to the mod you installed the textures under.
xwad.exeyou can modify the .vmt files (in the
materialsdirectory) so you can apply bump maps and or reflections.