[img]http://img576.imageshack.us/img576/3997/texturewat.png[/img]
I'm almost done with my first ever custom model, but now the .vmt doesn't want to work. I get the error above when trying to save it.
Could someone help me?
Try putting "'s around the stuff on that line.
So "$basetexture" "models/hat"
Just open it up in notepad, easier to edit in notepad.
Yeah I think vtfedit is asinine about the quotation tags
I still have purple and black checkers in the model viewer.
I opened hat.mdl in the hex editor just for kicks, and on the very bottom I see (I'm leaving out the boxes):
Materials/Models
and then it just stops. Is the model not referencing any textures?
take a look at the smd.
Just open it in a text editor
I know I compiled it with the UV. I'm not too sure what to look for in an .smd though.
Here's my .qc:
[code]$modelname BlenderSoda.mdl
$cdmaterials "models"
$scale 2
$surfaceprop metal
$staticprop
$body mybody "BlenderSoda.smd"
$sequence idle "BlenderSoda" fps 1[/code]
well look if there's a hat texture referenced in the smd
It's a bunch of numbers with the word Material before every string.
In that case, it's looking for the material materials/models/material.vmt
Oh. Alright. Going to test that.
Nope, that wasn't it. Still pink/black.
Shall I copy/paste the entire smd into a code box to show you?
Sorry for the bump, but I really am at a loss here.
I should ideally look something like
[code]
eclipse.bmp
9 -9.637829 3.022205 52.261333 -0.549509 0.833388 0.059191 0.828259 -0.784948 1 9 1.000000
9 -9.117063 3.070753 50.831490 -0.330677 0.939582 -0.088534 0.806804 -0.760185 1 9 1.000000
9 -10.080735 2.805895 51.357609 -0.531464 0.844196 0.069844 0.805679 -0.784293 1 9 1.000000
eclipse.bmp
9 -10.080735 2.805895 51.357609 -0.531464 0.844196 0.069844 0.805679 -0.784293 1 9 1.000000
9 -10.245751 2.220098 52.689316 -0.824340 0.466227 0.321085 0.826364 -0.807574 1 9 1.000000
9 -9.637829 3.022205 52.261333 -0.549509 0.833388 0.059191 0.828259 -0.784948 1 9 1.000000
eclipse.bmp
[/code]
Bunch of numbers, texture, bunch of numbers.
If there's no texture, than you didn't apply it or just applied something odd.
Oh, I managed to get it working. The .vmt was referencing the wrong texture, but also I had to rename the .vmt material. I now have the model working in Gmod, albeit as a slightly improperly sized effect.
Thanks for the help.
Sorry, you need to Log In to post a reply to this thread.