
Double-click Source SDK from the Steam Play Games Menu. To set the active game directory with the Source SDK Launcher: Using the Source SDK Launcher to set the game directory The Current Game drop-down list on the Source SDK Launcher is the primary way to set the active game directory. The active game directory is set so that all the tools know how to find the game content without having to specify it each time. Once you've found the game directory, you need to tell the SDK tools where that directory is.įor information on how GameInfo.txt can be created for your own MOD, and how the contents are used, see GameInfo.txt File Structure. In the example above, if you had created C:\Program Files\Steam\SteamApps\sourcemods\MyMod\Blasters, there would be a file on your hard drive called C:\Program Files\Steam\SteamApps\sourcemods\MyMod\Blasters\GameInfo.txt. If you find the GameInfo.txt file, then the directory it sits in is the game directory. One way to determine the game directory of your game is to look for a file called GameInfo.txt. This would be the case if you selected Create a Mod in the SDK launcher, entered C:\Program Files\Steam\SteamApps\sourcemods\MyMod as the directory, and entered Blasters as the mod name. In the following examples, we're going to refer to the game directory as C:\Program Files\Steam\SteamApps\sourcemods\MyMod\Blasters. None of the SDK tools will run unless they can find your game directory.Įxamples of the game directory for the core Source games:Ĭ:\Program Files\Steam\SteamApps\Common\Half-Life 2\hl2Ĭ:\Program Files\Steam\SteamApps\Common\counter-strike source\cstrikeĬ:\Program Files\Steam\SteamApps\Common\half-life 2 deathmatch\hl2mp Vrad.exe will light a map, but it needs to know where to find prop models so it can load them and determine how they block light.
Studiomdl will compile a model, but it needs to know where to place the compiled model files. For example, the Hammer Editor needs to know where it can find your materials so it can display them.
The game directory is the folder that the tools refer to when they are looking for a game's content. 5 Browsing mounted files with XBLAH's Modding Tool.3 Specifying the game directory on the command line.2.2 Using VConfig to set the game directory.
2.1 Using the Source SDK Launcher to set the game directory.