How to edit materials in any source game.

 by Kirbsome!
Featured
If you've ever played a source game (hl2, css, portal), you have probably seen one or more materials that just wasn't good enough. It is also likely you have thought "What if i could edit this?" With these steps, you can!

note:
It doesn't have to be steam, as long as it has a .gcf library and uses the source engine
Also:
First instructable!

Feedback is lovely!
Please rate and comment!
 
Remove these adsRemove these ads by Signing Up

Step 1: You need programs.

Neither can you find, nor can you edit the materials without any additional programs.
These are your saviors in that matter:

GCFscape:
A program used to open GCFs "Game Cache Files", which are actually folders containing all the games files.
Get it here:
http://nemesis.thewavelength.net/index.php?p=26

VTFedit:
While browsing the gfc, this program is used to open VTFs "Valve Texture File" These are the materials and sprites used in your game of choice.
Get it here:
http://nemesis.thewavelength.net/index.php?c=178
1-40 of 43Next »
anonymousrandomguy says: Feb 19, 2010. 9:42 PM
"I use mspaint, but photoshop is probably better."
Probably? lmao

Anyway, nice instructable, well written.
Hopefully it gets a few people into skinning.
Kirbsome! (author) in reply to anonymousrandomguyFeb 20, 2010. 5:15 PM
Thanks for the feedback!
bigbrainkid says: May 22, 2010. 6:44 PM
It's a nice instructable, but I have one question. I'm editing the metal_box.vtf texture so that all cubes look like companion cubes, but I can't figure out where to save it to. I followed the destination and everything.
Kirbsome! (author) in reply to bigbrainkidMay 23, 2010. 3:52 AM
...\portal\portal\materials\models\props
bigbrainkid in reply to Kirbsome!May 23, 2010. 4:07 AM
I'M at C:\Program Files\Steam\steamapps\bigbrainkid\portal\portal, but there doesn't seem to be a materials folder.
Kirbsome! (author) in reply to bigbrainkidMay 24, 2010. 6:50 AM
so make a new one
YouDucks32 says: Aug 16, 2011. 1:10 PM
There is no 'Steam' folder in my Program Files. ?
Kirbsome! (author) in reply to YouDucks32Aug 18, 2011. 7:33 AM
What operating system do you use? On Windows 7 64bit, it's in
C:/Program Files (x86)/Steam. I'll add this to the instructable now.
Also, if you're using a pirated game you might not even have steam.
bkidwell in reply to YouDucks32Oct 4, 2011. 8:24 PM
it might be program files / 86 or something like that
evilmadcow in reply to anonymousrandomguyDec 27, 2011. 12:46 PM
dude- you have to use a program that recognizes transparency: MS paint doesn't
do that.
megadarkwood says: Jul 5, 2012. 2:03 PM
Hey can you find me the jel and the jel dispenser from portal? and possibly an .avi or something? i want to use it for a movie. if you cant its ok..
THANKS!
Kirbsome! (author) in reply to megadarkwoodJul 9, 2012. 6:46 AM
I'm guessing you mean the mobility gels from portal 2?
.avi is a video format. All in-game textures are in .vtf (and possibly .tga) format.
You'd probably be better off just recording the game with fraps or something.

If you really want to find those files, look for them yourself. I don't mean to be rude or anything, just consider it a learning experience.
megadarkwood in reply to Kirbsome!Jul 18, 2012. 6:59 PM
Yes and ok. Thanks for ur reply tho and sorry for my late one
GLaDOS V3 says: Feb 25, 2012. 3:01 PM
How do I do this to The Orange Box for xbox 360?
Kirbsome! (author) in reply to GLaDOS V3Feb 26, 2012. 7:23 AM
I have no idea. As far as I know, The Orange Box was ported to X360 by EA, and has loads of differences from the PC version.
GLaDOS V3 in reply to Kirbsome!Feb 26, 2012. 10:27 AM
could you do this on any xbox 360 game?
Kirbsome! (author) in reply to GLaDOS V3Feb 26, 2012. 12:19 PM
What?
I just said I don't even know how the Source engine works on 360.
Now you're asking me about all the other games?
GLaDOS V3 says: Jan 2, 2012. 1:20 PM
what file is that?
Kirbsome! (author) in reply to GLaDOS V3Jan 5, 2012. 11:43 AM
If you mean the Weighted Companion Cube, it's located in
materials/models/props/metal_box_skin001.vtf
albylovesscience says: Aug 11, 2009. 4:39 PM
Garys mod rocks and who is that smily face guy
coco911231 in reply to albylovesscienceSep 12, 2009. 2:25 PM
his name is the awesome face
evilmadcow in reply to coco911231Dec 27, 2011. 12:47 PM
no it's epic face
Kirbsome! (author) in reply to albylovesscienceAug 12, 2009. 5:35 AM
garrysmod owns indeed, it is awesome smiley

(if you liked it, download is www.garrysmod.org/downloads/?a=view&id=74574)
GeneralMastiff in reply to Kirbsome!Mar 11, 2011. 1:59 PM
for the people who don't own Garry's Mod:



sorry, you have never expiericed awesomenesss before
Spencer . D says: Aug 23, 2011. 2:31 PM
Can you do this in mine craft
Kirbsome! (author) in reply to Spencer . DAug 29, 2011. 7:39 AM
Actually, it's much easier in minecraft. In the minecraft.jar file it's just a plain PNG file. There are plenty of tutorials on making "texture packs", just google it.
evilmadcow in reply to Kirbsome!Dec 27, 2011. 12:44 PM
that helps with my plans.also- to find your .minecraft file click on run in you thing that says windows & type '%appdata%
bkidwell says: Oct 4, 2011. 8:21 PM
how do i add my .vtf pic back to the game immmm sooooo confused but ur great maybe you can help
Kirbsome! (author) in reply to bkidwellOct 5, 2011. 11:33 PM
You need to be more detailed be fore I can help you. Do you have the .VTF? Are you confused about where to put it? Is there a problem with exporting the file from VTFedit?
mkarafiat says: Sep 5, 2011. 10:56 AM
can you do this in need for speed undercover
Kirbsome! (author) in reply to mkarafiatSep 8, 2011. 1:08 AM
I don't know anything about that game. If it's a Source game, the process should go smoothly.
TekoMuto says: May 31, 2011. 8:37 AM
snooPing as usual I see....
zigzagchris says: May 30, 2011. 8:54 AM
Defacing Companion Cube...
Kirbsome! (author) in reply to zigzagchrisMay 31, 2011. 6:29 AM
Well, what are you going to do about it? Threaten to stab me?
milospalic1 says: May 19, 2010. 8:17 AM
wich file i must put in, the jpg i tried it but i cant put it in this folder :( i'm totaly confused
Kirbsome! (author) in reply to milospalic1May 20, 2010. 4:54 AM
So am I, you really must be more descriptive.
Derin says: Apr 17, 2010. 10:10 PM
From my FSX retexture experience, if the bump maps are separate, you can just leave the bump maps alone.
Kirbsome! (author) in reply to DerinApr 18, 2010. 6:13 AM
Of course, but if (example) the heart was bumped, you wouldn't want a smiley with those bumps.
naruto the ninja13 says: Apr 8, 2010. 10:27 AM
Weighted Awesome Face Cube




EPIC
Duct Tape Dude says: Feb 14, 2010. 7:47 PM
Could this work with a photo or just online based images? Cuz I thought a Weighted ex-girlfriend cube as Companion Cube would be just hilarious!
1-40 of 43Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!