Made a Garry's Mod playermodel, but textures are not showing
8 replies, posted
So, I have successfully made a working playermodel in Garry's Mod, with all animations and such, but the textures that are in the playermodel's folder are not working, and the model is all pink and black.
Here's a picture:
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=788627565[/url]
The .qc file tells it to look in the EXACT location the textures are in, but nothing is working!
In the HLMV, (Half Life model viewer) this message shows up: [B]model attempted to load one or more vmts it can't find.
[/B]
I have read about this message but not got a single good answer, so if you know how I could get my playermodel to display the VTF files, I would be so happy.
Thanks, -Komodo
post the code from the .qc file and the .vmt files
[QUOTE=Chuckymore;51274245]post the code from the .qc file and the .vmt files[/QUOTE]
[url]http://pastebin.com/yRdECDX3[/url] = QC
[url]http://pastebin.com/2wRqgvc7[/url] = VMT
Quick bit of infomation, (Don't know if it will help or not) the model didn't come from Garry's Mod, it came from a GTA 5 mod
you got the path from $basetexture and $bumpmap wrong
fix it by adding "models\player\civilwar\antman\" before their name
[QUOTE=SevenBillion;51274722]Ah, here's the problem.
The $basetexture and the $bumpmap line isn't matched up with the $cdmaterials line.
Your $cdmaterials is looking for the materials in this directory.
[CODE]$CDMaterials "models\player\civilwar\antman\"[/CODE]
It's looking for the materials in models\player\civilwar\antman\.
However, your $basetexture and $bumpmap is in a different directory.
[CODE] "$basetexture" "31_antmancivilwarmovie_0.2_0_0"
"$bumpmap" "31_antmancivilwarmovie_0.2_0_0_norm"[/CODE]
You need to change the $basetexture and $bumpmap lines to the following.
[CODE] "$basetexture" "models\player\civilwar\antman\31_antmancivilwarmovie_0.2_0_0"
"$bumpmap" "models\player\civilwar\antman\31_antmancivilwarmovie_0.2_0_0_norm"[/CODE]
Also, make sure you move the vmt and vtf files to that specific directory. Then, this should fix your issue.[/QUOTE]
Thanks for your response, but I did what you said and still a pink and black model, and the VTF and VMT file have always been in that exact directory(materials/models/player/civilwar/antman/)
Here's my new VMT file: [url]http://pastebin.com/ehSSHJWm[/url]
If that didnt work then it's time to check the reference .smd file using text editor (notepad). See if the texture names are the same as your .vmt file. The vtf file does not need to be the same name, but it's essential for vmt.
Edit:
Here's an example
[IMG]http://i.imgur.com/5dww3cN.jpg[/IMG]
That highlighted name must be the same as your .vmt file, in this case, there must be a file named [U]vortigaunt_base.vmt[/U] in the directory set $cdmaterials in QC.
Thanks it worked!
Sorry, you need to Log In to post a reply to this thread.