I suppose you are changing the values of the textures to include the folder
path, when you move them to other folders?
"VertexlitGeneric"
{
"$basetexture" "models/prop_test/guy_head_diffuse"
"$bumpmap" "models/prop_test/guy_head_bump"
}
----- Original Message -----
From: "Walter Gray" <[email protected]>
To: "Discussion of Half-Life Programming" <[email protected]>
Sent: Thursday, March 05, 2009 9:43 PM
Subject: Re: [hlcoders] $cdmaterials not working
> MDLTextureInfo reports the right texture path (Texture path 1 - "<Mod
> Folder>\materials\models\guy\"), and the textures show up in hlmv just
> fine if I put them in the root materials directory. It seems like
> something internal may have gotten tweaked, but I haven't touched any of
> that. Weirder still is that it's not a global problem : textures for
> the other models still work. What could cause hlmv /and/ the game to
> both ignore the additional search paths, but only for this model?
>
> @Tobias, I don't think there's anything wrong with the .vmt, since it
> works properly if it's in the root materials directory, but just in
> case, here it is:
>
> "VertexlitGeneric"
> {
> "$basetexture" "guy_head_diffuse"
> "$bumpmap" "guy_head_bump"
> }
>
> Tobias Kammersgaard wrote:
>> Sounds more like the VMT is messed up.Check that out.
>>
>>
>> /ScarT
>>
>>
>> 2009/3/5 Jed <[email protected]>
>>
>>
>>> http://www.wunderboy.org/sourceapps.php#mdl_tex
>>>
>>> Try that. It will analyse your MDL file and tell you all the paths and
>>> textures your model is looking for.
>>> Might help you diagnose your problem.
>>>
>>> - Jed
>>>
>>> 2009/3/5 Walter Gray <[email protected]>:
>>>
>>>> Hey All
>>>> I've been working with a model for some time now, and out of the
>>>> blue $cdmaterials seems to have stopped working. I don't think I
>>>> changed the command at all, and as far as I know my directories are the
>>>> same, but when I load the model it can't find the textures, and the
>>>> game
>>>> console messages tell me that it's just searching in the root materials
>>>> directory.
>>>>
>>>> What would cause this to happen? My first guess was maybe something
>>>> about the client or server.dll, but hlmv has the same problems and I
>>>> dont think it even touches those files.
>>>> I even opened up the compiled .mdl file to see if there was anything
>>>> referencing that path and sure enough at the end of the file
>>>> models\guy\
>>>> showed up.
>>>>
>>>> Here's the first part of my .qc file, copy and pasted.
>>>>
>>>> $modelname "guy.mdl"
>>>> $body "Body" "guy.smd"
>>>>
>>>> $scale 1.0
>>>>
>>>> $surfaceprop "flesh"
>>>>
>>>> $cdmaterials "models/guy"
>>>> ...
>>>>
>>>> Any help would be much appreciated.
>>>>
>>>> _______________________________________________
>>>> To unsubscribe, edit your list preferences, or view the list archives,
>>>>
>>> please visit:
>>>
>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> To unsubscribe, edit your list preferences, or view the list archives,
>>> please visit:
>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>>
>>>
>>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders