Snarkpit Articles


Alright, so you got your old HL1 map and you want to convert it to HL2, but you don't have your custom textures converted. Well this is what I am going to teach you.

First of all you're going to need your custom wad file. For this tutorial I am using the cstrike.wad from the Counter-Strike.

What you need to do is go to your hard drive and create an HL1 folder somewhere. Then once inside make a new directory. This should be that mods directory. (For example: "cstrike" for counter-strike)
Put your .wad file in that directory. For me it would be C:hl1cstrike.



Now go to your sourcesdkbin folder. You will see the program xwad.exe. Right click on it and click Create Shortcut. Take this shortcut and put it in your C:hl1modname folder; for me this would be C:hl1cstrike.





Right click on that shortcut and go to properties.
Under Target it should say something like: "C:Program FilesSteamSteamApps<username>sourcesdkbinxwad.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:hl1cstrike -wadfile C:hl1cstrikecstrike.wad
Hit apply then ok.

Before we go onto the next step you are going to need to copy the GameInfo.txt from sourcesdklauncher to your C:hl1cstrike folder.



Now we are ready to convert your wad. Find your C:hl1modname 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 all said and done you will have a materials and materialsrc folders in your C:hl1modname folder. You now need to compile your textures so that they will show up in game. What xwad.exe did for you is convert all your textures to the apropriate size and save them as .tgas and create .vmt files for those textures.



So now lets run these textures through vtex.exe.
First go to your "counter-strike sourcecstrikematerials" folder and create a new folder witht the same name as your old wads name. For me this would be cstrike.

Then go to your sourcesdkbin folder and find vtex.exe. Create a shortcut like before and put it in your C:hl1modname folder. After the "C:Program FilesSteamSteamApps<username>sourcesdkbinvtex.exe" you are going to add this C:hl1yourmodmaterialsrcwadname*.tga
(For me it would be C:hl1cstrikematerialsrccstrike*.tga)

This should create the .vtfs' (valve texture files) and place the compiled versions in the "counter-strike sourcecstrikematerialscstrike"
After the process finishes, copy all the other files located in "C:HL1CSTRIKEmaterialscstrike" to your "counter-strike sourcecstrikematerialscstrike" folder.

Your custom textures will now load up in the Valve Hammer Editor and in game.

Applying Converted textures to old maps


Now for the best part. Open up Valve Hammer Editor to the mod you installed the textures under.

Now open up the old .map or the .vmf (if you already converted the brushes.) Go to:

File : Convert WAD -> VMT



If you did everything like I said it should convert all the textures without a problem and once its finished you will see your old map textured exactly how it was before, down to the last alignment. Refreshing isn't it!

Anyways, its been fun. I hope some of you will find this tutorial useful. Let me know if you get confused so I know what to rewrite and such.

(*For advanced users, after the .wad file has been ran through xwad.exe you can modify the .vmt files (in the materials folder) so you can give things bump maps or reflections, etc..) I have written a tutorial about that since if you are interested.


Post ReplyView Topic
Discussion
0 starsPosted by m82sniper on Sat Dec 1st 2007 at 4:35pm

Great tut! Very helpful. Now i have over 6000 Half life 1 textures!
0 starsPosted by FIDDLER on Mon Jun 25th 2007 at 10:59am

Good to see this... I have over 200 wad files on a CD somewhere that I used for HL1 mapping. Will be good to at least be able to salvage some of them for HL2 mapping. Haven't seen very many custom texture sets for HL2 out.
0 starsPosted by Damic on Thu Oct 6th 2005 at 5:47pm

@ICHEY103, i've got that to now but vtex wont run here smiley

Ok my fault. It runs now, double check your directorys smiley
0 starsPosted by ICHEY103 on Thu Aug 25th 2005 at 9:24pm

It didnt work followed directions but to no success heres a pic of what it is now


<a href="http://img302.imageshack.us/my.php?image=newbitmapimage6gq.png" target="_blank">http://img302.imageshack.us/my.php?image=newbitmapimage6gq.png</a>


i use the on through steam so ??????????????????????????????


it comes up as a black and purple checkerboard
0 starsPosted by Damic on Sat May 7th 2005 at 2:10pm

@Geusmyname: you forgot todo this

After the &quot;C:Program FilesSteamSteamApps&lt;username&gt;sourcesdkinvtex.exe&quot; you are going to add this C:hl1yourmodmaterialsrcwadname*.tga
(For me it would be C:hl1cstrikematerialsrccstrike*.tga)

look @ *.tga
0 starsPosted by Guessmyname on Thu Jan 27th 2005 at 8:21pm

I'm trying to get the old (original HL1) wads over the hl2 but in vtex.exe I get this:

<a href="http://img142.exs.cx/img142/9634/helpme2xd.jpg" target="_blank">http://img142.exs.cx/img142/9634/helpme2xd.jpg</a>
0 starsPosted by kazigmal on Sun Dec 26th 2004 at 10:09pm

I am having the same problem as you were Worldcraft. What did you do to fix the problem? I followed the tut to the letter, (or so I believe) and my textures are not showing up in game or Hammer.
0 starsPosted by WorldCraft on Mon Dec 20th 2004 at 10:13pm

Thanks for the offer darkdruid but I have made some good progress on my end. I did have something out of place that I fixed and although I still cant get the map to show up with any textures applied I now see all my custom textures in the Hammer texture browser =). I also converted the old halflife.wad textures as well. As a side note I find it interesting that browsing the textures now is much faster with the huge addition of available textures. I would have thought the reverse would be true. When I just had the HL2 texture set only browsing them was very slow for some reason. Go figure! Anyway I appreciate your time and effort in regards to this matter and it looks like Im good to go now. Thanks again. WC
[author]
Posted by darkdruid on Mon Dec 20th 2004 at 4:20pm

If you send it to me I will see if it works on my computer if you want.
0 starsPosted by WorldCraft on Mon Dec 20th 2004 at 2:01am

Now that I just read my post Im thinking you probably mean the Hammer game config directories and no I havent changed anything there and a quick check shows that things are how they should be.
Post ReplyView Topic