Upgrading from old SDK

Micnax

Back from the dead (again)
aa
Apr 25, 2009
2,109
1,585
So I've been out of the mapping game for a while (November 2013 to be precise) and since then, TF2 has updated to the VPK filesystem... and it broke the SDK. I heard it was fixed, but I have no idea how to go about opening Hammer anymore with my old maps.

When I open the SDK from the Tools menu and open a map in Hammer, I'm greeted with two lovely errors that then force-close Hammer:

hvgfpr.png


Now, the first one I have no idea how to fix, but the second is clearly because the new directories for the game have moved. I tried moving my old models+texture folders into the tf/custom/custom_stuff folder but it still cannot find them.

Any suggestions?
 

seth

aa
May 31, 2013
1,019
851
Run hammer.bat in your team fortress/bin folder once (sets up stuff for Hammer), then run hammer.exe in the same folder. I've created a shortcut to hammer.exe on my desktop so it's like an app for me. You should kind of bypass those problems you're confronted with currently if you start from your bin folder, the SDK is kind of obsolete now if I understand correctly.
 

xzzy

aa
Jan 30, 2010
815
531
Run hammer.bat in your team fortress/bin folder once (sets up stuff for Hammer), then run hammer.exe in the same folder. I've created a shortcut to hammer.exe on my desktop so it's like an app for me. You should kind of bypass those problems you're confronted with currently if you start from your bin folder, the SDK is kind of obsolete now if I understand correctly.

Technically you're supposed to run the bat every time.

I also recommend going to the Control Panel->System->Advanced->Environment Variables and delete the VPROJECT variable, as that is set by the old SDK can can interfere with the batch files doing the right thing.
 

xzzy

aa
Jan 30, 2010
815
531
Really? I haven't ran the bat since the very first time I switched over.

The scripts have logic to set the VPROJECT permanently, but it's commented out so it doesn't actually do anything.

If running Hammer.exe works properly something else probably made it permanent.
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Also make sure you're running the latest of Boojum's pack resourcy thing otherwise you'll get a ton of crashes.