Half-Life 2

Half-Life 2

Expand the World of Half-Life 2
Browse the Half-Life 2 Workshop to find the best new addons created by the community.
DogVTF 11 15 Dec, 2024 @ 12:21pm
Compiled model can't find textures in model viewer
I have the cdmaterials set up like $cdmaterials "models/dogvtf/coreballbomb" The smd exported from blender points to dynamite.tga, which should convert over to the dynamite.vmf i have in that location in Half-Life 2\episodic\materials\models\dogvtf\coreballbomb. but every time I compile the .qc in crowbar, i check the resulting mdl in model viewer and its missing the textures, and says ERROR model attempted to load one or more VMFs it can't find
< >
Showing 1-4 of 4 comments
Qwazzy 5 15 Dec, 2024 @ 4:57pm 
For what it's worth, I have never succeeded in showing a model in the model viewer with textures, even when I know for certain the textures are in the right place.

You're probably better off just spawning the model ingame to view it there, either by making a quick test map in hammer or using a console command like spawning a prop_dynamic or somesuch.
DogVTF 11 15 Dec, 2024 @ 5:27pm 
yeah i did that, and garry's mod's model viewer works and shows the textures, so I guess half life 2's model viewer is just broken for some reason?
Qwazzy 5 15 Dec, 2024 @ 9:24pm 
Could be. I had tried HL2's and NMRIH's in the past, never tried GMod's.

Hopefully someone with more experience with the model viewer comes along.
ijre 13 Jul @ 9:32am 
I know this is pretty old by forum standards, but I would presume you two are still interested:

I narrowed down (but not confirmed) about a year ago that it's something to do with how HLMV parses or mounts the gameinfo.txt in regards to specifically the custom folder, if so likely on account of its wildcard

To circumvent the issue, you can add a line to the gameinfo's SearchPaths which explicitly mounts to any folder of your choice (even outside the game files) so long as you use an absolute path (ie: the full "C:\etc\etc"), and in that location you can store your model and mats like it was the game files itself and it'll work both in HLMV and in-game

I even created a batch file to automate populating the folder when compiled, and figured I'd upload it for yall with some helpful comments to show you how to set it up for yourselves, available here[gist.github.com]
Last edited by ijre; 13 Jul @ 9:38am
< >
Showing 1-4 of 4 comments
Per page: 1530 50