This article relates to the game "Team Fortress 2". Click here for more information.
这篇条目有关 Source引擎。如需详情,点击这里。

军团要塞2分支

From Valve Developer Community
< Zh
Revision as of 23:13, 22 February 2025 by 115steam (talk | contribs) (翻译一部分)
Jump to navigation Jump to search
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.

Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)

English (en)Русский (ru)中文 (zh)Translate (Translate)
Broom icon.png
This article or section needs to be updated to include current information regarding the subject because:
所有第一方游戏现均已运行在此分支上。更新所有其他页面,将提及的起源2013 多人分支替换为军团要塞2分支,并为此页面添加新功能(若有)。若某处标注(存在于 起源2013 多人分支 之中),请统一改为(存在于自 起源2013 多人分支 以来)
Remember to check for any notes left by the tagger at this article's talk page.

军团要塞2分支 军团要塞2分支 (亦称Source 2013多人模式v2或简称TF2分支) 是 起源2013 多人分支 起源2013 多人分支 的更新版本,基于 军团要塞2 军团要塞2 的持续更新开发而成。在“半条命2”的20周年更新后, 半衰期2:死亡竞赛 也升级至该分支。截至2025年2月18日(CST:2月19日),所有剩余的 起源2013 多人分支 游戏(反恐精英:起源, 半衰期死亡竞赛:起源, 胜利之日:起源起源2013 多人分支 SDK)均已升级至此分支。

该分支新增了多项功能,其中包含源自 半衰期2 20周年庆更新的技术特性,以及 求生之路 引擎分支 及后续分支的兼容性改进等优化方案

需要注意的是,基于{{src13mp|1}(也称为起源2013 多人分支 旧版)开发的模组和工具将无法在此分支运行,因存在ABI(应用程序二进制接口)不兼容问题。

特性

起源2013 多人分支 起源2013 多人分支 分支更新以来:

Wikipedia icon 64 位二进制文件 (也存在于 Garry's Mod 之中)
使游戏可访问超过4GB内存,性能略有提升。SDK 工具中的 Hammer、地图编译器(VBSPVVISVRAD)等也提供64位版本。
Note.png注意:Mac平台不支持64位运行
VScript(en) (也存在于 Mapbase 地狱已满 求生之路 引擎分支 传送门 2 引擎分支 CS:GO 引擎分支 之中)
基于Squirrel Squirrel语言的全新脚本系统,支持深度游戏逻辑定制。第三方游戏可能采用不同的VScript实现方案
WebM(en) 视频播放 (也存在于 Hunt Down the Freeman Garry's Mod 反恐精英:全球攻势 地层起源 之中)
替代Bink(en)视频编解码器,用于游戏开场动画与过场动画。WebM格式在保持画质前提下显著缩小文件体积。
Vulkan(en) 渲染器 (也存在于 半衰期2 传送门 求生之路2 传送门 2 引擎分支 CS:GO 引擎分支 地层起源 Xengine 之中)
跨平台低开销图形API, 继承OpenGL(en)
2022 年随适配 Steam Deck 的 半衰期2传送门 更新首次推出,后在 军团要塞2 64位更新期间(2024 年)正式集成。Portal with RTX 也采用 Vulkan 作为光追改造(RTX Remix)的一部分。使用DXVK,一个用于将Direct3D调用转换为Vulkan的库。默认禁用,可通过启动项添加 -vulkan 启用。
VGUI(en)Wikipedia icon DPI 支持 (也存在于 半衰期2 20周年更新 之中)
实现4K(3840x2160)等高分屏下界面元素的精准缩放
Steam 网络
通过Steam 数据报中继实现自建服,无需端口转发即可创建可加入的服务器。
Wikipedia icon zh:Bicubic 贴图过滤 (也存在于 半衰期2 20周年更新 半衰期:起源 之中)
2024年新增特性,在启用 r_lightmap_bicubic 参数后,可平滑处理光贴图(en)低分辨率导致的锯齿问题。也可通过将"着色器细节"设为"极高"自动启用。
径向雾效果(en) (也存在于 Mapbase 求生之路 引擎分支 异形丛生 引擎分支 传送门 2 引擎分支CS:GO 引擎分支 地层起源 半衰期2 20周年更新 之中)
区别于平面雾效,摄像机旋转时不会改变特定区域的雾浓度表现(增强/减弱)。
可通过 env_fog_controller 的"使用径向雾(fogRadial)"关键帧值,可以使用径向雾或基于平面的雾。
Texture streaming (也存在于 CS:GO 引擎分支泰坦陨落 引擎分支 之中)
Reduces system RAM and graphics card VRAM usage by streaming textures as needed instead of loading them all when loading the map.
Swaying trees(en) (也存在于 Garry's Mod Mapbase 求生之路 引擎分支 异形丛生 引擎分支 传送门 2 引擎分支 CS:GO 引擎分支 地层起源 Xengine 之中)
Introduced in Jungle Inferno update. A material parameter that gives the effect of trees swaying in the wind.
Removal of Miles Sound System middleware
Uses open-source minimp3 minimp3 for MP3(en) playback instead. Files related to Miles Sound System will remain on the game's 🖿bin folder, but left unused.
Updated shader compilation tools
Now by default SCell555's shader compiler is included in the SDK.
Numerous security fixes
See GitHub post.

可用性

此分支的源码(游戏、工具)现于GitHub可用。

Valve

Note.png注意:基于起源2013 多人分支 Source SDK Base 2013 - Multiplayer(旧版)开发的模组在升级至 军团要塞2分支 后可能无法正常运行。若需使用旧版Source SDK Base 2013 - Multiplayer运行早期模组(或使用旧版SDK工具),请按以下步骤操作:
  1. 启动 Steam 客户端,找到 Source SDK 2013 Multiplayer 右键选择"属性"。
  2. 在弹出的属性窗口中,进入"测试版"标签页,选择 previous2021 测试版分支。
  3. Steam 将自动重新下载旧版文件(版本回滚)。下载完成后,可正常启动"Source SDK Base 2013 MP"或使用其配套工具