Source 2013

From Valve Developer Community
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Info content.png
This translated page needs to be updated.
You can help by updating the translation.
Also, please make sure the article complies with the alternate languages guide.(en)
The following content or section specifically needs to be translated:
如 Source 2013 MP 部分的第一方游戏现已升级为 TF2 分支,需要重点翻译。
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

本页面内容将由 115steam 参照英文原页面正在进行翻译。如果发现长时间未翻译,请去除这句话。同时也欢迎任何人补充新内容或者修改其中的错误。

Note.png注意:“半条命”也是官方译名,详见 Valve 新员工手册 P33 官方简体中文本地化版

本文是关于 起源 2013 引擎分支. 关于 Source SDK Base 2013 的信息, 见 Source SDK Base 2013.

起源2013 起源2013引擎分支(又称 SteamPipe 分支)是橙盒 引擎分支分支的最终迭代。Valve 于 2013 年推出该分支,旨在用求生之路 引擎分支引擎分支中引入的 VPK(en) 格式取代过时的 GCF(en) 文件格式。
此次更新带来了内容挂载方式的重大变革,所有使用 起源2009起源 多人分支分支的 Valve 游戏都升级到了该分支。包括半衰期:起源 半衰期死亡竞赛:起源 半衰期死亡竞赛:起源半衰期2:失落的海岸线 半衰期2:失落的海岸线起源2006 起源2006引擎分支升级为该引擎分支。
新增的🖿custom文件夹简化了模组制作流程,为每个起源游戏单独设置了挂载路径。

尽管 SteamPipe 因简化了起源引擎挂载内容的方式和公开未发布的(2025年2月19日军团要塞2 军团要塞2代码而备受赞誉,但也导致大量模组失效,加剧了起源2009分支既有的问题。由于部分 起源2013 游戏(除半衰期2:第一章半衰期2:第二章等外)包含重复的《半条命2》基础内容,导致存储空间需求增加,同时为 半衰期:起源 引入了更多bug(en)。该分支亦未具备求生之路 引擎分支后续引擎分支的多数特性。不过经过持续优化,修复了橙盒分支遗留的诸多漏洞(如《半条命2》中运输机货舱机枪失效、NPC眨眼动画缺失等问题),现已成为现代非商业化引擎模组使用的主力分支。

子分支 (SP/MP)

起源2013 起源2013 分为两个子分支, 起源2013 单人分支 起源2013 单人分支起源2013 多人分支 起源2013 多人分支,它们分别取代了 起源2009起源 多人分支 分支。两个子分支的代码库相互独立,但功能基本互通。多人模式分支包含单人模式分支不具备的部分特性
自 2022 年起,军团要塞2 军团要塞2 使用的 起源2013 多人分支 起源2013 多人分支 分支经过引擎更新后,形成了一个不兼容的新版本,即 军团要塞2分支 军团要塞2分支 (独有页面)。截至2025年2月19日,所有剩余的第一方 Source 2013 多人模式游戏(反恐精英:起源, 胜利之日:起源, 半衰期2:死亡竞赛, 半衰期死亡竞赛:起源) 和 SDK Base 2013 - MP 均已升级至该分支,完全取代了旧版 起源2013 多人分支 分支(也叫 Source 2013 Multiplayer Legacy)。
起源2013 单人分支 分支虽引入了新功能(如《半条命2》的 Steam Deck 更新以及20周年纪念所更新的特性),基于旧版SDK 2013 SP代码构建的模组和工具仍可兼容。但若使用旧版SDK 2013 SP代码的模组运行于新版SDK 2013 SP代码构建的游戏上,将无法完整支持新功能(如Steam输入、径向雾效、经典粒子系统、HUD 宽高比适配等)或可能运行异常。目前 Valve 尚未发布更新后的 Source SDK Base 2013 SP 源代码。
截至 2025 年,Valve 和第三方开发者仍在积极维护该分支下的所有游戏。但Valve仅维护起源2013 单人分支分支,因为起源2013 多人分支游戏已被军团要塞2分支取代。

Tip.png提示:尽管名称不同,但这两个分支都可以用于单人游戏
由于多人游戏分支的附加功能所带来的好处(静态道具 lightmaps 、 BSP 压缩、环境光立方每可见性、小幅度代码更新),只有在使用Mapbase等基础mod或制作不修改游戏代码的单人mod时,才应使用单人分支。
军团要塞2分支 TF2 分支的部分改动(不限于网络模块)会导致单人模式崩溃,例如:生成携带 Strider 货箱类型的运输机会导致游戏崩溃;尝试加载任何maxplayers 1(单人模式)地图也会导致崩溃(参见反恐精英:起源图形压力测试)。

特性

来自 起源2009 起源2009 引擎分支的新特性(功能):

VPK(en) files and 🖿custom folder
First introduced on 求生之路 引擎分支 求生之路 引擎分支 and onwards, it was later available on 起源2013 起源2013, which replaced the old GCF(en) format. This also adds support for reading any files from "custom" folder.
Linux Linux support
The engine can now run on Linux. However, Linux support outside of official games may be spotty.
Static prop lightmaps (存在于 起源2013 多人分支 之中)(也存在于 Garry's Mod 之中)
Static props without bump map(en)s can now use lightmap(en)s.
Per-texel color tint masking for models
$blendtintbybasealpha is ported from the 求生之路 引擎分支 求生之路 引擎分支. 起源2013 起源2013 includes an exclusive additional parameter, $blendtintcoloroverbase.
Swaying trees(en) (存在于 军团要塞2黑山Garry's ModMapbase 之中)
A material parameter that gives the effect of trees swaying in the wind.
BSP 压缩 (存在于 起源2013 多人分支 之中)
BSP(en) maps and packed files can be losslessly compressed on both server and client.
VScript(en) (存在于 军团要塞2Garry's ModMapbase 之中)
A powerful new scripting system primarily using Squirrel(en) (if 军团要塞2Mapbase), Lua (if Garry's Mod).

可见性

Source 2013 多人游戏和单人游戏分支的游戏代码都包含在 Valve 的 Source SDK 2013 repository 存储库。

Warning.png警告:By default, some of the gamecode for the SDK 2013 are massively out of date, and does not contain many updates and bug fixes (such as Dropship(en) gun fix) that was introduced in 半衰期2 and 传送门 (since the new Steam Deck update) respectively, nor the "upcoming" builds on Steam, along with the rest of 起源2013 games. Furthermore, the MP builds (on Steam) are more up to date than the SP builds.

Source 2013 Singleplayer

Deprecates 起源2009 起源2009

第三方

Source 2013 Multiplayer

Deprecates 起源 多人分支 起源 多人分支

第三方

第三方使用 Source 2013 分支

The following games use neither 起源2013 单人分支 nor 起源2013 多人分支, 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(en).

  • 黑山 黑山 (branch also known as "Xengine")
  • Garry's Mod Garry's Mod (which also support some features from Alien Swarm, Portal 2 engine branch and onwards, such as partial VTF 7.5 support). Also have 64-bit executable.

另见