[Tutorial] In-Depth Setting Up Hammer and Fix Invisible Player Models

SpirrwellSpirrwell That Guy That Knows Things About a Lot of ThingsPVKII Team, Authorized Creator
edited September 2017 in Community Maps
Hello there!

I've created a video tutorial for setting up Hammer as well as being able to see player models that may be invisible in Hammer. You can view that here:


I'll also give you a version in text here as well.

1) First off you'll want to make sure you use the the Hammer editor that comes with PVK2. There's no need to use the one that comes with Source SDK Base 2013 Multiplayer. PVK2 comes packaged with Source 2013 stuff, so you should use the PVK2 tools instead.

2) Right click on PVK2 in Steam, click on "Properties" and under the "LOCAL FILES" tab click the "BROWSE LOCAL FILES..." button.

3) Navigate to the sdkbase_pvkii\bin directory.

4) If you haven't launched Hammer before, launch hammer.exe

5) At this point Hammer will generate a file called GameConfig.txt in that directory. It is pre-configured for use with Half-Life 2.

For advanced users you can simply copy my configuration and modify to fit your Steam paths and such. Here is a pastebin of my configuration: https://pastebin.com/Q5HD9sKF If you do this, skip steps 6-9

6) In Hammer, if you go to Tools->Options->Game Configurations, you can create a new configuration for PVKII. Click Edit->Add and give it a name you want like PVKII. Optionally you can edit the "Half-Life 2" one instead or outright remove it.


7) Under "Game Data Files" add "pvkii.fgd" from your "pvkii" directory. Do NOT bother "pvkbase.fgd", pvkii.fgd automatically includes pvkbase.fgd and in the next update pvkbase.fgd will no longer be there anyway.

8) The cordon texture should be "tools/toolsskybox" without the quotes, which I forgot to mention in the video. Set your default entities however you like.

9) Setup your paths under Game Configurations and Build Programs appropriately, here are mine for reference:

Game Executable Directory (ex: c:\Half-Life):
$SteamUserDir\pirates, vikings and knights ii\sdkbase_pvkii

Game Directory (where GameInfo.txt is, ex: c:\Half-Life\cstrike):
$SteamUserDir\pirates, vikings and knights ii\pvkii

Hammer VMF Directory (ex: C:\Half-Life\maps):
$SteamUserDir\pirates, vikings and knights ii\pvkii\mapsrc

Game executable:
$SteamUserDir\pirates, vikings and knights ii\sdkbase_pvkii\hl2.exe

BSP executable:
$SteamUserDir\pirates, vikings and knights ii\sdkbase_pvkii\bin\vbsp.exe

VIS executable:
$SteamUserDir\pirates, vikings and knights ii\sdkbase_pvkii\bin\vvis.exe

RAD executable:
$SteamUserDir\pirates, vikings and knights ii\sdkbase_pvkii\bin\vrad.exe

Place compiled maps in this directory before running the game:
$SteamUserDir\pirates, vikings and knights ii\pvkii\maps

10) Apply\Save changes and restart Hammer

Extra Note: In the next update (3.6), PVK2 should use "pvkii.exe" instead of "hl2.exe"

Fixing Invisible Player Models

Note: In the next update (3.6) this will be fixed\done for you.

To fix player models or some other models appearing invisible in Hammer or partially visible, open up a text editor like Notepad or Notepad++ (NOT WordPad or Office) and create a new file. Paste in "hammer.exe -game ../../pvkii" without the quotes and save it as "hammer_pvkii.bat" in the sdkbase_pvkii\bin directory where Hammer is.

Run the file and you should be able to see player models in Hammer that you might place as props. (The model browser itself is still a bit broken, but you should be able to see them properly in Hammer.

ALTERNATIVELY, if you've added Hammer as a non-Steam game in Steam you can right click on it and click on Properties->Set Launch Options. In the text box just put "-game ../../pvkii" without the quotes, and Hammer will show the player models correctly.

Use PVK2 Player Models For Team Spawns

Note: In the next update (3.6) this will be fixed\done for you.

To use player models for team based spawn entities like info_player_pirate instead of the green Gordan Freeman one, open up the "pvkii.fgd" file which is located in your "pvkii" directory.

Search for "info_player_pirate" (Should be line 58)

Replace the file name that ends in ".mdl" with "models/player/skirmisher/skirmisher.mdl"

Do the same for info_player_viking and replace it with "models/player/berserker/berserker.mdl"

Do the same for info_player_knight and replace it with "models/player/heavyknight/heavyknight.mdl"

Save and re-launch Hammer. Your spawns should now use PVK2 player models:




CPU: Intel® Core™ i7-4770K OC'd @ 3.7 GHz
RAM: Ripjaws X 8GB (2 x 4GB) DDR3 2133MHz
OS: Windows 10 Technical Preview

Sign In or Register to comment.