ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.67k stars 619 forks source link

File Folders placed in base directory affect all installed games #1069

Open UndeadScottsman opened 11 years ago

UndeadScottsman commented 11 years ago

Discovered this little gem when a mod installed some files to the wrong directory. Basically, anything installed to the core half-life directory (while maintaining file structure) will be used by Half-Life and any mods, official or unofficial, if they do not already have the file

As an example: If you say, install an mp3 to 'steam\steamapps\common\Half-Life\media\gamestartup.mp3" (Instead of, say, "Half-Life\ (gamename)\media\gamestartup.mp3") Half-Life will utilize the file in EVERY game that doesn't already have gamestartup.mp3.

So every HL1 based game would use it, and any mods that don't have a gamestartup.mp3 would use it.

OS: Windows 7 Protocol version 48 Exe version 1.1.2.2/Stdio (valve) Exe build: 17:47:17 Apr 25 2013 (6027)

LevShisterov commented 11 years ago

This is by design, mods can use base half-life resources. May be it can be bypassed for exact file gamestartup.mp3, but not sure if this is needed.

alfred-valve commented 11 years ago

Did you mean steam\steamapps\common\Half-Life\media\gamestartup.mp3 or steam\steamapps\common\Half-Life/VALVE/media\gamestartup.mp3? Falling back to the valve/ folder is by design.

UndeadScottsman commented 11 years ago

I'm talking about the base Half-Life folder, not the Valve subfolder. If you make a "steam\steamapps\common\Half-Life\media\gamestartup.mp3" Every game will use it, including Half-Life. Basically the game is treating the base /Half-Life/ folder as though it was the /valve/ folder.

EDIT: Ah, I see where the confusion stemmed from.. Apparently if you put anything into triangle brackets, it doesn't show up in your post. I had (gamename) in those brackets, so it must have been really confusing. I've fixed the original post. Sorry about that, it was late and I was tired :D