Quick Installation Tutorial (WIP) - SourceCE/Source-SP GitHub Wiki
Here's how to install SourceCE Singleplayer for developing your mod.
Also see this wiki page for a lot of information.
Requirements
-
This Github Repo
- We recommend you check out the code with the source control tool of your choice, as it updates very frequently

- Extract it to a safe place where you can easily access it and where you have room. This source code is moderately big.
-
Visual Studio 2013 Community: The official development tool of Source.
- The link is a direct download to the online installer. Make sure you have an internet connection.
- Do NOT use Visual Studio 2015; only 2013 will work. I'm not sure about older versions, but just to be safe use 2013.
- It's free! Though, if you want to use this for advanced work or in a corporation (somehow), you need to upgrade to a paid version.
- Visual Studio is HUGE. Install it where you have about 10-15GB of room.
-
Multibyte MFC Library for Visual Studio 2013:
- The link takes you to a download page. Just click the red
Downloadbutton to download.
- The link takes you to a download page. Just click the red
-
- After you extract the SDK and run
Microsoft Speech SDK 5.1.msi, copy the files to your source code folder. The path is<path-to-root>\sp\src\utils\sapi51.
- You need to make some edits to sphelper.h before you continue:
You can find it by looking in the
Includefolder.
- After you extract the SDK and run
Line 769
const size_t ulLenVendorPreferred = wcslen(pszVendorPreferred); // no size_t
Line 1418
static long CoMemCopyWFEX(const WAVEFORMATEX * pSrc, WAVEFORMATEX ** ppCoMemWFEX) // missing long
Line 2368
const WCHAR * PropertyStringValue() const
{
// Search for the first NULL and return pointer to the char past it.
SPDBG_ASSERT(eEventId == SPEI_PROPERTY_STRING_CHANGE);
const WCHAR * psz = (const WCHAR *)lParam; // moved this from for init
for (; *psz; psz++) {}
return psz + 1;
}
Line 2560
SPPHONEID* pphoneId = (SPPHONEID*)((WCHAR *)dsPhoneId); // improper casting
Line 2634
pphoneId += wcslen((const wchar_t *)pphoneId) + 1; // improper casting
#Setting up the SDK Base If you have never played a singleplayer Source 2013 mod before, follow these instructions. If you have, you don't need to follow this because you have already set this up.
Open up Steam. Click on the Library tab and select Tools (#)

Scroll down until you see Source SDK 2013 Base Singleplayer. Double-click to install.

Once you're done downloading it, right-click it and select Properties.

Click on the Betas tab and change the top dropdown to upcoming. More files will start downloading. This is normal.

#Setting up the Mod Folder
Go to your source code (which you should have extracted by now and installed the speech SDK into). Go into the sp folder.

You will be presented with two folders. We will go into both of them, but for now let's go into the game folder.

Here is the basic info for your mod. To use Source2013CE, copy the sdk2013ce folder into your Steam's sourcemods folder, usually located at C:\Program Files (x86)\Steam\SteamApps\sourcemods. Mine is different because my D: partition has more space.
NOTE: Wazanator's general tutorial on Source SDK 2013 said to copy the hl2 folder from your steamapps\common\Half Life 2 folder. This isn't necessary as the SDK Base has these files already. Also, we have specific files in the sdk2013ce folder related to the branch's features that would be overwritten if you copy the hl2 folder, so you should probably just copy the sdk2013ce folder over.
#Setting up the Code
Now go back to your source and pull back up the sp folder, but this time go into the src folder.

Run createsource2013ce.bat to create the Visual Studio solution. This allows you to edit the code in Visual Studio.

If you only have VS2013 installed, go ahead and double-click the new solution that was just created.
If you have multiple versions of VS installed (like me), open VS2013, go to File>Open...>Solution and open the solution that way.

You may get errors saying some projects is out-of-date. Just click OK to update the projects.
insert image here
We need to make some changes in order to compile the code correctly. On the menu bar, click on Build>Configuration Manager. A dialogue box will open. Find a dropdown with Debug selected and change it to Release. Click OK.

Now go back to the Build menu on the menu bar and select Build Solution. from it. This is a good time to get a cup of coffee, because you're going to be here for a while.

Once you're done, you need to find client.dll and server.dll. You can find those in the following places:
- client.dll:
<path-to-git>\sp\src\game\client\Release_sdk2013ce - server.dll:
<path-to-git>\sp\src\game\server\Release_sdk2013ce
Copy these files to <path-to-sourcemods>\sdk2013ce\bin. These are the files your game needs in order to play your mod.

#Starting the Game
Restart Steam if you haven't already.
Go to your game library and find Source CE in your game list. Click on it to select it, then click Play to start it.

Once your game is up and running, it should look something like this:
I hope this tutorial helped you. If you have any questions, send them through Discord. Farewell, and good luck on your travels!