waht is SDK&Hammer?

learning how to use SDK & Hammer
User avatar
Server admins
Server admins
Posts: 63
Joined: Sun Aug 05, 2012 12:45 pm

waht is SDK&Hammer?

Postby RobbinHood » Wed Apr 09, 2014 8:53 pm

User avatar
Posts: 91
Joined: Sun Jun 05, 2011 11:00 pm
Location: TN

Re: waht is SDK&Hammer?

Postby Destroyer47 » Sun Jul 13, 2014 5:50 am

Go to Library>Tools> Source SDK Tab and install the source SDK and then launch it, then go unto the engine version and do Source MP (Multiplayer).
Then Team Fortress 2 which you will need a back-up copy of the Team Fortress 2 Client content, content, and materials .gcf (from someone) if valve still did not update the sdk to the newer directory of vpk.
Then recreate C:\Program Files (x86)\Steam\steamapps\<UserName>\team fortress 2\tf this directory with its many folders such as maps, materials, models, particles, resource, scripts, and sound from a folder in your C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\download folder if you already converted which it should have any texture you may need.
Finally, you will need to recreate one file, a "gameinfo.txt", in the C:\Program Files (x86)\Steam\steamapps\<UserName>\team fortress 2\tf folder which you should have found.

Your gameinfo.txt should look like this (Copy/paste into a blank "gameinfo.txt" with note pade):
game "Team Fortress 2"
type multiplayer_only
nomodels 1
nohimodel 1
nocrosshair 0
"test_speakers" 1
"test_hardware" 1
nodegraph 0
GameData "tf.fgd"
InstancePath "maps/instances/"
advcrosshair 1

SteamAppId 440 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.

// The code that loads this file automatically does a few things here:
// 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
// 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
// For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
// 3. For the first "Game" search path, it adds a search path called "MOD".
// 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".

// Search paths are relative to the base directory, which is where hl2.exe is found.
// |gameinfo_path| points at the directory where gameinfo.txt is.
// We always want to mount that directory relative to gameinfo.txt, so
// people can mount stuff in c:\mymod, and the main game resources are in
// someplace like c:\program files\valve\steam\steamapps\<username>\half-life 2.
Game |gameinfo_path|.
Game tf
Game |all_source_engine_paths|hl2

You will only have to do this if the sdk gives you an error when you select source mp and tf2 options with hammer launch failing to do so.

Return to “SDK & Hammer”

Who is online

Users browsing this forum: No registered users and 1 guest