Difference between revisions of "Obsidian SDK Setup"

From Obsidian Conflict Wiki
Jump to: navigation, search
(Fixed spelling errors, made the tutorial more clear.)
m (Setting up SourceSDK for Obsidian)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Languages}}
 +
 
{{catup|Obsidian_Conflict|Obsidian Conflict|center}}
 
{{catup|Obsidian_Conflict|Obsidian Conflict|center}}
 
== Setting up SourceSDK for Obsidian ==
 
== Setting up SourceSDK for Obsidian ==
The Example Steam Path looks like this in this Tutorial:
+
The Example Steam Path looks like this in this Tutorial (It really only depends on where you installed Steam):
 
<pre>
 
<pre>
 
C:\Program Files\Steam\SteamApps
 
C:\Program Files\Steam\SteamApps
Line 9: Line 11:
 
'''''Note2''''': "[USERNAME]" is our placeholder, be sure to replace [USERNAME] with your steam account name (can also be an e-mail address).
 
'''''Note2''''': "[USERNAME]" is our placeholder, be sure to replace [USERNAME] with your steam account name (can also be an e-mail address).
 
*Go to your SourceSDK Source2007 Bin Folder:
 
*Go to your SourceSDK Source2007 Bin Folder:
 
* If you don't know if you are using 32 bit or 64 bit, please google "how to find what bit my computer is"
 
 
'''* Use the path below if you are using a 32-bit OS.'''
 
 
<pre>
 
<pre>
C:\Program Files\Steam\SteamApps\[username]\sourcesdk\bin\source2007\bin\
+
C:\Program Files\Steam\SteamApps\[USERNAME]\sourcesdk\bin\source2007\bin\
 
</pre>
 
</pre>
 
+
*Open the GameConfig.txt for Editing. (Make sure it's '''NOT''' read only)
'''* Use the path below if you are using a 64-bit OS.'''
+
*Add this to the list:
 
<pre>
 
<pre>
C:\Program Files (x86)\Steam\steamapps\[username]\sourcesdk\bin\source2007\bin
+
"Configs"
 +
    {
 +
            "Games"
 +
            {
 +
                    "Obsidian Conflict"
 +
                    {
 +
                            "GameDir"              "c:\program files (x86)\steam\SteamApps\sourcemods\obsidian"
 +
                            "hammer"
 +
                            {
 +
                                    "GameData0"            "c:\program files (x86)\steam\SteamApps\sourcemods\obsidian\obsidian sdk\obsidian.fgd"
 +
                                    "TextureFormat"        "5"
 +
                                    "MapFormat"            "4"
 +
                                    "DefaultTextureScale"          "0.250000"
 +
                                    "DefaultLightmapScale"          "16"
 +
                                    "GameExe"              "c:\program files (x86)\steam\steamapps\[USERNAME]\source sdk base 2007\hl2.exe"
 +
                                    "DefaultSolidEntity"            "func_detail"
 +
                                    "DefaultPointEntity"            "ai_ally_manager"
 +
                                    "BSP"          "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vbsp.exe"
 +
                                    "Vis"          "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vvis.exe"
 +
                                    "Light"        "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vrad.exe"
 +
                                    "GameExeDir"            "c:\program files (x86)\steam\steamapps\[USERNAME]\source sdk base 2007"
 +
                                    "MapDir"                "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk_content\obsidian\mapsrc"
 +
                                    "BSPDir"                "c:\program files (x86)\steam\SteamApps\sourcemods\obsidian\maps"
 +
                                    "CordonTexture"        "tools\toolsskybox"
 +
                                    "MaterialExcludeCount"          "0"
 +
                            }
 +
                    }
 +
            }
 +
            "SDKVersion"            "3"
 +
    }
 
</pre>
 
</pre>
*Open the GameConfig.txt for Editing. (Make sure it's '''NOT''' read only)
 
*Copy and paste the 32 bit or 64 bit version to copy corresponding to your OS version.
 
Ex: Use 32 bit version for 32 bit os, use 64 bit version for 64 bit os.
 
  
 +
It should look like this, just don't forget to edit the path to where you installed steam and [USERNAME] of course:
 +
[[File:source-sdk_config.jpg]]
 +
 +
'''''Important''''': never add any other FGDs to that code since Obsidian uses it's own. (Request to add other content to the existing ones [http://bugs.obsidianconflict.net here] instead)
 +
 +
'''''Note''''': Also to make sure the code won't get deleted, you can do that by making the file read only once you have completed all necessary changes.
 +
 +
'''''Note2''''': Make sure to replace [USERNAME] with your real username, do not include the brackets [].
 +
 +
==Using Obsidian Conflict "SDK" with EP2 content==
 +
 +
Created by [http://obsidianconflict.net/forums/memberlist.php?mode=viewprofile&u=864 Blues]. Original thread here: http://obsidianconflict.net/forums/viewtopic.php?f=6&t=3424
 +
 +
 +
Copy and paste your OC materials and models folders into the obsidian SDK folder (maybe even the sounds folder). Then you put this gameinfo.txt there, too:
 +
 +
Code:
  
'''*If you have a 32-bit os, copy this into your gameinfo.txt'''
 
 
<pre>
 
<pre>
"Configs"
+
"GameInfo"  
{
+
{  
   "Games"
+
   game  "Obsidian Conflict v1.34"  
   {
+
   title  "OBSIDIAN CONFLICT V1.34"
      "Half-Life 2: Episode Two"
+
  title2  "OBSIDIAN CONFLICT V1.34"  
      {
+
  type multiplayer_only
        "GameDir"      "c:\program files\steam\steamapps\[USERNAME]\half-life 2 episode two\ep2"
+
  nomodels 0
        "hammer"
+
  nohimodel 1
        {
+
  nocrosshair 1
            "GameData0"      "c:\program files\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\halflife2.fgd"
+
  hidden_maps
            "TextureFormat"      "5"
+
  {  
            "MapFormat"      "4"
+
      "test_speakers"      1
            "DefaultTextureScale"      "0.250000"
+
      "test_hardware"      1
            "DefaultLightmapScale"      "16"
+
  }
            "GameExe"      "c:\program files\steam\steamapps\[USERNAME]\half-life 2 episode two\hl2.exe"
+
 
            "DefaultSolidEntity"      "func_detail"
+
  developer "Obsidian Conflict Team"  
            "DefaultPointEntity"      "info_player_start"
+
  developer_url "http://www.ObsidianConflict.com"  
            "BSP"     "c:\program files\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vbsp.exe"
+
  icon "resource/obsidian"  
            "Vis"     "c:\program files\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vvis.exe"
+
 
            "Light"      "c:\program files\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vrad.exe"
+
  FileSystem
            "GameExeDir"      "c:\program files\steam\steamapps\[USERNAME]\half-life 2 episode two"
+
  {
            "MapDir"      "c:\program files\steam\steamapps\[USERNAME]\sourcesdk_content\ep2\mapsrc"
+
      SteamAppId            420     // This will mount all the GCFs we need (240=CS:S, 220=HL2).  
            "BSPDir"      "c:\program files\steam\steamapps\[USERNAME]\half-life 2 episode two\ep2\maps"
+
      ToolsAppId            211     // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.  
            "CordonTexture"     "tools\toolsskybox"
+
     
            "MaterialExcludeCount"     "0"
+
      //
        }
+
      // The code that loads this file automatically does a few things here:  
       }
+
      //
      "Obsidian Conflict"
+
      // 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.
        "GameDir"      "c:\program files\steam\steamapps\SourceMods\obsidian"
+
       //    For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.  
        "hammer"
+
      // 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".  
            "GameData0"      "c:\program files\steam\steamapps\SourceMods\obsidian\Obsidian SDK\Obsidian.fgd"
+
      //
            "TextureFormat"     "5"
+
 
            "MapFormat"      "4"
+
      //
            "DefaultTextureScale"     "0.250000"
+
      // Search paths are relative to the base directory, which is where hl2.exe is found.
            "DefaultLightmapScale"      "16"
+
      //
            "GameExe"      "c:\program files\steam\steamapps\[USERNAME]\source sdk base 2007\hl2.exe"
+
      // |gameinfo_path| points at the directory where gameinfo.txt is.
            "DefaultSolidEntity"      "func_detail"
+
      // We always want to mount that directory relative to gameinfo.txt, so
            "DefaultPointEntity"      "info_player_start"
+
      // people can mount stuff in c:\mymod, and the main game resources are in
            "BSP"      "c:\program files\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vbsp.exe"
+
      // someplace like c:\program files\valve\steam\steamapps\half-life 2.  
            "Vis"      "c:\program files\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vvis.exe"
+
      //
            "Light"      "c:\program files\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vrad.exe"
+
      SearchPaths
            "GameExeDir"      "c:\program files\steam\steamapps\[USERNAME]\source sdk base 2007"
+
      {
            "MapDir"      "c:\program files\steam\steamapps\SourceMods\sourcesdk_content\obsidian\mapsrc"
+
        Game            |gameinfo_path|.
            "BSPDir"      "c:\program files\steam\steamapps\SourceMods\obsidian\maps"
+
        Game            ep2
            "CordonTexture"      "tools\toolsskybox"
+
        Game            episodic
            "MaterialExcludeCount"      "0"
+
        Game            lostcoast
         }
+
         Game            |all_source_engine_paths|hl2
       }
+
       }  
   }
+
   }  
  "SDKVersion"      "3"
+
}  
}
 
 
</pre>
 
</pre>
  
'''* If you have a 64-bit os, copy this into your gameinfo.txt'''
+
 
 +
Then you go to ...sourcesdk\bin\orangebox\bin, open gameconfig.txt and add this:
 +
 
 +
Code:
 +
 
 
<pre>
 
<pre>
"Configs"
+
     "Obsidian Conflict 1.34 : EP2 Content"  
{
+
       {  
  "Games"
+
         "GameDir"      "d:\steam\steamapps\SourceMods\Obsidian\Obsidian SDK"  
  {
+
         "hammer"  
      "Half-Life 2: Episode Two"
+
         {  
      {
+
             "GameData0"      "d:\steam\steamapps\SourceMods\Obsidian\Obsidian SDK\Obsidian.fgd"  
        "GameDir"     "c:\program files (x86)\steam\steamapps\[USERNAME]\half-life 2 episode two\ep2"
+
             "TextureFormat"      "5"  
        "hammer"
+
             "MapFormat"      "4"  
        {
+
             "DefaultTextureScale"      "0.250000"  
            "GameData0"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\halflife2.fgd"
+
             "DefaultLightmapScale"      "16"  
            "TextureFormat"      "5"
+
             "GameExe"      "d:\steam\steamapps\*account name goes here*\source sdk base 2007\hl2.exe"  
            "MapFormat"      "4"
+
             "DefaultSolidEntity"      "func_detail"  
            "DefaultTextureScale"      "0.250000"
+
             "DefaultPointEntity"      "ai_ally_manager"  
            "DefaultLightmapScale"      "16"
+
             "BSP"      "d:\steam\steamapps\*account name goes here*\sourcesdk\bin\orangebox\bin\vbsp.exe"  
            "GameExe"      "c:\program files (x86)\steam\steamapps\[USERNAME]\half-life 2 episode two\hl2.exe"
+
             "Vis"      "d:\steam\steamapps\*account name goes here*\sourcesdk\bin\orangebox\bin\vvis.exe"  
            "DefaultSolidEntity"      "func_detail"
+
             "Light"      "d:\steam\steamapps\*account name goes here*\sourcesdk\bin\orangebox\bin\vrad.exe"  
            "DefaultPointEntity"      "info_player_start"
+
             "GameExeDir"      "d:\steam\steamapps\*account name goes here*\source sdk base 2007"  
            "BSP"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vbsp.exe"
+
             "MapDir"      "d:\steam\steamapps\SourceMods\sourcesdk_content\obsidian\mapsrc"  
            "Vis"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vvis.exe"
+
             "BSPDir"      "d:\steam\steamapps\SourceMods\obsidian\maps"  
            "Light"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vrad.exe"
+
             "CordonTexture"      "tools\toolsskybox"  
            "GameExeDir"      "c:\program files (x86)\steam\steamapps\[USERNAME]\half-life 2 episode two"
+
             "MaterialExcludeCount"      "0"  
            "MapDir"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk_content\ep2\mapsrc"
+
         }  
            "BSPDir"      "c:\program files (x86)\steam\steamapps\[USERNAME]\half-life 2 episode two\ep2\maps"
+
       }  
            "CordonTexture"      "tools\toolsskybox"
 
            "MaterialExcludeCount"      "0"
 
        }
 
      }
 
      "Obsidian Conflict"
 
       {
 
         "GameDir"      "c:\program files (x86)\steam\steamapps\SourceMods\obsidian"
 
         "hammer"
 
         {
 
             "GameData0"      "c:\program files (x86)\steam\steamapps\SourceMods\obsidian\Obsidian SDK\Obsidian.fgd"
 
             "TextureFormat"      "5"
 
             "MapFormat"      "4"
 
             "DefaultTextureScale"      "0.250000"
 
             "DefaultLightmapScale"      "16"
 
             "GameExe"      "c:\program files (x86)\steam\steamapps\[USERNAME]\source sdk base 2007\hl2.exe"
 
             "DefaultSolidEntity"      "func_detail"
 
             "DefaultPointEntity"      "info_player_start"
 
             "BSP"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vbsp.exe"
 
             "Vis"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vvis.exe"
 
             "Light"      "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vrad.exe"
 
             "GameExeDir"      "c:\program files (x86)\steam\steamapps\[USERNAME]\source sdk base 2007"
 
             "MapDir"      "c:\program files (x86)\steam\steamapps\SourceMods\sourcesdk_content\obsidian\mapsrc"
 
             "BSPDir"      "c:\program files (x86)\steam\steamapps\SourceMods\obsidian\maps"
 
             "CordonTexture"      "tools\toolsskybox"
 
             "MaterialExcludeCount"      "0"
 
         }
 
       }
 
  }
 
  "SDKVersion"      "3"
 
}
 
 
</pre>
 
</pre>
'''''Important''''': never add any other FGDs to that code since Obsidian uses it's own. (Request to add other content to the existing ones instead)
 
  
'''''Note''''': Also to make sure the code won't get deleted, you can do that by making the file read only once you have completed all necessary changes.
 
  
'''NOTE2''': Make sure to replace [username] with your real username, do not include the brackets [].
+
Be sure to replace "*account name goes here*" with your your account name. Oh, and match the directions, if it's not "[i]D:\Steam\...[/i]" for you.
  
 +
I hope I didn't forget anything. Just tell me if something seems to be incorrect.
  
  
 
== Useful Tools ==
 
== Useful Tools ==
 
[[Obsidian SDK Installer]]
 
[[Obsidian SDK Installer]]

Latest revision as of 17:41, 16 June 2013

Language: [[::Obsidian SDK Setup|English]]  • [[::Obsidian SDK Setup/es|español]] • [[::Obsidian SDK Setup/zh-hans|中文(简体)‎]]

Setting up SourceSDK for Obsidian

The Example Steam Path looks like this in this Tutorial (It really only depends on where you installed Steam):

C:\Program Files\Steam\SteamApps

Note: make sure you replace that folder in the code below with your Steam Path.

Note2: "[USERNAME]" is our placeholder, be sure to replace [USERNAME] with your steam account name (can also be an e-mail address).

  • Go to your SourceSDK Source2007 Bin Folder:
C:\Program Files\Steam\SteamApps\[USERNAME]\sourcesdk\bin\source2007\bin\
  • Open the GameConfig.txt for Editing. (Make sure it's NOT read only)
  • Add this to the list:
"Configs"
    {
            "Games"
            {
                    "Obsidian Conflict"
                    {
                            "GameDir"               "c:\program files (x86)\steam\SteamApps\sourcemods\obsidian"
                            "hammer"
                            {
                                    "GameData0"             "c:\program files (x86)\steam\SteamApps\sourcemods\obsidian\obsidian sdk\obsidian.fgd"
                                    "TextureFormat"         "5"
                                    "MapFormat"             "4"
                                    "DefaultTextureScale"           "0.250000"
                                    "DefaultLightmapScale"          "16"
                                    "GameExe"               "c:\program files (x86)\steam\steamapps\[USERNAME]\source sdk base 2007\hl2.exe"
                                    "DefaultSolidEntity"            "func_detail"
                                    "DefaultPointEntity"            "ai_ally_manager"
                                    "BSP"           "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vbsp.exe"
                                    "Vis"           "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vvis.exe"
                                    "Light"         "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk\bin\source2007\bin\vrad.exe"
                                    "GameExeDir"            "c:\program files (x86)\steam\steamapps\[USERNAME]\source sdk base 2007"
                                    "MapDir"                "c:\program files (x86)\steam\steamapps\[USERNAME]\sourcesdk_content\obsidian\mapsrc"
                                    "BSPDir"                "c:\program files (x86)\steam\SteamApps\sourcemods\obsidian\maps"
                                    "CordonTexture"         "tools\toolsskybox"
                                    "MaterialExcludeCount"          "0"
                            }
                    }
            }
            "SDKVersion"            "3"
    }

It should look like this, just don't forget to edit the path to where you installed steam and [USERNAME] of course: Source-sdk config.jpg

Important: never add any other FGDs to that code since Obsidian uses it's own. (Request to add other content to the existing ones here instead)

Note: Also to make sure the code won't get deleted, you can do that by making the file read only once you have completed all necessary changes.

Note2: Make sure to replace [USERNAME] with your real username, do not include the brackets [].

Using Obsidian Conflict "SDK" with EP2 content

Created by Blues. Original thread here: http://obsidianconflict.net/forums/viewtopic.php?f=6&t=3424


Copy and paste your OC materials and models folders into the obsidian SDK folder (maybe even the sounds folder). Then you put this gameinfo.txt there, too:

Code:

"GameInfo" 
{ 
   game   "Obsidian Conflict v1.34" 
   title   "OBSIDIAN CONFLICT V1.34" 
   title2   "OBSIDIAN CONFLICT V1.34" 
   type multiplayer_only 
   nomodels 0 
   nohimodel 1 
   nocrosshair 1 
   hidden_maps 
   { 
      "test_speakers"      1 
      "test_hardware"      1 
   } 

   developer "Obsidian Conflict Team" 
   developer_url "http://www.ObsidianConflict.com" 
   icon "resource/obsidian" 

   FileSystem 
   { 
      SteamAppId            420      // 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\half-life 2. 
      // 
      SearchPaths 
      { 
         Game            |gameinfo_path|. 
         Game            ep2 
         Game            episodic 
         Game            lostcoast 
         Game            |all_source_engine_paths|hl2 
      } 
   } 
} 


Then you go to ...sourcesdk\bin\orangebox\bin, open gameconfig.txt and add this:

Code:

     "Obsidian Conflict 1.34 : EP2 Content" 
      { 
         "GameDir"      "d:\steam\steamapps\SourceMods\Obsidian\Obsidian SDK" 
         "hammer" 
         { 
            "GameData0"      "d:\steam\steamapps\SourceMods\Obsidian\Obsidian SDK\Obsidian.fgd" 
            "TextureFormat"      "5" 
            "MapFormat"      "4" 
            "DefaultTextureScale"      "0.250000" 
            "DefaultLightmapScale"      "16" 
            "GameExe"      "d:\steam\steamapps\*account name goes here*\source sdk base 2007\hl2.exe" 
            "DefaultSolidEntity"      "func_detail" 
            "DefaultPointEntity"      "ai_ally_manager" 
            "BSP"      "d:\steam\steamapps\*account name goes here*\sourcesdk\bin\orangebox\bin\vbsp.exe" 
            "Vis"      "d:\steam\steamapps\*account name goes here*\sourcesdk\bin\orangebox\bin\vvis.exe" 
            "Light"      "d:\steam\steamapps\*account name goes here*\sourcesdk\bin\orangebox\bin\vrad.exe" 
            "GameExeDir"      "d:\steam\steamapps\*account name goes here*\source sdk base 2007" 
            "MapDir"      "d:\steam\steamapps\SourceMods\sourcesdk_content\obsidian\mapsrc" 
            "BSPDir"      "d:\steam\steamapps\SourceMods\obsidian\maps" 
            "CordonTexture"      "tools\toolsskybox" 
            "MaterialExcludeCount"      "0" 
         } 
      } 


Be sure to replace "*account name goes here*" with your your account name. Oh, and match the directions, if it's not "[i]D:\Steam\...[/i]" for you.

I hope I didn't forget anything. Just tell me if something seems to be incorrect.


Useful Tools

Obsidian SDK Installer