custom model not finding .VMT/.VTF

Discussion in 'Mapping Questions & Discussion' started by DOMINATOR, Mar 15, 2011.

  1. DOMINATOR

    DOMINATOR L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    probably just missing something very minor/simple. just cant find it.

    modelviewer says it cant locate the .vmt
    [​IMG]

    showing the directory of the vmt and whats written in the .qc file
    [​IMG]

    the actual .vmt file.
    [​IMG]


    i've recreated everything about 5 times. cant find whats wrong.
     
    Last edited: Mar 15, 2011
  2. ardysqrrl

    ardysqrrl L4: Comfortable Member

    Messages:
    173
    Positive Ratings:
    159
    the .vmt doesn't seem to list the vmt path properly (it's in materials/models, not just models/)
     
  3. HellJumper

    aa HellJumper

    Messages:
    812
    Positive Ratings:
    373
    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: Mar 15, 2011
  4. DOMINATOR

    DOMINATOR L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    changed. didnt work though.

    changed. didnt work either. :(
     
    Last edited: Mar 15, 2011
  5. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    No, the $basetexture line automatically assumes that it's in materials/.

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

    aa HellJumper

    Messages:
    812
    Positive Ratings:
    373
    Oh, yes I didn't notice that either. Your $cd line is wrong. It should be the folder where all the .smd files are located.
     
    • Thanks Thanks x 1
  7. DOMINATOR

    DOMINATOR L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    it is.
     
  8. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    It's supposed to be relative to the tf/ folder; currently you've input the entire path from the root drive.
     
    • Thanks Thanks x 1
  9. Sgt Frag

    Sgt Frag L14: Epic Member

    Messages:
    1,443
    Positive Ratings:
    294
    It also points to sourcesdk_content\tf...

    You want them in the teamfortress2/tf/models folder.

    Just use
    "model\whatever_props\"

    Make sure you create the whatever_props folder first, or you get an error like "write only"
     
    • Thanks Thanks x 1
  10. Mr. Happy

    Mr. Happy L6: Sharp Member

    Messages:
    320
    Positive Ratings:
    144
    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
     
    • Thanks Thanks x 1
  11. DOMINATOR

    DOMINATOR L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    ok THANK YOU!
    i had everything right except i had "gen_case_2" at the end of my $cdmaterials