Resetting a Custom Mod Game Configuration

From Valve Developer Community
Jump to: navigation, search

If you wish to reset your game configuration, but you've created your own Mod using the "Create a Mod" wizard, follow these steps to merge your custom configuration with the default configurations.

This step is only necessary if you wish to retain the game configurations for a Mod you have created.

The Source SDK game configurations are in the GameConfig.txt file. To retain custom Mod configurations while resetting all of the other settings to the default settings, follow these instructions.

Resetting your game configuration

  1. Open the SDK Steam Launcher to make sure you have the latest updates.
  2. Open the following directory in an explorer window depending on what version of Source you are modding: for OrangeBox: <Steam Install Directory>\SteamApps\<username>\sourcesdk\bin\orangebox\bin" for Episode 1: <Steam Install Directory>\SteamApps\<username>\sourcesdk\bin\ep1\bin"
  3. Make a copy of the file "GameConfig.txt" and rename it to "GameConfig_old.txt."
  4. Choose "Reset Game Configurations" from the SDK Launcher.
  5. Open GameConfig_old.txt in a text editor, such as notepad.
  6. Find the configuration block for your custom game in GameConfig_old.txt.
  7. Highlight the configuration block for your custom game. Make sure to select the proper { and } characters for the selected configuration block.
    Notepad gameconfig.jpg
  8. choose Copy from the Edit Menu.
  9. Open GameConfig.txt.
  10. Place your cursor after one of the default configuration blocks and choose Paste from the Edit Menu.
  11. Save the file.
  12. Click on Current Game in the SDK Launcher to make sure your Mod configuration appears.
  13. Repeat steps 5 through 12 for each custom configuration you may have, if any.

If your configuration doesn't appear in the Current Game list, you probably pasted the configuration block into an invalid location in GameConfig.txt. Re-open GameConfig.txt and check to make sure your configuration is properly placed within the { and } characters. Look at the default configurations as a guide to where to properly place the configuration block.

Still having problems?

It is possible that "GameExe" and "GameExeDir" have invalid values in GameConfig.txt.

Confirm:For a "Source Engine 2007" mod these should be "[...]\source sdk base 2007\hl2.exe" and "[...]\source sdk base 2007" respectively.

Check also that a proper "SteamAppId" is selected in you mod's GameInfo.txt.

Confirm:For Source SDK Base 2007 use 218 (see AppId).
Remember to restart Steam after changing GameInfo.txt, otherwise Steam will use old values when attempting to start your mod.