custom model not finding .VMT/.VTF

DOMINATOR

L1: Registered
Jun 20, 2009
11
0
probably just missing something very minor/simple. just cant find it.

modelviewer says it cant locate the .vmt
help1.jpg


showing the directory of the vmt and whats written in the .qc file
help2.jpg


the actual .vmt file.
help4.jpg



i've recreated everything about 5 times. cant find whats wrong.
 
Last edited:

ardysqrrl

L4: Comfortable Member
Oct 26, 2009
173
159
the .vmt doesn't seem to list the vmt path properly (it's in materials/models, not just models/)
 
Jun 19, 2009
812
814
Also, in the .qc file the entire path is not necessary. Instead, just use "models\props_voltage\"

And don't put "gen_case_2.vmt" in there either. The cdmaterials line is just the folder where the texture is in.

Take a look at an example Axe I made:
Code:
$cd "C:\Users\ALX\Desktop\My Dropbox\Blender Projects\Axe Hatchet\output"
$modelname "weapons\c_models\c_wood_machete\c_wood_machete.mdl"
$model "Body" "c_hatchet_reference.dmx.smd"[COLOR="Yellow"]
$cdmaterials "models\weapons\c_items\"[/COLOR]
$hboxset "default"
$hbox 0 "weapon_bone" -0.87 -1.50 -10.00 0.78 10.50 17.00
$surfaceprop "metal"
$illumposition -0.028 0.000 1.604
$sequence idle "c_hatchet_reference.dmx.smd" fps 30.00
$collisionmodel "c_hatchet_reference.dmx.smd" {

	$mass 1.6
	$inertia 1.00
	$damping 0.00
	$rotdamping 4.00
}

Notice that the cdmaterials line points to a folder rather than a file. Whatever material you had applied to the model when you exported it must be named exactly that and placed in the folder designated by the cdmaterials line. So if you applied "gen_case_2.tga", then you must make the .vmt named "gen_case_2.vmt" and put it in the right folder.
 
Last edited:

DOMINATOR

L1: Registered
Jun 20, 2009
11
0
the .vmt doesn't seem to list the vmt path properly (it's in materials/models, not just models/)

changed. didnt work though.

Also, in the .qc file the entire path is not necessary. Instead, just use "models\props_voltage\"

And don't put "gen_case_2.vmt" in there either. The cdmaterials line is just the folder where the texture is in.

changed. didnt work either. :(
 
Last edited:

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
No, the $basetexture line automatically assumes that it's in materials/.

Your $cdmaterials and $cd are wrong; they should just be models/props_voltage/.
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
It's supposed to be relative to the tf/ folder; currently you've input the entire path from the root drive.
 

Mr. Happy

L6: Sharp Member
Jul 16, 2008
320
158
The $cd line is correct guys. If it was incorrect there wouldn't be ANY model.
But if you just put the QC file in the same directory as the SMD files there is no need for it at all. IMO that is easiest way.


Make sure cdmaterials reads:
$cdmaterials "models/props_voltage"

And your vmt:
$basetexture "models/props_voltage/gen_case_2"

If you are still having problems open your SMD in a text editor (Notepad++ is a good choice) and look through it for your texture name. Make SURE your texture name in the SMD is gen_case_2 (file type irrelevant).

If it is NOT you can always use $renamematerial
 

DOMINATOR

L1: Registered
Jun 20, 2009
11
0
The $cd line is correct guys. If it was incorrect there wouldn't be ANY model.
But if you just put the QC file in the same directory as the SMD files there is no need for it at all. IMO that is easiest way.


Make sure cdmaterials reads:
$cdmaterials "models/props_voltage"

And your vmt:
$basetexture "models/props_voltage/gen_case_2"

If you are still having problems open your SMD in a text editor (Notepad++ is a good choice) and look through it for your texture name. Make SURE your texture name in the SMD is gen_case_2 (file type irrelevant).

If it is NOT you can always use $renamematerial
ok THANK YOU!
i had everything right except i had "gen_case_2" at the end of my $cdmaterials