This article's documentation is for anything that uses the Source engine. Click here for more information.
This article relates to the software/tool "Source SDK". Click here for more information.

Source SDK Base 2013: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Changed intro. I've tried to better describe what the SDK bases actually do.)
Line 2: Line 2:
{{TabsBar|main=Source SDK Base}}
{{TabsBar|main=Source SDK Base}}
{{Toc-right}}
{{Toc-right}}
{{src13}} {{srcsdk13sp|3}} and {{srcsdk13mp|3}} are tools available to all Steam users which, as the name implies, is locked to {{src13|1}} engine branch, to prevent incompatible engine updates from making your mod unusable.
{{src13}} {{srcsdk13sp|3}} and {{srcsdk13mp|3}} are necessary dependencies for [[mods]] based on {{src13|1}}. They are responsible for bootstrapping the Source engine when launching a mod and include essential parts of the {{Tooltip|line=dashed|in binary form only (engine.dll)|source code}} that are not publicly available in the official SDK. Both are available to all Steam users under the 'tools' section on the Library page. As the name implies, Source SDK Base 2013 is locked to the {{src13|1}} engine branch, to prevent incompatible engine updates from making mods unusable.


Since Source 2013 was split into three sub-branches (originally two), there are '''{{srcsdk13sp|name}}''' (for singleplayer mods, based on {{src13sp|2}}) and '''{{srcsdk13mp|name}}''' (for multiplayer mods, based on the {{tf2branch|2}}, formerly {{src13mp|2}}).
Since Source 2013 is split into three sub-branches, there is:
*On {{srcsdk13sp|3.1}}:
**{{src13sp|2}}.
*On {{srcsdk13mp|3.1}}:
**{{tf2branch|2}} - current version.
**{{src13mp|2}} - legacy branch ({{Code|previous2021}}, see below).


{{tip|Despite the names, '''both {{srcsdk13sp|1}} and {{srcsdk13mp|1}} ({{src13mp}} only) can be used for singleplayer'''.<br>The Multiplayer branch provides additional features ([[$lightmap|static prop lightmaps]], [[BSPZIP|BSP compression]], more [[ambient cube]]s per [[visleaf]], and slightly newer code), which may be desirable over the Singleplayer branch if not using a base mod such as {{mapbase|3.1}} and not making a single-player mod with game code untouched.<br>
 
The {{tf2branch|2|nt=0}} version of {{srcsdk13mp|1}} makes some changes which break singleplayer mode, such as save loading not working correctly[https://github.com/ValveSoftware/source-sdk-2013/issues/629] and attempting to load any map with {{cmd|maxplayers}} (singleplayer) and {{cmd|cl_localnetworkbackdoor}} both set to {{code|1}} will also crash the game[https://github.com/ValveSoftware/source-sdk-2013/issues/610] (not affected on "sourcetest" (Source Engine Test).}}
{{tip|Despite its name, you can make a singleplayer mod using {{srcsdk13mp|3.1}}, but you MUST use the legacy branch ({{src13mp}}):
*The Multiplayer branch provides additional features ([[$lightmap|static prop lightmaps]], [[BSPZIP|BSP compression]], more [[ambient cube]]s per [[visleaf]], and slightly newer code).
*This may be desirable over the Singleplayer branch if not using a base mod such as {{mapbase|3.1}} and not making a single-player mod with game code untouched (this process requires you to modify the code).}}
 
{{bug|hidetested=1|The {{tf2branch|2}} version of {{srcsdk13mp|1}} makes some changes which break singleplayer mode:
*save loading does not work correctly[https://github.com/ValveSoftware/source-sdk-2013/issues/629].
*attempting to load any map with {{cmd|maxplayers}} and {{cmd|cl_localnetworkbackdoor}} both set to {{code|1}} will crash the game[https://github.com/ValveSoftware/source-sdk-2013/issues/610] (not affected on "sourcetest" (Source Engine Test)).}}


== SDK Base versions ==
== SDK Base versions ==
There are two versions of Source SDK Base(s) 2013:
There are two versions of Source SDK Base 2013:
* {{src13mp|2|nt=sdk}} (AppID: {{code|243750}} - {{Steam|launch/243750|Click to Install}})
* {{src13mp|2|nt=sdk}} (AppID: {{code|243750}} - {{Steam|launch/243750|Click to Install}})
:{{Note|This branch originally ran on {{src13mp|1}}, but it has been upgraded to the {{Tf2branch|2}}, which might be incompatible with mods built on the legacy version of {{srcsdk13mp|1}} (that runs on {{src13mp|1}}).<!--
:{{Note|This branch originally ran on {{src13mp|1}}, but it has been upgraded to the {{Tf2branch|2}}, which might be incompatible with mods built on the legacy version of {{srcsdk13mp|1}} (that runs on {{src13mp|1}}).<!--

Revision as of 08:20, 25 June 2025

English (en)Translate (Translate)
edit

Source 2013 Source SDK Base 2013 - Singleplayer and Source SDK Base 2013 - Multiplayer are necessary dependencies for mods based on Source 2013. They are responsible for bootstrapping the Source engine when launching a mod and include essential parts of the source code that are not publicly available in the official SDK. Both are available to all Steam users under the 'tools' section on the Library page. As the name implies, Source SDK Base 2013 is locked to the Source 2013 engine branch, to prevent incompatible engine updates from making mods unusable.

Since Source 2013 is split into three sub-branches, there is:


Tip.pngTip:Despite its name, you can make a singleplayer mod using Source SDK Base 2013 - Multiplayer, but you MUST use the legacy branch (Source 2013 Multiplayer):
  • The Multiplayer branch provides additional features (static prop lightmaps, BSP compression, more ambient cubes per visleaf, and slightly newer code).
  • This may be desirable over the Singleplayer branch if not using a base mod such as Mapbase and not making a single-player mod with game code untouched (this process requires you to modify the code).
Icon-Bug.pngBug:The Team Fortress 2 branch Team Fortress 2 branch version of Source SDK Base 2013 - Multiplayer makes some changes which break singleplayer mode:
  • save loading does not work correctly[1].
  • attempting to load any map with maxplayers and cl_localnetworkbackdoor both set to 1 will crash the game[2] (not affected on "sourcetest" (Source Engine Test)).

SDK Base versions

There are two versions of Source SDK Base 2013:

Note.pngNote:This branch originally ran on Source 2013 Multiplayer, but it has been upgraded to the Team Fortress 2 branch Team Fortress 2 branch, which might be incompatible with mods built on the legacy version of Source SDK Base 2013 - Multiplayer (that runs on Source 2013 Multiplayer).
To downgrade to legacy version of Source SDK Base 2013 Multiplayer, follow the instructions:
  1. Open Steam, go to Source SDK 2013 Multiplayer, right click Properties
  2. A window will open. Go to "Betas", select previous2021 beta branch.
  3. Steam will automatically re-download the files. Once it's done, run Source SDK Base 2013 MP as normal, or use its tools.
Note.pngNote:By default, many sourcemods (including Mapbase Mapbase), will crash when launched, unless you select the upcoming branch.
To select upcoming branch, follow the instructions:
  1. Open Steam, go to Source SDK 2013 Singleplayer, right click Properties
  2. A window will open. Go to "Betas", select upcoming beta branch.
  3. Steam will automatically re-download the files. Once it's done, try to launch the mod again.
Note.pngNote:Currently, as of May 30, 2025, this branch has yet to receive updates with new features from Half-Life 2's 20th Anniversary Update (radial fog, classic particles, etc.) or the Team Fortress 2 branch, aswell as bug fixes introduced with later version of Half-Life 2 (and other Source games).
The latest version of Source SDK Base 2013 SP are from June 2014, while upcoming branch are last updated in September 2014. Gamecode for the SP branch are last updated in September 2015.

Setting up & compiling code

To set up Source SDK 2013 and compiling mods, see:

SDK Base Content

Singleplayer branch

Multiplayer branch

Known issues

If there are any issues or bugs with Source SDK 2013, including SDK Base, search for existing bugs or report it here on GitHub: