I dont know if this is the right section, I cant find a /good enough/ section for textures, so I am asking here.
I am trying to remove a skin, the standard skin, from a model but I cant find the vtf. file for it, there are several sheets for skins except just this one and I believe its because the model is one of the existing models from gmod, but just editted to have more skins. What should I do to get rid of the initial skin from the model?
Usually to do this you'd use GCFScape, but even then the texture paths are mazelike, so I'd also suggest getting the path file for the VTF in game, there's probably an addon to do that, my first guess would be the submaterial tool.
the model I am talking about is an addon and not inside gmod but it uses the model texture of the standard model as the intial skin
oh, so do you want to remove that texture from your files or only for that model?
i am not sure what I should be doing actually,
I just want to replace or remove it from the selection of the skins, or maybe there is something I can do with lua to remove it?
Ok, here is a comprensible list of what you need to do to remove a skin:
Decompile the .GMA
Decompile the .MDL
In the QC, search for "$texturegroup" command, it should look something like this:
$texturegroup "thenameoftheskin"
{
{"skin1"}
{"skin2"}
{"skin3"}
{"skin4"}
}
4. Delete the skin you'd want GONE, in this case the main skin, so skin1, you should have this:
$texturegroup "thenameoftheskin"
{
{"skin2"}
{"skin3"}
{"skin4"}
}
5. Save the QC and compile the MDL praying that decompiling didn't ruin anything, shouldn't be a problem if it's a prop
Now that you have the MDL, put it into the models folder or recompile it into a .GMA and put it in your addons folder, this way it won't even use that VTF, which we don't know the location so noone cares what happens to it.
When I decompile the model it gives me several different files but also a QC, how do I recompile it tho ?
That's normal, what decompiler are you using? If it's crowbar, just go to "compile" instead of decompile and select the QC and a path (usually it makes one if you don't set it manually), that way you'll get the MDL files, which are a combination of all the .SMD files that were vomited out of the decompiler.
that's what I did and it gave me all the correct files just that all the skins were the same now, they didnt change when I switched between them but the showed up. The skin that I removed was the initial skin aswell
That's very odd, care to paste the Old and New QC? You might also need to unsubscribe from the addon and delete the .GMA from the addon folder.
Sorry, you need to Log In to post a reply to this thread.