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
(Valve could probably opt to merge SP and MP together… but I won't cross my fingers.)
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 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.


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 {{tf2branch|2}}, formerly {{src13mp|2}}).
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}}).


{{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 that does not modify game code.<br>
{{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).}}
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).}}
== SDK Base versions ==
== SDK Base versions ==
There are two versions of Source SDK Base(s) 2013:
There are two versions of Source SDK Base(s) 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 runs on {{src13mp|1}}, but it has been upgraded to the {{Tf2branch|2}}, which might be incompatible with mods built on 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}}).<!--
--></br>To downgrade to legacy version of Source SDK Base 2013 Multiplayer, follow the instructions:
--></br>To downgrade to legacy version of Source SDK Base 2013 Multiplayer, follow the instructions:
::# Open Steam, go to '''Source SDK 2013 Multiplayer''', right click Properties
::# Open Steam, go to '''Source SDK 2013 Multiplayer''', right click Properties
Line 24: Line 25:
::# Steam will automatically re-download the files. Once it's done, try to launch the mod again.
::# Steam will automatically re-download the files. Once it's done, try to launch the mod again.
}}
}}
: {{Note|Currently, as of May 30, 2025, this branch hasn't been updated yet to received new features from {{hl2|1}}'s 20th Anniversary Update (radial fog, classic particles, etc.) or the {{tf2branch|1}}.}}
: {{Note|Currently, as of May 30, 2025, this branch has yet to receive updates with new features from {{hl2|1}}'s 20th Anniversary Update (radial fog, classic particles, etc.) or the {{tf2branch|1}}.}}


== Setting up & compiling code ==
== Setting up & compiling code ==
Line 30: Line 31:
* [[Setting up Source SDK Base 2013 Multiplayer|Setting up Source SDK Base 2013 Multiplayer]] - for {{tf2branch|2}} (using post-2025 {{src13mp|1|nt=sdk}})
* [[Setting up Source SDK Base 2013 Multiplayer|Setting up Source SDK Base 2013 Multiplayer]] - for {{tf2branch|2}} (using post-2025 {{src13mp|1|nt=sdk}})
* [[Setting up Source SDK Base 2013 Singleplayer|Setting up Source SDK Base 2013 Singleplayer]] - for {{src13sp|2}} (using {{src13sp|1|nt=sdk}})
* [[Setting up Source SDK Base 2013 Singleplayer|Setting up Source SDK Base 2013 Singleplayer]] - for {{src13sp|2}} (using {{src13sp|1|nt=sdk}})
** Source code for this SDK is not yet updated, unlike TF2 branch, and will require using older version of Visual Studio or GCC to compile.
** Source code for this SDK is not yet updated, unlike the TF2 branch, and will require using an older version of Visual Studio or GCC to compile.
** Also applies to legacy (pre-2025) version of {{src13mp|1|nt=sdk}}.
** Also applies to legacy (pre-2025) version of {{src13mp|1|nt=sdk}}.


Line 42: Line 43:
=== Multiplayer branch ===
=== Multiplayer branch ===
* Source Engine Test (<code>sourcetest</code>)
* Source Engine Test (<code>sourcetest</code>)
** {{Note|Source Engine Test can be only launched with 32-bit binaries only.}}
** {{Note|Source Engine Test can only be launched with 32-bit binaries.}}
* {{hl2dm|1}} shared (<code>hl2mp</code>)
* {{hl2dm|1}} shared (<code>hl2mp</code>)
* {{hl2|1}} Complete (<code>hl2_complete</code>)
* {{hl2|1}} Complete (<code>hl2_complete</code>)
Line 49: Line 50:


== Known issues ==
== Known issues ==
If their are any issues or bugs with Source SDK 2013, including SDK Base, search for existing bugs or report it here on GitHub:
If there are any issues or bugs with Source SDK 2013, including SDK Base, search for existing bugs or report it here on GitHub:
*[https://github.com/ValveSoftware/source-sdk-2013/ Source SDK 2013 - GitHub Issues]
*[https://github.com/ValveSoftware/source-sdk-2013/ Source SDK 2013 - GitHub Issues]



Revision as of 05:28, 30 May 2025

English (en)Translate (Translate)
edit

Source 2013 Source SDK Base 2013 - Singleplayer and Source SDK Base 2013 - Multiplayer are tools available to all Steam users which, as the name implies, is locked to Source 2013 engine branch, to prevent incompatible engine updates from making your mod unusable.

Since Source 2013 was split into three sub-branches (originally two), there are Source SDK Base 2013 - Singleplayer (for singleplayer mods, based on Source 2013 Singleplayer Source 2013 Singleplayer) and Source SDK Base 2013 - Multiplayer (for multiplayer mods, based on the Team Fortress 2 branch Team Fortress 2 branch, formerly Source 2013 Multiplayer Source 2013 Multiplayer).

Tip.pngTip:Despite the names, both Source SDK Base 2013 - Singleplayer and Source SDK Base 2013 - Multiplayer (Source 2013 Multiplayer only) can be used for singleplayer.
The Multiplayer branch provides additional features (static prop lightmaps, BSP compression, more ambient cubes per visleaf, and slightly newer code), which 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.
The Team Fortress 2 branch TF2 branch version of Source SDK Base 2013 - Multiplayer makes some changes which break singleplayer mode, such as save loading not working correctly[1] and attempting to load any map with maxplayers (singleplayer) and cl_localnetworkbackdoor both set to 1 will also crash the game[2] (not affected on "sourcetest" (Source Engine Test).

SDK Base versions

There are two versions of Source SDK Base(s) 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.

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: