• TF2 Hat texture problem. Need help asap!
    8 replies, posted
Hi, I decided to create a hat for tf2 (for workshop submition). I already did a model (work fine), created a texture (fine, too) but everything is well in blender. When I opened a model in HLMV (compiled and with textures converted to vmt and vtf) model had a purple and black texture instead of my orginal texture. How it looks in Model Viewer: [IMG]http://imageshack.com/a/img661/6541/NgcIhD.png[/IMG] My Material file (vmt): [code] "VertexLitGeneric" { "$baseTexture" "player\items\scout/hat_helmet" "$selfillum" "1" } [/code] My VTF: [url]https://www.mediafire.com/?dv98is3kdlsbmtc[/url] My QC file: [code] $modelname "player\items\scout\hat_helmet.mdl" $bodygroup "Body" { studio "hat_helmet.smd" } $cdmaterials "\models\player\items\scout\" $surfaceprop "cloth" $contents "solid" $sequence "idle" "idle.smd" { fps 30 loop } $collisionmodel "hat_helmet.smd" { $mass 5 $inertia 1 $damping 0 $rotdamping 0 } $lod 2 { replacemodel "hat_helmet.smd" "lod02.smd" } $lod 1 { replacemodel "hat_helmet.smd" "lod01.smd" } [/code] I tried to create a source texture format from both .tga and .png (and .jpg, too). Please help me :( Additional info: Texture is created in Gimp Exported from .tga and .png to .vtf using VTFEdit by Nemesis Model tested and viewed in TF2's ItemTest and TF2's Model Viewer Thats all.
[QUOTE]"$baseTexture" "player\items\scout/hat_helmet"[/QUOTE] Forward slash?
Open your SMD with notepad++ and see if the texture name is the same as "hat_helmet". You'll find the right name after 'triangles' : [code] (...) end triangles <texturename>.<extension> <numbers> (...) [/code]
[QUOTE=ferdam;47230228]Open your SMD with notepad++ and see if the texture name is the same as "hat_helmet". You'll find the right name after 'triangles' : [code] (...) end triangles <texturename>.<extension> <numbers> (...) [/code][/QUOTE] Yes I see those in code, but extension is .tga. Is it wrong? [QUOTE=Buck.;47230197]Forward slash?[/QUOTE] I found that in tf2's medkit .vmt, so I think if this slash is in official .vmt, so maybe it will fix my problem, but it isn't :(
[QUOTE=JakusPL;47230259]Yes I see those in code, but extension is .tga. Is it wrong? I found that in tf2's medkit .vmt, so I think if this slash is in official .vmt, so maybe it will fix my problem, but it isn't :([/QUOTE] The extension doesn't really matter. If you said you found 'hat_helmet' in the code, then the SMD is correct. Next thing you should 'fix' is the $cdmaterials. I'm not sure if it's causing your textures to be missing, but the first backslash shouldn't be there, try just: [code]$cdmaterials "models\player\items\scout\"[/code]
Thanks, I will test it
Oh wait, I think I got it. Your vmt's basetexture command isn't pointing to the right path where the texture is located at: [code] "$baseTexture" "player\items\scout\hat_helmet"[/code] It should be: [code] "$baseTexture" "models\player\items\scout\hat_helmet"[/code] Also, don't forget to put the vmt and vtf files in the right place: "<root>\materials\models\player\items\scout\"
ok
Not work, sorry :( Still Need help [editline]28th February 2015[/editline] I think it's must be a VTF issue, not vmt or QC but it's only my theory
Sorry, you need to Log In to post a reply to this thread.