source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

HLMV Fails to load some models with "(Steam) Load Model"

Open reepblue opened this issue 12 years ago • 8 comments

HLMV can't load models in vpks ("(Steam) Load Model") if they are under a sub directory. For example, it can load up "models/Barney.mdl" fine. But when you try to open a sub folder, (e.g models/props) you get an error saying the file directory does not exist.

reepblue avatar Jul 03 '13 05:07 reepblue

That's an OLD error with the HLMV. Go to the folder where the directory is supposed to be (ie hl2, episodic, ep2), make a folder called models if it doesn't already exist, and make each folder you're trying to browse. It's weird, I know.

tealsuki avatar Jul 04 '13 02:07 tealsuki

It's still a bug and it's still very irritating to have to mirror the whole directory tree.

benpye avatar Jul 04 '13 20:07 benpye

Ya, I'll check it out

alfred-valve avatar Jul 08 '13 16:07 alfred-valve

that bug has always been irritating xD

thecooldude498 avatar Jul 26 '13 21:07 thecooldude498

Sorry, ignore me, I deleted my previous comment. I thought we had stopped seeing this for some reason, but it's still there.

alanedwardes avatar Sep 03 '13 00:09 alanedwardes

Any news on this?

pudingus avatar Nov 15 '19 20:11 pudingus

I doubt they will fix it. The problem lies on the FileSystemOpenDialog.dll, not HLMV itself, it basically tries to read \ instead of /, which is causing it to fail to read the folders, unless you manually create them, which makes it very pointless if you have everything within the VPKs.

jonnyboy0719 avatar Nov 23 '19 10:11 jonnyboy0719

As a temporary fix couldn't you unpack the vpk files (with "folder for each model" checked in crowbar) than do a search for each mdl file (like "*.mdl" for example) from "hl2/models" or "[modname]/models" directory, than delete them to save space?

CAN CONFIRM THIS WORKS!!

extracting the VPK's in crowbar, (in my case I used folder for input), deleting the model files and other unneeded files (mdl, vvd, phy, etc), and pasting the contents inside the models folder into hl2/models DID work perfectly.

WolfEye939 avatar Oct 25 '23 13:10 WolfEye939