• Missing Texture Recompiled TF2 Hat
    2 replies, posted
Recompiling tf2 hat into gmod. qc [code] $cd "C:\Users\Clark\Desktop\Export\" $modelname "st\hats\crown.mdl" $model "Body" "crown.dmx.smd" $cdmaterials "st/hats/" $hboxset "default" $hbox 0 "bip_head" -4.303 -8.948 -5.895 5.036 0.000 4.384 $surfaceprop "metal" $illumposition 0.755 0.366 4.474 $sequence ref "ref" fps 30.00 [/code] smd (the start of it) [code] version 1 nodes 0 "bip_head" -1 end skeleton time 0 0 0.000000 0.000000 0.000000 3.141593 -0.000000 0.000000 end triangles st/hats/crown.tga 0 0.128932 4.991711 5.784407 -0.422079 -0.228914 0.877182 0.746203 -0.647859 1 0 1.000000 0 0.153406 5.262760 5.894743 -0.422079 -0.228914 0.877182 0.746203 -0.593641 1 0 1.000000 0 -0.071165 5.267453 5.772437 -0.422079 -0.228914 0.877182 0.728374 -0.593641 1 0 1.000000 [/code] vtf [code] "VertexLitGeneric" { "$baseTexture" "st/hats/crown" "$bumpmap" "st/hats/flat_normal" } [/code] I'm confused on what is causing the problem.
Well, right now it's opening "materials/st/hats/" ($cdmaterials), then appending another "st/hats/" (smd), so it ends up trying to look in "materials/st/hats/st/hats/". [QUOTE]st/hats/crown.tga[/QUOTE] Change all those to just 'crown'. You don't need the extension. Also, I recommend you use this QC instead: [CODE]$definevariable modelFile crown.dmx.smd $modelname "st\hats\crown.mdl" $model Body $modelFile$ $cdmaterials "st/hats/" $surfaceprop metal $sequence ref $modelFile$ FPS 30[/CODE]
Thanks I got it to work.
Sorry, you need to Log In to post a reply to this thread.