Welcome, Guest. Please login or register. Did you miss your activation email?

* TUTORIAL SECTION RULES

This section is for SMOD TUTORIALS & GUIDES ONLY.
You may create a new topic in the appropriate area to share your tutorial. If you post anything off-topic here you will be temp-banned. This is so we don't hassle the moderators too much, they are volunteers.

If you need help with a tutorial, post a reply in its thread . Do not start a new topic for help here!

Author Topic: [SMOD] Setup the Source SDK for use with SMOD  (Read 10396 times)

0 Members and 1 Guest are viewing this topic.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
[SMOD] Setup the Source SDK for use with SMOD
« on: October 12, 2009, 03:56:01 AM »
Here is a short and sweet tutorial of how to setup the Source SDK to include SMOD under it's games list. This means that you can compile models right into your SMOD directory and quickly test in game.

Created - Monday, December 01, 2008 at 12:57:49 PM
Edited - Sunday, August 12, 2012 at 09:15:55 AM
2nd Edit - Wednesday, February 11 2015 at 11:10 PM



New way of setting up SDK!

STEP 1

Navigate to this directory - ...\Steam\steamapps\common\sourcesdk\bin\ep1\bin


STEP 2

Locate text file named "GameConfig.txt" and open in a text editor.


STEP 3

Copy the text in this box and then paste into GameConfig.txt under the "Games" array.

Code: [Select]
"YOUR MOD"
{
"GameDir" "C:\Folder\Where\Your\Mod\Is"
"hammer"
{
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_deathmatch"
"GameExeDir" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch"
"MapDir" "c:\program files (x86)\steam\steamapps\common\sourcesdk_content\hl2mp\mapsrc"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
"GameExe" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch\hl2.exe"
"BSP" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vbsp.exe"
"Vis" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vvis.exe"
"Light" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vrad.exe"
"BSPDir" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch\hl2mp\maps"
"GameData0" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\hl2mp.fgd"
}
}


STEP 4

You will need to edit two lines of text now.

Code: (Find) [Select]
"YOUR MOD"
Change this line to whatever the name of your mod is. This is what will show up in the SDK.


Code: (Find) [Select]
"GameDir" "C:\Folder\Where\Your\Mod\Is"
Change this line to the directory where your mod is located or to an HPC folder.


Thats it!

Here is a quick example of how it should look when it is complete

Code: [Select]
"Configs"
{
"Games"
{
"Half-Life 2: Deathmatch"
{
"GameDir" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch\hl2mp"
"hammer"
{
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_deathmatch"
"GameExeDir" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch"
"MapDir" "c:\program files (x86)\steam\steamapps\common\sourcesdk_content\hl2mp\mapsrc"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
"GameExe" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch\hl2.exe"
"BSP" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vbsp.exe"
"Vis" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vvis.exe"
"Light" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vrad.exe"
"BSPDir" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch\hl2mp\maps"
"GameData0" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\hl2mp.fgd"
}
}
"SMOD: JUNGLE RUMBLE"
{
"GameDir" "E:\Modding\SMOD\JungleRumble"
"hammer"
{
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_deathmatch"
"GameExeDir" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch"
"MapDir" "c:\program files (x86)\steam\steamapps\common\sourcesdk_content\hl2mp\mapsrc"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
"GameExe" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch\hl2.exe"
"BSP" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vbsp.exe"
"Vis" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vvis.exe"
"Light" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\vrad.exe"
"BSPDir" "c:\program files (x86)\steam\steamapps\common\half-life 2 deathmatch\hl2mp\maps"
"GameData0" "c:\program files (x86)\steam\steamapps\common\sourcesdk\bin\ep1\bin\hl2mp.fgd"
}
}
}
"SDKVersion" "2"
}





This is the old tutorial, please ignore!

I. INTRODUCTION

Setting up the Source SDK for SMOD has all sorts of benefits. For example, if you are fixing weapon world models you will easily be able to load up your fixed wees in HLMV and equip them to an NPC to make sure the hand positions are correct, all without launching SMOD!

So as requested, here is a tutorial on setting up the SDK for use with SMOD.

II. GETTING STARTED

1.) Open up the Source SDK, which can be downloaded through your STEAM Browser. Make sure once it is open you set the Engine Version to HL2: Episode 1.

1a.) The click on "Create a Mod" under the UTILITIES heading. This will open up the "Create a Mod" dialog.



III. CREATING A NEW MOD


1.) On the first screen of the "Create a Mod" dialog, you will be asked what type of mod you want to create. For SMOD we want to select "Modify Half Life 2 Single Player". Once that is selected click "Next >".



2.) You will now be taken to the Mod Information screen. On this screen there are two fields you will need to fill out.

2a.) The first field will be the directory where the source code is installed. You can make this whatever you like. You probably will not use it, ever.

2b.) The second field is your mod name.
**NOTE: This will not actually determine what your mod is called!!! This will be the name of the folder in your SteamApps\SourceMods folder where your mod will be. For this tutorial we will name the mod "smod".

Finally click the "Next >" button.



3.) The Source SDK will now begin copying all the new mod files. This could take a minute or two.
When it is complete click "Next >" and then "Finish".

IV. INSTALL SMOD

1.) Now download the latest version of SMOD (SMOD40a is current as of this writing). Open up your SteamApps\SourceMods directory and dump all of the smod files into the "smod" folder you created in Part III.



2.) If you are asked to overwrite any files say YES!

3.) Thats it! Pretty simple stuff. You should now be able to select smod from the SDK Current Game Menu.



**CHANGING MOD INFO AFTER CREATION**


Lets say you decide to change the name of the folder that SMOD is in and now your SDK settings arent working. To fix the situation, go to this directory:

SteamApps\your_username\sourcesdk\bin\ep1\bin

and open GameConfig.txt

This will allow you to change entries in the SDK Launcher. Poke around and you should be able to find what to change.
« Last Edit: February 11, 2015, 10:11:45 PM by Pepsifan04 »

Offline McBeanie

  • *
  • +1% chance to make useful post
  • McBeanie has no influence.
Re: [SMOD] Setup the Source SDK for use with SMOD
« Reply #1 on: August 16, 2011, 05:16:02 AM »
Is there any updated version of this tutorial anywhere
« Last Edit: August 16, 2011, 05:18:02 AM by McBeanie »

Offline 0per4t0r

  • *
  • +1% chance to make useful post
  • 0per4t0r has no influence.
    • My Youtube
Re: [SMOD] Setup the Source SDK for use with SMOD
« Reply #2 on: August 16, 2011, 05:45:13 AM »
Is there any updated version of this tutorial anywhere
This one still works fine for me, except you use the "Source 2006" engine instead of ep1.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: [SMOD] Setup the Source SDK for use with SMOD
« Reply #3 on: August 16, 2011, 01:20:19 PM »
i need to re-write...I have a much easier way to set it up now.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: [SMOD] Setup the Source SDK for use with SMOD
« Reply #4 on: August 12, 2012, 04:22:20 PM »
1 year later, updated.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: [SMOD] Setup the Source SDK for use with SMOD
« Reply #5 on: February 11, 2015, 10:13:32 PM »
updated by pepsifan04