I’ve picked up my Portal mod again, after quite a break, and quickly found myself confronted with the problems that caused me to quit last time. Some I managed to solve, but what’s keeping me from working right now is that I can’t use the Model Browser without crashing Hammer.
The situation is as follows: I created a mod for Portal 1. Since - as far as I know - the Source SDK is broken since long ago, I went by creating a folder in the sourcemods directory and creating a gameinfo.txt there. Then, I added a new Game Configuration to the Hammer Editor found in Portal’s bin folder, where I set all paths accordingly - game directory to my mod’s folder, bin directory to Portal’s bin folder, build programs in Portal’s bin folder. I referenced base.fgd, portal.fgd and halflife2.fgd there as well, the last because Portal is built heavily on top of Half-Life² and still contains all the entities and content from HL2.
It worked rather well, until today. Earlier, I ran into a problem where my maps wouldn’t update ingame after compiling, I fixed this by setting the paths to the build programs once more (same as before), and for whatever reason, I could compile afterwards by using the default compile settings. This messed with the Model Browser however - how, I do not know - which now crashes upon using it.
To be precise, I open it, and immediately freezes. I can do nothing but closing the model browser window with the big red X button, which causes Hammer to become unusable as well (see the picture below). Starting Hammer from the SDK fails because Hammer “failed to load the default scheme”, and validating all local files didn’t change a thing either. I ran into this problem two years ago already, but I have no idea how I solved it last time. Interesting enough, entering the models path into the “world model” field of any prop works, displaying the proper model without crashing, but using the Model Browser fails.
I sincerely hope somebody can help me with this, as it’s rendering me unable to use Hammer for now.
P.S: The hammer.vdf file in Portal\bin stores the term last searched for with the Model Browser, I tried changing it to a Portal mode, but to no avail, when I start Hammer, it still has the previous value in the Model Browser’s filter field and thus crashes.