ShizCalev/MGSHDFix

GitHub: ShizCalev/MGSHDFix

为《潜龙谍影》大师合集添加自定义分辨率、带鱼屏支持并修复大量画面、音频及操作 Bug 的社区修复补丁。

Stars: 755 | Forks: 15

# Metal Gear Solid Master Collection 修复补丁 [![Releases](https://img.shields.io/github/v/release/ShizCalev/MGSHDFix)](https://github.com/ShizCalev/MGSHDFix/releases) [![Downloads](https://img.shields.io/github/downloads/ShizCalev/MGSHDFix/total)](https://github.com/ShizCalev/MGSHDFix/releases) ![Commits](https://img.shields.io/github/commit-activity/t/ShizCalev/MGSHDFix) ![License](https://img.shields.io/github/license/ShizCalev/MGSHDFix) [![Discord](https://img.shields.io/discord/1116856754920226876?logo=discord&logoColor=white&label=Metal%20Gear%20Network%20-%20%23HDFix&color=7289DA)](https://discord.gg/bFv9bZmWDV) [MG1 / MG2 Nexus 页面](https://www.nexusmods.com/metalgearandmetalgear2mc/mods/9) | [MGS2 Nexus 页面](https://www.nexusmods.com/metalgearsolid2mc/mods/49) | [MGS3 Nexus 页面](https://www.nexusmods.com/metalgearsolid3mc/mods/139) | **GitHub 仓库(你已经在这里了!)** | [GitLab 仓库镜像](https://gitlab.com/ShizCalev/MGSHDFix/)
这是一个为 Metal Gear Solid Master Collection 添加自定义分辨率、带鱼屏支持以及更多功能的修复补丁。
** featured by**: [IGN(视频指南)](https://www.ign.com/videos/how-to-fix-the-metal-gear-solid-master-collection-on-pc-with-mods) • [IGN(最佳 Mod 榜单)](https://www.ign.com/wikis/metal-gear-solid-master-collection-vol-1/Best_Mods) • [Digital Foundry / Eurogamer](https://youtu.be/zkdxOQ2kGMc?t=536) • [PC Gamer](https://www.pcgamer.com/it-only-took-hours-for-modders-to-crowbar-4k-support-into-the-metal-gear-solid-master-collectionnow-theyve-added-ultrawide-high-res-ui-support-and-more/) • [Rock Paper Shotgun](https://www.rockpapershotgun.com/modders-polish-metal-gear-solids-pc-master-collection-with-ultrawide-support-sharper-textures-and-more) • [Ocelot (YouTube)](https://www.youtube.com/watch?v=CwgWJgc58_4) • [GamingOnLinux](https://www.gamingonlinux.com/2023/11/modders-already-improving-the-metal-gear-solid-master-collection/) • [Dextero](https://www.dexerto.com/tech/metal-gear-solid-master-collection-pc-modders-are-fixing-konamis-mistakes-2380637/) ## 支持的游戏 - Metal Gear 1/2 (MSX) - Metal Gear Solid 2 - Metal Gear Solid 3 ## 其他 Metal Gear 修复项目 - MGS Master Collection - Metal Gear Solid 1 及额外内容 (MG1/2 NES) | MGSM2Fix - [仓库](https://github.com/nuggslet/MGSM2Fix) / [Nexus 页面](https://www.nexusmods.com/metalgearsolidmc/mods/5) - Metal Gear Solid V: The Phantom Pain | MGSVFix - [仓库](https://codeberg.org/Lyall/MGSVFix) - Metal Gear Solid Delta: Snake Eater | MGSDeltaFix - [仓库](https://codeberg.org/Lyall/MGSDeltaFix) / [Nexus 页面](https://www.nexusmods.com/metalgearsoliddeltasnakeeater/mods/27) ## 功能 #### 共享引擎功能: - 自定义分辨率/带鱼屏支持。 - 实验性 16:9 HUD 选项,可调整 HUD/电影的尺寸 (MGS2/MGS3)。 - 无边框/窗口化模式。 - 鼠标光标开关。 - 跳过启动器(参见 Config Tool 进行配置)。 - 选项:禁止在 alt-tab 时暂停游戏。 - 选项:禁用双线性纹理过滤,使游戏呈现像素艺术/复古外观。[PR #138](https://github.com/ShizCalev/MGSHDFix/pull/138) - 提高纹理尺寸限制 (MG1/MG2/MGS3)。 - 添加对自定义 PS2 控制器按键提示的支持,且无需覆盖现有纹理。 - 选项:在第一人称视角下/按住锁定时,允许开火后继续瞄准。 - 可切换的线框模式。 - 选项:在游戏和过场动画中强制使用最高级别的多边形模型(改善视觉质量)。 - 可调整的各向异性过滤 (MGS2/MGS3)。 - 跳过片头 Logo (MGS2/MGS3)。 - 选项:禁用 2011 HD Collection 中的游戏视角/位置更改。 - 选项:调整过场动画字幕的缩放比例和不透明度。 - 选项:禁用 Steam 成就解锁。(专为速通玩家设计。) #### MG / MG2 专属功能 - 选项:裁剪屏幕顶部/底部的过扫描边框。 #### MGS2 专属功能: - 选项:启用 Bluepoint 取消的 Subsistence 风格第三人称视角镜头。 - 选项:启用 Bluepoint 取消的第一人称射击视角镜头。 - 选项:还原 2001 年日本原版 Sons of Liberty 的电话铃声。 - 选项:还原 PlayStation 2 版本的 Solidus 勒击持续时间与生命值减少机制(在 HDC 中被重新平衡过)。 - 选项:强制 Snake / Raiden 佩戴墨镜(或完全禁用他们的墨镜)。 - 选项:强制基于实时时钟的人质彩蛋。 - 选项:还原手雷拔销引信机制(在手雷仍持有时即开始引爆倒计时)。 - 选项:在菜单中交换 X/O(确认/取消)键位。 - 选项:实时切换热成像护目镜配色方案(Substance/原版红热 / Sons of Liberty / Splinter Cell Blacklist 黑热、白热。)[示例](https://imgur.com/a/ThRpIbj) - 选项:在游戏后期的部分 Codec 通话中,启用被剪掉的 Metal Gear 2: Solid Snake 少校图像。[PR #234](https://github.com/ShizCalev/MGSHDFix/pull/234) - 选项:还原 2001 年 Sons of Liberty 原版的雷达旋转机制。[示例](https://imgur.com/a/QNDTgrO) - 支持 BP_Asset / Manifest 文件的 modloader。[PR #251](https://github.com/ShizCalev/MGSHDFix/pull/251) #### MGS3 专属功能: - 选项:强制在任何距离下渲染草丛。 - 鼠标灵敏度调节。 ## Bug 修复 #### 共享引擎 Bug: - 修复空闲等待问题,大幅降低 CPU 占用率 - 提升游戏性能。[PR#225] - 修复合集游戏在配备多个 GPU 的系统上有时默认使用集成显卡的问题(由于 Nvidia/AMD 驱动配置错误引起)。 - 修复超宽分辨率的游戏/过场动画纵横比问题 (MGS2/MGS3)。 - 修复在启用了高 DPI 缩放的显示器上的窗口大小问题。[PR #127](https://github.com/ShizCalev/MGSHDFix/pull/127) - 修复在过长的过场动画中显示器会休眠的问题(仅限 Windows,Linux 需要 [Valve 进行修复](https://github.com/ValveSoftware/Proton/issues/8881))。 - 修复重新装备先前处于拔出状态的武器时,角色会立即开始瞄准的 bug。 - 修复矢量效果/基于线条的渲染缩放问题(例如雨、激光、子弹轨迹等)。[PR #140](https://github.com/ShizCalev/MGSHDFix/pull/140) - 修复 UI 缩放问题。[PR #181](github.com/ShizCalev/MGSHDFix/pull/181) - 选项:强制游戏输出立体声音频,可纠正恶名昭彰的 [“雨声比 codec 通话声音还大”](https://www.pcgamingwiki.com/wiki/Metal_Gear_Solid_2:_Sons_of_Liberty_-_Master_Collection_Version#Rain_audio_is_significantly_louder_than_codec_conversations_.26_other_game_sounds) 问题。[PR #162](https://github.com/ShizCalev/MGSHDFix/pull/162) #### MGS2 专属 Bug 修复: - 还原大量过场动画中的对比度/色彩滤镜后处理特效,这些特效自 2011 HD Collection 以来一直损坏/缺失。[示例(含剧透警告)](https://imgur.com/a/pJAc8H1) - 还原 Strut A 屋顶上损坏的热雾后处理特效。 - 还原水下 UI 游泳后处理特效。[PR #245](https://github.com/ShizCalev/MGSHDFix/pull/245) - 将大量粒子和视觉效果还原至准确的 PS2 时机,修复了在 HD Collection 和 Master Collection 版本中以双倍速度播放且过早结束的特效。 - 还原狗牌查看器信息。 - 还原游戏通关后,标题屏幕上红/蓝“2”的颜色互换效果。(需要 MGS2 社区 Bug 修复合集) - 修复加载时间期间游戏内计时器未暂停的问题。(这是 HD Collection 引入的退化。IGT 行为现在与 Substance 一致。) - 修复景深/模糊后处理特效不随分辨率缩放的问题。[PR #248](https://github.com/ShizCalev/MGSHDFix/pull/248) - 修复阴影分辨率不随游戏分辨率缩放的问题。(原先硬编码为 256x256 / PS2 分辨率。) - 修复在 Letterbox 模式下游玩时,Tanker 开场期间“Metal Gear Solid 2”标题卡位置错误的问题。[示例](https://imgur.com/a/bGkGwJ9) - 修复 alt-tab 切换游戏导致的崩溃、音频不同步、计时器延迟和加载区域损坏的 bug。(对于利用此 bug 跳过强制 codec 通话的速通玩家,可以在 ini 中强制关闭此修复。) - 修复与 Steam Cloud 相关的 [“DAMAGED SAVE” / “CORRUPT SAVE”](https://www.pcgamingwiki.com/wiki/Metal_Gear_Solid_2:_Sons_of_Liberty_-_Master_Collection_Version#Save_File_Appears_as_DAMAGED_FILE) 问题。 - 修复按住 L1 并将摇杆完全倾斜时,角色停止瞄准武器的 bug。 - 修复部分 Snake Tales 任务以及游戏内小说《In The Darkness of Shadow Moses》中的错别字。[PR#201](https://github.com/ShizCalev/MGSHDFix/pull/201) - 修复光学迷彩折射效果。[PR#228] - 修复独特的 Metal Gear Ray 单位编号未正确更新的问题。[PR#229] - 修复 Harrier 未正确更新受损状态纹理的问题。[PR#229] - 修复冷冻剂无法使可破坏的镜子/玻璃起雾的问题。[PR#231] - 修复在使用热成像护目镜时,玻璃冷冻雾气显示为热态的问题。[PR#232] - 修复 Sensor-A 炸弹雷达覆盖层随玩家移动而移动的问题。 - 修复游戏后期过场动画中损坏的太阳反射/火花效果。[含剧透](https://imgur.com/a/YSQR3xh) - 修复损坏的 Colonel MGS1/Ghost Babel 图像。[示例](https://i.imgur.com/w5khi5r.jpeg) - 修复 Solidus 用触手手臂攻击 Raiden 时的音效位置错误问题。[PR#227] - 修复 Shell 1 B2 电脑房鹦鹉的雷达扇形不转向玩家的问题。 - 修复过场动画中隐形的弹壳问题。 - 修复 Shell 1 Core 中心人质手部颜色错误的问题。(需要 MGS2 社区 Bug 修复合集)[PR #247](https://github.com/ShizCalev/MGSHDFix/pull/247) - 修复 Shell 1 core 过场动画中错误的屏幕纹理。(需要 MGS2 社区 Bug 修复合集)[PR #247](https://github.com/ShizCalev/MGSHDFix/pull/247) #### MGS3 专属 Bug 修复: - 还原 PlayStation 2 原版过场动画的镜头/视口高度,修复了 2011 HD Collection 中裁剪了所有过场动画底部约 10% 图像的 bug。(值得注意的是,此问题在 3DS 重制版和 Delta 中均已获得官方修复。) - 修复水面反射问题 (MGS3)。有关此问题的详细分析,请参见 [PR #71](https://github.com/ShizCalev/MGSHDFix/pull/71)。 - 修复景深/模糊后处理特效不随分辨率缩放的问题。 ## 针对常见配置问题的日志/警告 - 针对常见 Mod 兼容性和安装问题的警告(这些问题通常会导致崩溃)。 - 如果你的游戏音频被游戏的主启动器静音,将会发出警告。 - 记录 Steam Input 的控制器状态日志(即检测到的控制器、按键绑定等)。 ## 安装 - 从你的游戏文件夹中删除 `d3d11.dll`。 - 在安装更新之前,请删除旧的 MGSHDFix 文件(例如 `MGSHDFix Config Tool.exe` 和 `MGSHDFix.asi`)。 ### 步骤: 1. 从[这里](https://github.com/ShizCalev/MGSHDFix/releases)获取最新版本的 MGSHDFix。 2. 将发布的压缩包内容解压到你的游戏文件夹中。 - (例如 Steam 上的 `steamapps\common\MGS2` 或 `steamapps\common\MGS3`。) 3. 在游戏启动器中,将“Internal Resolution”和“Internal Upscaling”设置为 Default / Original。(分辨率完全由 MGSHDFix 接管。) 4. 如果你是第一次安装此 Mod,请运行 MGSHDFix Config Tool(位于游戏的 /plugins 文件夹中)以生成设置文件。 ### Steam Deck/Linux 额外说明 - 在 Steam 中打开 MGS2/MGS3 的游戏属性,并在启动选项中添加以下行: WINEDLLOVERRIDES="wininet,winhttp=n,b" %command% - MGSHDFix 的 Config Tool 需要通过 Linux 的 **Discover** 软件商店安装 **ProtonTricks**。 - 在 Steam Deck/Linux 上打开 MGSHDFix Config Tool 时,会弹出一个 Proton Tricks Wine Prefix 窗口。选择任意游戏并点击“OK”即可打开 MGSHDFix Config Tool。 - 如果列表中没有任何游戏,或者 MGSHDFix Config Tool 启动失败,请将其作为非 Steam 游戏添加,并通过 Steam 启动一次,以生成新的 Proton Tricks Wine Prefix 条目。 - 生成此前缀后,你可以将其从 Steam 游戏列表中移除并直接启动。 ### 配置 - 查看 `/plugins` 文件夹中的 **MGSHDFix Config Tool.exe** 以调整该修复补丁的设置。 ## 支持 请在我们的 Github [这里](https://github.com/ShizCalev/MGSHDFix/issues/new/choose) 报告你注意到的任何问题。 如遇紧急问题,你可以在 Metal Gear Network Discord 的 [#HDFix](https://discord.gg/bFv9bZmWDV) 频道联系我们。 ## 已知问题 此列表将包含可能修复也可能不修复的 bug。 ### MGS 2 - 在更高分辨率下,后处理特效的强度可能会减弱。([#35]()) - 使用实验性 HUD 修复时出现各种视觉问题。([#41](https://github.com/ShizCalev/MGSHDFix/issues/41)) ### MGS 3 - 在更高分辨率下,后处理特效的强度可能会减弱。([#35](https://github.com/ShizCalev/MGSHDFix/issues/35)) - 使用实验性 HUD 修复时出现各种视觉问题。([#41](https://github.com/ShizCalev/MGSHDFix/issues/41)) ### MGS Master Collection - 社区 Bug 追踪器 - 一个详细的追踪器,记录了所有已知的 Master Collection bug(包括 MGSHDFix 已修复的问题),可以在[这里](https://docs.google.com/spreadsheets/d/1WhQSRpkC_A9wBDV0o-Pohh1dMhL1H6nbVzvdluIVWrw/edit?gid=0#gid=0)找到。 - 要向追踪器提交新条目,请在 MGSHDFix [Github](https://github.com/ShizCalev/MGSHDFix/issues/new/choose) 上报告新问题,或使用[此表单](https://docs.google.com/forms/d/e/1FAIpQLSef8Vx38tHpBsR-dXnawF6X0iad3XU7vmDX29pcmjbaZhQiew/viewform)。 ## 示例 | ![MGS2 宽屏过场动画预览](https://static.pigsec.cn/wp-content/uploads/repos/cas/0c/0c0267d3dcf9e29eb56353f1d8513869a92efbd151666f1c3865b7810ec35516.gif) | |:--:| | 原版 Metal Gear Solid 2 | MGSHDFix | | --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | 原版 Metal Gear Solid 2 | MGSHDFix | | ![MGS3 宽屏游戏预览](https://raw.githubusercontent.com/ShizCalev/MGSHDFix/master/screenshots/after/mgs3%20-%20widescreen.gif) | |:--:| | 原版 Metal Gear Solid 3 | MGSHDFix | | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | mgs2 - d00t - rain 1 | mgs2 - d00t - rain 1 | | 原版 Metal Gear Solid 3 | MGSHDFix | ![MGS3 - 修正的过场动画构图](https://raw.githubusercontent.com/ShizCalev/MGSHDFix/master/screenshots/MGS3_cutscene_framing.png) ![MGS3 - 修正的过场动画构图](https://static.pigsec.cn/wp-content/uploads/repos/cas/fb/fb1a9a7dd3831d9388a70642ca9f498960769388378268797f11289131e329d1.png) ![MGS3 - 正确缩放的桥段雨景](https://raw.githubusercontent.com/ShizCalev/MGSHDFix/master/screenshots/after/mgs3%20-%20bridge%20rain.png) ![MGS3 - The Sorrow 河流中正确缩放的雨景](https://static.pigsec.cn/wp-content/uploads/repos/cas/f3/f302b065f6406efb15617cc974564d5482dba6d2953096d67d3b20b97f85ac34.png) ![MGS3 - 线框模式视觉效果](https://raw.githubusercontent.com/ShizCalev/MGSHDFix/master/screenshots/after/mgs3%20-%20wireframe.png) ## 即将推出的修复/功能路线图 -(问题起源版本) - MG1 / MG2 - 添加自定义加载界面支持 (2023 MC) - MGS2 - 使游戏内的雷达、过场动画黑边和先前任务阅读进度在不同的游戏会话中保持持久化。 (2001 SoL) - MGS3 - 修复在佩戴夜视仪和热成像时,第一人称视角下的攻击角度指示器问题 (2011 HDC) - MGS3 - 修复拷问后武器未出现在枪套中的问题 (2004 Snake Eater) - MGS2 / MGS3 - 修正更多播放过快的特效 (2002 Xbox / 2011 HDC) - MGS3 - 在菜单中交换控制器上的 X/O 按键 (2011 HDC) ## 构建 ``` git clone https://github.com/ShizCalev/MGSHDFix.git cd MGSHDFix git submodule update --init --recursive git config submodule.recurse true ``` wxWidgets 包含嵌套的 Git 子模块;`git config submodule.recurse true` 确保在拉取时它们会自动更新到正确的 commit。 wxWidgets、SDL3 和 Zydis 作为 Visual Studio 构建过程的一部分自动构建。也可以在 Visual Studio Developer Command Prompt 中分别使用 `build_wx.cmd`、`build_sdl3.cmd` 或 `build_zydis.cmd` 手动重新构建。 ### 环境要求 - Visual Studio 2022 或 Visual Studio 2026 - 使用 C++ 的桌面开发 - MSVC v143 - VS 2022 C++ x64/x86 build tools - Windows 10/11 SDK - 支持你已安装的 Visual Studio 版本的最新 CMake 版本 * Zydis 暂不支持 v145 工具集,因此该项目目前需要 Visual Studio v143 构建工具。只要安装了 v143 工具集,仍然可以使用 Visual Studio 2026。等添加了对 v145 的支持后,此要求将会更改。 ### Windows 在 Visual Studio (2026) 中打开 MGSHDFix.sln 并构建。 ## 鸣谢 [@Lyall](https://codeberg.org/Lyall) 感谢他们制作的出色的宽屏修复 Mod,最重要的是,他们是最初创建此 Mod 的人!
[@ShizCalev/Afevis](https://github.com/shizcalev) 感谢其长期维护(于 2025 年初接手该项目)以及贡献的修复。
[@emoose](https://github.com/emoose)、[@cipherxof](https://github.com/cipherxof)、[@Bud11](https://github.com/bud11)、[@SpaceCore](https://github.com/Jacky720)、[@gibletto](https://github.com/gibletto) 和 [Zenf0](https://next.nexusmods.com/profile/zenf0) 感谢他们贡献的修复/功能。
[Ultimate ASI Loader](https://github.com/ThirteenAG/Ultimate-ASI-Loader) 用于 ASI 加载。
[inipp](https://github.com/mcmtroffaes/inipp) 用于 ini 读取。
[spdlog](https://github.com/gabime/spdlog) 用于日志记录。
[safetyhook](https://github.com/cursey/safetyhook) 用于 Hook。
[stb](https://github.com/nothings/stb) 用于 png 解码。 Gamma 校正基于 [SweetFX Shader Suite by CeeJay.dk]。 SMAA 由 [Jorge Jimenez, Jose I. Echevarria, Belen Masia, Fernando Navarro, Diego Gutierrez](https://www.iryoku.com/smaa/) 制作。 通用配置工具(由 ShizCalev/Afevis 制作。由 SDL3 提供支持。)
标签:Linux, 分辨率调整, 合金装备, 游戏Mod, 游戏修复, 电脑游戏