Re-Texturing a Prop

biskuu

L2: Junior Member
Oct 25, 2014
97
22
I am looking for a way to changer the textures of a prop.
I've decompiled it but the only thing that looks like texture related inside the .qc file is "$CDMaterials "models\props_badlands\""

Isn't there a way to edit the .qc in order to replace the current texture with another texture? The way it is right now it looks as if it looks for the model's textures inside this folder.
 

iiboharz

eternally tired
aa
Nov 5, 2014
857
1,291
You don't need to decompile a model to edit its texture, you need to find its .VTF file and edit that.
 

biskuu

L2: Junior Member
Oct 25, 2014
97
22
But won't players see this prop with that texture when I pack it on my bsp won't players see this texture on other maps with the same prop?
Making a new skin sounds good, how would I do that?
 

MaccyF

Notoriously Unreliable
aa
Mar 27, 2015
914
1,544
decompile, go to $cdmaterials location and grab the textures you want to edit, edit textures and save as vmt&vtf using vtfedit (with a different name than the origional, but in the same location) Go into qc and add "$texturegroup skinfamilies" below $cdmaterials so that it looks like this:

$cdmaterials "models\props_airport\chairs"

$texturegroup skinfamilies
{
{ "chair_2_diffuse" }
{ "chair_2_diffuse_b" }
{ "chair_2_diffuse_c" }
{ "chair_2_diffuse_d" }
}

or something similar, then recompile with guistudiomdl



If you can't find which textures you need to edit, open the model in hl2modelviewer and look at the loaded vmts
 

biskuu

L2: Junior Member
Oct 25, 2014
97
22
i've been trying tons of stuff the past 3,5 hours and the closest i managed to make it is this: http://i.imgur.com/626dh1A.png
basically i want to retexture the badlands spire and i actually found a guy who did this: http://files.gamebanana.com/img/ss/maps/51b1fd5767a5b.jpg
I even downloaded the map and opened the .bsp with GCFScape, I've ran in so many problems and did so many things I lost track of everything :(

I tried editing the mdl to change the texture but it shows these purple checkers
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
But won't players see this prop with that texture when I pack it on my bsp won't players see this texture on other maps with the same prop?
I've been told that they fixed that when the game was converted from GCF to VPK.

I mean, it's probably still just good practice to use unique filenames and/or hack props to have additional skins.

decompile, go to $cdmaterials location and etc. etc.
Also, you'll need to add a parameter to rotate it... 270 degrees I think? I forget; something about the decompile process causes the new version to be rotated differently than the original; that's why for example some of the track pieces that were added for Hoodoo or something don't face the same way as the original stock ones.
 

biskuu

L2: Junior Member
Oct 25, 2014
97
22
I tried adding only the vtfs and the prop has the custom textures on Hammer but when I see it in-game it has the default textures.
 

nickybakes

You should've played Rumbleverse
aa
Jul 28, 2015
911
1,739
You don't need to decompile a model to edit its texture, you need to find its .VTF file and edit that.
If you did this, would you just put the VMT and VTF in the materials folder, then pack it into the bsp? Would it show up as the custom texture or the default texture?
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
I'm pretty sure the heirarchy is: Packed content > custom content > default content. If the file is the same name and the same location as the one you're trying to override, it should be working for you, at least, even before you pack it.