Overview
I know there are some simmilar tutorials over the internet, however I decided to create own one. I hope you will like it ;3
Downloading Requirements
Install Source SDK Base 2013 singleplayer from Steam->Library->Tools or from the link below:
steam://rungameid/243730 //paste this to your internet browser
Download the source code from Github[github.com] or download ZIP[github.com].
If you haven’t installed Visual Studio and Multibyte MFC Library download them from here:
Visual Studio 2013[go.microsoft.com]
Multibyte MFC Library[www.microsoft.com]
Microsoft Speech SDK[www.microsoft.com]
Setting up your Source SDK Base 2013 Singleplayer
Extract your source-sdk-2013-master.zip somewhere on your desktop.
Now open it and take “sp” folder and move it to “C://” location, otherwise there might be problems with compiling,
Now rename it to your mod name, I’ll call it “Half-Life 2 Test Mod”
Go to your Microsoft Speech SDK’s installation directory, it should be in C:Program Files (x86)Microsoft Speech SDK 5.1.
Now open your folder on “C://” drive, go to “src/utils/” and create folder “sapi51”.
Now copy all files from Microsoft Speech SDK (Bin, Docs, IDL etc.) to “sapi51” like that:
Open your “sapi51” folder, and go to “include” folder. There should be file called “sphelper.h”. Open it with notepad++. Now we will be replacing some lines with fixed ones:
Change Line 769
to:
Line 1418
to:
Line 2368
to:
Line 2560
to:
Line 2634
to:
Go to Library -> Tools and find Source SDK Singleplayer 2013 Base
Now right click on it, proporties, go to beta tab, and select “upcoming”.
Creating your mod.
Go to “<steam install directory>/steamapps/sourcemods/” and create your mod folder here.
Now to go steam “<steam install directory>/common/Source SDK Base 2013 Singleplayer/hl2” and copy all 4 folders to your mod folder like that:
Create all this folders in your mod folder:
- bin
- cfg
- maps
- materials
- models
- particles
- sound
Download them from here[www.dropbox.com] and put to cfg folder.
Create new .txt document inside your mod’s folder and call it “Gameinfo.txt”. Open it, paste and modify following code”
Now restart your steam! :3
Compiling your mod
Go to “C://” and open your mod folder, go to “src” and run “createallprojects.bat” and “creategameprojects.bat”.
Open “everything.sln” with visual studio and change “Debug mode” To “Release”. Do the same to “games.sln”.
Now right click on solution and select “Build Solution”.
Notes:
Go to “C://<yourmodname>/game/mod_hl2/bin” and copy everything inside to “<steam directory>/steamapps/sourcemods/<your mod name>/bin”.
That’s all! Now you can run your mod from your game library. :3