Source 2013: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(→‎Newer Features: Gmod has a webm.dll)
Line 39: Line 39:
: A low-overhead, cross-platform graphics API, successor to [[OpenGL]].
: A low-overhead, cross-platform graphics API, successor to [[OpenGL]].
: First introduced in 2022 with {{hl2|1}} and {{portal|1}}, then {{bms|1}} and {{tf2|1}}. {{portalrtx|1}} also uses Vulkan as part of the RTX Remix runtime.
: First introduced in 2022 with {{hl2|1}} and {{portal|1}}, then {{bms|1}} and {{tf2|1}}. {{portalrtx|1}} also uses Vulkan as part of the RTX Remix runtime.
; [[WebM]] video playback {{only|{{tf2}}{{hdtf}}}}
; [[WebM]] video playback {{only|{{tf2}}{{hdtf}}{{gmod}}}}
: Used for game intros or cutscenes in some games. Replaces [[Bink]] video. WebM allows smaller video file sizes without significantly degrade the video quality.
: Used for game intros or cutscenes in some games. Replaces [[Bink]] video. WebM allows smaller video file sizes without significantly degrade the video quality.



Revision as of 17:19, 9 August 2024

English (en)中文 (zh)Translate (Translate)

The Source 2013 Source 2013 engine branch (also called SteamPipe branch) is the final iteration of the Orange Box engine branch. It was introduced by Valve in 2013 to replace the archaic GCF file format with the VPK format introduced in the Left 4 Dead engine branch. Major shifts in content mounting occurred, and all Valve games using the Source 2009 and Source Multiplayer engine branches were upgraded to this branch. Half-Life: Source Half-Life: Source, Half-Life Deathmatch: Source Half-Life Deathmatch: Source, and Half-Life 2: Lost Coast Half-Life 2: Lost Coast was also upgraded to this engine branch from the Source 2006 engine branch. The 🖿custom folder was added to make modding easier and was added as a mounting path for each individual Source game.

While SteamPipe was praised for simplifying how the Source engine mounts content and including previously-unreleased Team Fortress 2 code, it also broke countless numbers of mods and worsened problems already present in the Source 2009 branch, requires more space due to some Source 2013 games (except Half-Life 2: Episode One, Half-Life 2: Episode Two, etc...) containing duplicated Half-Life 2 base content, plus bugs started to appear in Half-Life: Source. It also does not have most of the features that the engine branches from the Left 4 Dead engine branch onwards had. However, the engine branch has been polished over time, with various bugs from previous Orange Box branch have been fixed (such as Dropship container gun being non-functional in Half-Life 2, NPCs eyes not blinking, etc...) and is now the main branch in use by modern non-licensed engine mods.

Source 2013 is split into two sub-branches, titled Source 2013 Singleplayer and Source 2013 Multiplayer, which replaced the Source 2009 and Source Multiplayer branches, respectively. The two sub-branches are mostly interchangeable, but they use separate codebases, and the Multiplayer branch has some features which are not available in the Singleplayer branch.

Tip.pngTip:Despite the names, both branches can be used for singleplayer.
Due to the benefits provided by the Multiplayer branch's additional features (static prop lightmaps, BSP compression, more ambient cubes per visleaf, and slightly newer code), the Singleplayer branch should only be used if using a base mod such as Mapbase, or if making a single-player mod that does not modify game code.

As of 2024, all Source 2013 games are actively being maintained with bug fixes by Valve and third-party developers.

Features

Screenshot of the Gamepad UI from Half-Life 2 Half-Life 2, introduced in 2022.

New since the Source 2009 Source 2009 (including Source Multiplayer Source Multiplayer) engine branch is:

VPK files and 🖿custom folder
First introduced on Left 4 Dead engine branch and onwards, it was later available on Source 2013, which replaced the old GCF format. This also adds support for reading any files from "custom" folder, which makes installing mods easier without overwriting original game files. In some Source 2013 games, such as Black Mesa Black Mesa, users may need to create the 🖿custom manually.
Linux Linux and other platform support
The engine can now run on Linux, Android (for Nvidia Shield), Nintendo Switch and other operating systems/platforms. However, support for these OS outside of official games may be spotty.
Static prop lightmaps (only in Source 2013 Multiplayer)(also in Garry's Mod)
Static props without bump maps can now use lightmaps (albeit with limitations).
Per-texel color tint masking for models
$blendtintbybasealpha is ported from the Left 4 Dead engine branch Left 4 Dead engine branch. Source 2013 includes an exclusive additional parameter, $blendtintcoloroverbase.
BSP compression (only in Source 2013 Multiplayer)
BSP maps and packed files can be losslessly compressed on both server and client.

Newer Features

Features introduced with later updates to the branch.

Swaying trees (only in Team Fortress 2Black MesaGarry's ModMapbase)
A material parameter that gives the effect of trees swaying in the wind.
64-bit binaries (only in Team Fortress 2Garry's Mod)
Allows the game to access more than 4GB RAM and have slightly better performance.
Note.pngNote:Team Fortress 2 64-bit is not available on Mac.
Half-Life 2 was the first game to receive 64-bit update back in 2005, when it ran on Source 2004. It was later removed for unknown reasons, but it also had some technical issues at the time.
VScript (only in Team Fortress 2MapbaseNo More Room in Hell)
A powerful new scripting system primarily using Squirrel Squirrel or Lua Lua. Third-party games may have different VScript implementation.
Gamepad UI (only in Half-Life 2PortalEntropy : Zero 2)
Introduced in 2022, Gamepad UI is a modern controller-oriented UI designed for consoles and handhelds like Steam Deck. With the new Gamepad UI, it was more scalable across any resolution (including 4K and higher), unlike the regular VGUI (which, the higher the resolution, the text and UI will become smaller). This UI can be also enabled manually by using -gamepadui command line argument (which will also enable Vulkan renderer that may not work on some older GPUs unless -dx9 is used in combination of -gamepadui).
Vulkan renderer
A low-overhead, cross-platform graphics API, successor to OpenGL.
First introduced in 2022 with Half-Life 2 and Portal, then Black Mesa and Team Fortress 2. Portal with RTX also uses Vulkan as part of the RTX Remix runtime.
WebM video playback (only in Team Fortress 2Hunt Down the FreemanGarry's Mod)
Used for game intros or cutscenes in some games. Replaces Bink video. WebM allows smaller video file sizes without significantly degrade the video quality.

Availability

Gamecode for both the Source 2013 Multiplayer and Singleplayer branches is included in Valve's Source SDK 2013 repository.

Warning.pngWarning:By default, the SDK 2013 code does not contain many recent updates, new features and bug fixes (such as Dropship gun fix) that was introduced in Half-Life 2 and Portal (since the new Steam Deck update) respectively, nor the "upcoming" builds on Steam, along with the rest of Source 2013 games. Alternatively you can use the SDK 2013 community repos which have these bugs fixed by default.

Source 2013 Singleplayer

Valve

Third-Party

Source 2013 Multiplayer

Valve

Third-party

Third-party Source 2013 branches

The following games use neither Source 2013 Singleplayer nor Source 2013 Multiplayer, but rather use custom (heavily modified) branches forked earlier versions from both Source 2013 branches, with newer features added on. As such, they may or may not include all features from newer first-party versions of Source 2013, such as LZMA-compressed BSPs or lightmapped MDLs.

See also