diff --git a/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/enhancement-pack.nsi b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/enhancement-pack.nsi new file mode 100644 index 0000000..4129649 --- /dev/null +++ b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/enhancement-pack.nsi @@ -0,0 +1,104 @@ +!define MUI_WELCOMEPAGE_TEXT "\ +This is an Enhancement Pack for Metal Gear Solid 4, aiming to provide a modern vanilla experience. It includes:$\r$\n\ +- Various improvements: MGSPatriotFix by ShizCalev$\r$\n\ +- Audio improvement: Uncompressed PS3 Audio by Afevis$\r$\n\ +- FPS Unlocker: MGSFPSUnlock by cipherxof$\r$\n\ +- Ultrawide && FOV Modifier: MGS4 Ultra120 by drbermejor$\r$\n\ +- Level statistics: MGS4 Stats Overlay by ien646$\r$\n\ +$\r$\n\ +${TXT_WELCOMEPAGE_MULDERLAND_3}$\r$\n\ +$\r$\n\ +Special thanks to ShizCalev && drbermejor!" + +!define MUI_FINISHPAGE_RUN "$INSTDIR\MulderConfig.exe" +!define MUI_FINISHPAGE_RUN_TEXT "Run MulderConfig" +!include "..\..\includes\templates\SelectTemplate.nsh" +!include "..\..\includes\tools\7z.nsh" + +Name "Metal Gear Solid 4 [Enhancement Pack]" + +Section "MGSPatriotFix (by ShizCalev)" + SetOutPath "$INSTDIR" + + !insertmacro DOWNLOAD_2 "https://github.com/ShizCalev/MGSPatriotFix/releases/download/0.2.2/MGS4_MGSPatriotFix_0.2.2.zip" \ + "https://www.nexusmods.com/metalgearsolid4mc/mods/1?tab=files&file_id=188" \ + "MGS4_MGSPatriotFix_0.2.2.zip" \ + "4f8fa5dd493c9d5d023fd4dfdcad39a2259b2aedf02685840751c263f497a6b1" + + !insertmacro NSISUNZ_EXTRACT "MGS4_MGSPatriotFix_0.2.2.zip" ".\" "AUTO_DELETE" + AddSize 17818 + + File "resources\MGSPatriotFix.settings" +SectionEnd + +SectionGroup /e "Improvements configurable via MulderConfig" + Section "MGSFPSUnlock (by cipherxof)" + SectionIn RO + SetOutPath "$INSTDIR\.MulderConfig\MGSFPSUnlock\MGS4\scripts" + + !insertmacro DOWNLOAD_2 "https://github.com/cipherxof/MGSFPSUnlock/releases/download/0.1.3/MGSFPSUnlock.zip" \ + "https://www.nexusmods.com/metalgearsolid4mc/mods/19?tab=files&file_id=61" \ + "MGSFPSUnlock.zip" \ + "b3a558e98513c173bcf65e4a8da201f645ce7fdd01c5b09a946a34876ce9b3de" + + !insertmacro NSISUNZ_EXTRACT_ONE "MGSFPSUnlock.zip" ".\" "scripts\MGSFPSUnlock.asi" "" + !insertmacro NSISUNZ_EXTRACT_ONE "MGSFPSUnlock.zip" "$INSTDIR\MGS4\scripts" "scripts\MGSFPSUnlock.ini" "AUTO_DELETE" + AddSize 1669 + SectionEnd + + Section "MGS4 Stats Overlay (by ien646)" + SectionIn RO + SetOutPath "$INSTDIR\.MulderConfig\MGS4StatsOverlay\MGS4\scripts" + + !insertmacro DOWNLOAD_2 "https://github.com/ien646/mgs4-vv-mirror/releases/download/0.2/mgs4-vv.asi" \ + "https://cdn.mulderload.eu/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/impr_misc/mgs4-vv.asi" \ + "mgs4-vv.asi" \ + "bbc2a23ff158dd7ea38b4cabe5b466f451a38f5d51b734899bf6068e84408647" + AddSize 2498 + SectionEnd + + Section "MGS4 Ultra120 (by drbermejor)" + SectionIn RO + SetOutPath "$INSTDIR\.MulderConfig\MGS4Ultra120\MGS4\scripts" + + !insertmacro DOWNLOAD_2 "https://github.com/drbermejor/mgs4Ultra120/releases/download/v0.3.4-alpha.7/MGS4Ultra120-v0.3.4-alpha.7-windows-manual.zip" \ + "https://cdn.mulderload.eu/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/impr_gfx/MGS4Ultra120-v0.3.4-alpha.7-windows-manual.zip" \ + "MGS4Ultra120.zip" \ + "19391aabbcce9643312c33a5aed696075e6b1b538f277d716d440ff5ba6e2d55" + + !insertmacro NSISUNZ_EXTRACT_ONE "MGS4Ultra120.zip" ".\" "MGS4Ultra120-v0.3.4-alpha.7-windows-manual\scripts\MGS4NativeCenteredHUD.asi" "" + !insertmacro NSISUNZ_EXTRACT_ONE "MGS4Ultra120.zip" ".\" "MGS4Ultra120-v0.3.4-alpha.7-windows-manual\scripts\MGS4Ultra120.asi" "" + !insertmacro NSISUNZ_EXTRACT_ONE "MGS4Ultra120.zip" "$INSTDIR\MGS4\" "MGS4Ultra120-v0.3.4-alpha.7-windows-manual\mgs4_native_centered_hud.ini" "" + !insertmacro NSISUNZ_EXTRACT_ONE "MGS4Ultra120.zip" "$INSTDIR\MGS4\" "MGS4Ultra120-v0.3.4-alpha.7-windows-manual\mgs4_ultrawide.ini" "AUTO_DELETE" + AddSize 350 + + !insertmacro FILE_STR_REPLACE "Enabled=0" "Enabled=1" 1 1 "$INSTDIR\MGS4\mgs4_native_centered_hud.ini" + SectionEnd + + Section + !insertmacro INSTALL_MULDERCONFIG "$INSTDIR" "resources" + SectionEnd +SectionGroupEnd + +Section /o "Uncompressed PS3 Audio (by Afevis)" + SetOutPath "$INSTDIR" + + !insertmacro DOWNLOAD_1 "https://www.nexusmods.com/metalgearsolid4mc/mods/38?tab=files&file_id=62" \ + "Uncompressed PS3 Music 38 1.0.0 2026-09-02T03-31Z cp4ghskqZ.zip" \ + "72086313bcdd943f3e302f1a055c0390da4f9ec1" + + !insertmacro 7Z_GET + !insertmacro 7Z_EXTRACT "Uncompressed PS3 Music 38 1.0.0 2026-09-02T03-31Z cp4ghskqZ.zip" ".\" "AUTO_DELETE" + !insertmacro 7Z_REMOVE + AddSize 7745385 +SectionEnd + +Section + RMDir /r "$INSTDIR\@mulderload" +SectionEnd + +Function .onInit + StrCpy $SELECT_FILENAME "mgs4.exe" + StrCpy $SELECT_RELATIVE_PATH "MGS4" + StrCpy $SELECT_STEAM_FOLDER "METAL GEAR SOLID 4" +FunctionEnd diff --git a/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MGSPatriotFix.settings b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MGSPatriotFix.settings new file mode 100644 index 0000000..e65534e --- /dev/null +++ b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MGSPatriotFix.settings @@ -0,0 +1,44 @@ +[Controller Settings] +Button Icons="AUTO" +Button Icons (PW)="Keyboard" +Enable DualShock 3 Support=0 +Set Menu OK && Cancel Button="Default" + +[Debugging] +Debug Logging=0 +Log Create Results=0 +Log Framebuffers=0 +MSAA Log Targets=0 + +[Enhancements && Tweaks] +Anisotropic Filtering Level=16 +Custom Shadow Resolution="4096" +Disable Dynamic Resolution=1 +Disable Motion Blur=1 +Pause On Focus Loss=0 + +[Language Settings] +Game Language="en" +Game Region="eu" + +[Launcher and Splashscreens] +Cutscenes (PW)="Original" +Internal Resolution (PW)="Original" +Internal Upscaling (PW)="Original" +Skip In-Game Splashscreens=1 +Skip Launcher=1 +Skip Launcher Splashscreens="Disabled" +Skip Launcher Splashscreens (PW)="Disabled" + +[Mouse Settings] +Mouse Horizontal Sensitivity=1.000000 +Mouse Vertical Sensitivity=1.000000 +Use Raw Mouse Input=1 + +[System Specific Fixes] +Disable Windows Fullscreen Optimization=0 + +[Update Notifications] +Check For MGSPatriotFix Updates=0 +In-Game Update Notifications=0 + diff --git a/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MulderConfig.json b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MulderConfig.json new file mode 100644 index 0000000..bcac856 --- /dev/null +++ b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MulderConfig.json @@ -0,0 +1,333 @@ +{ + "game": { + "title": "Metal Gear Solid 4: Guns of the Patriots (Master Collection Version)", + "originalExe": "mgs4.exe" + }, + "optionGroups": [ + { + "name": "Ultrawide Support", + "type": "radioGroup", + "radios": [ + { "value": "No (default)" }, + { "value": "21/9 (2560x1080)" }, + { "value": "21/9 (3440x1440)" }, + { "value": "21/9 (3840x1600)" }, + { "value": "32/9 (3840x1080)" }, + { "value": "32/9 (5120x1440)" }, + { "value": "32/9 (7680x2160)" } + ] + }, + { + "name": "FOV Modifier", + "type": "radioGroup", + "radios": [ + { "value": "Lowest (-20%)" }, + { "value": "Lower (-10%)" }, + { "value": "Default" }, + { "value": "Higher (+10%)" }, + { "value": "Highest (+20%)" } + ] + }, + { + "name": "FPS Unlocker", + "type": "radioGroup", + "radios": [ + { "value": "No (60 FPS)" }, + { "value": "120 FPS" }, + { "value": "144 FPS" }, + { "value": "165 FPS" }, + { "value": "240 FPS" } + ] + }, + { + "name": "Misc", + "type": "checkboxGroup", + "checkboxes": [ + { "value": "Stats Overlay (Warning: dx11 only, crashes on dx12)" }, + { "value": "Ultrawide Centered HUD", "disabledWhen": [ { "Ultrawide Support": "No (default)" } ] } + ] + } + ], + "actions": { + "operations": [ + { + "when": [ ], + "operation": "move", + "source": "MGS4\\scripts\\MGS4Ultra120.asi", + "target": ".MulderConfig\\MGS4Ultra120\\MGS4\\scripts\\MGS4Ultra120.asi" + }, + { + "when": [ { "!Ultrawide Support": "No (default)" }, { "!FOV Modifier": "Default" } ], + "operation": "move", + "source": ".MulderConfig\\MGS4Ultra120\\MGS4\\scripts\\MGS4Ultra120.asi", + "target": "MGS4\\scripts\\MGS4Ultra120.asi" + }, + + + + { + "when": [ { "*Ultrawide Support": "2560x" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Width=.*$", + "replacement": "Width=2560" + }, + { + "when": [ { "*Ultrawide Support": "3440x" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Width=.*$", + "replacement": "Width=3440" + }, + { + "when": [ { "*Ultrawide Support": "3840x" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Width=.*$", + "replacement": "Width=3840" + }, + { + "when": [ { "*Ultrawide Support": "5120x" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Width=.*$", + "replacement": "Width=5120" + }, + { + "when": [ { "*Ultrawide Support": "7680x" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Width=.*$", + "replacement": "Width=7680" + }, + { + "when": [ { "*Ultrawide Support": "x1080" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Height=.*$", + "replacement": "Height=1080" + }, + { + "when": [ { "*Ultrawide Support": "x1440" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Height=.*$", + "replacement": "Height=1440" + }, + { + "when": [ { "*Ultrawide Support": "x1600" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Height=.*$", + "replacement": "Height=1600" + }, + { + "when": [ { "*Ultrawide Support": "x2160" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^Height=.*$", + "replacement": "Height=2160" + }, + + + + { + "when": [ { "Ultrawide Support": "No (default)", "FOV Modifier": "Lowest (-20%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=0.8" + }, + { + "when": [ { "Ultrawide Support": "No (default)", "FOV Modifier": "Lower (-10%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=0.9" + }, + { + "when": [ { "Ultrawide Support": "No (default)", "FOV Modifier": "Default" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.0" + }, + { + "when": [ { "Ultrawide Support": "No (default)", "FOV Modifier": "Higher (+10%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.1" + }, + { + "when": [ { "Ultrawide Support": "No (default)", "FOV Modifier": "Highest (+20%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.2" + }, + + + + { + "when": [ { "*Ultrawide Support": "21/9", "FOV Modifier": "Lowest (-20%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=0.96" + }, + { + "when": [ { "*Ultrawide Support": "21/9", "FOV Modifier": "Lower (-10%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.08" + }, + { + "when": [ { "*Ultrawide Support": "21/9", "FOV Modifier": "Default" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.2" + }, + { + "when": [ { "*Ultrawide Support": "21/9", "FOV Modifier": "Higher (+10%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.32" + }, + { + "when": [ { "*Ultrawide Support": "21/9", "FOV Modifier": "Highest (+20%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.44" + }, + + + { + "when": [ { "*Ultrawide Support": "32/9", "FOV Modifier": "Lowest (-20%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.44" + }, + { + "when": [ { "*Ultrawide Support": "32/9", "FOV Modifier": "Lower (-10%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.62" + }, + { + "when": [ { "*Ultrawide Support": "32/9", "FOV Modifier": "Default" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.8" + }, + { + "when": [ { "*Ultrawide Support": "32/9", "FOV Modifier": "Higher (+10%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=1.98" + }, + { + "when": [ { "*Ultrawide Support": "32/9", "FOV Modifier": "Highest (+20%)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^FOVMultiplier=.*$", + "replacement": "FOVMultiplier=2.16" + }, + + + + { + "when": [ { "Ultrawide Support": "No (default)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^ExperimentalCinematicFOV=.*$", + "replacement": "ExperimentalCinematicFOV=0" + }, + { + "when": [ { "!Ultrawide Support": "No (default)" } ], + "operation": "replaceLine", + "files": ["MGS4\\mgs4_ultrawide.ini"], + "pattern": "^ExperimentalCinematicFOV=.*$", + "replacement": "ExperimentalCinematicFOV=1" + }, + + + + { + "when": [ { "FPS Unlocker": "No (60 FPS)" } ], + "operation": "move", + "source": "MGS4\\scripts\\MGSFPSUnlock.asi", + "target": ".MulderConfig\\MGSFPSUnlock\\MGS4\\scripts\\MGSFPSUnlock.asi" + }, + { + "when": [ { "!FPS Unlocker": "No (60 FPS)" } ], + "operation": "move", + "source": ".MulderConfig\\MGSFPSUnlock\\MGS4\\scripts\\MGSFPSUnlock.asi", + "target": "MGS4\\scripts\\MGSFPSUnlock.asi" + }, + { + "when": [ { "FPS Unlocker": "120 FPS" } ], + "operation": "replaceLine", + "files": ["MGS4\\scripts\\MGSFPSUnlock.ini"], + "pattern": "^TargetFrameRate.*$", + "replacement": "TargetFrameRate = 120" + }, + { + "when": [ { "FPS Unlocker": "144 FPS" } ], + "operation": "replaceLine", + "files": ["MGS4\\scripts\\MGSFPSUnlock.ini"], + "pattern": "^TargetFrameRate.*$", + "replacement": "TargetFrameRate = 144" + }, + { + "when": [ { "FPS Unlocker": "165 FPS" } ], + "operation": "replaceLine", + "files": ["MGS4\\scripts\\MGSFPSUnlock.ini"], + "pattern": "^TargetFrameRate.*$", + "replacement": "TargetFrameRate = 165" + }, + { + "when": [ { "FPS Unlocker": "240 FPS" } ], + "operation": "replaceLine", + "files": ["MGS4\\scripts\\MGSFPSUnlock.ini"], + "pattern": "^TargetFrameRate.*$", + "replacement": "TargetFrameRate = 240" + }, + + + + { + "when": [ { "*Misc": "Stats Overlay" } ], + "operation": "move", + "source": ".MulderConfig\\MGS4StatsOverlay\\MGS4\\scripts\\mgs4-vv.asi", + "target": "MGS4\\scripts\\mgs4-vv.asi" + }, + { + "when": [ { "!*Misc": "Stats Overlay" } ], + "operation": "move", + "source": "MGS4\\scripts\\mgs4-vv.asi", + "target": ".MulderConfig\\MGS4StatsOverlay\\MGS4\\scripts\\mgs4-vv.asi" + }, + { + "when": [ { "Misc": "Ultrawide Centered HUD" } ], + "operation": "move", + "source": ".MulderConfig\\MGS4Ultra120\\MGS4\\scripts\\MGS4NativeCenteredHUD.asi", + "target": "MGS4\\scripts\\MGS4NativeCenteredHUD.asi" + }, + { + "when": [ { "!Misc": "Ultrawide Centered HUD" } ], + "operation": "move", + "source": "MGS4\\scripts\\MGS4NativeCenteredHUD.asi", + "target": ".MulderConfig\\MGS4Ultra120\\MGS4\\scripts\\MGS4NativeCenteredHUD.asi" + } + ] + } +} diff --git a/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MulderConfig.save.json b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MulderConfig.save.json new file mode 100644 index 0000000..2d93c2d --- /dev/null +++ b/games/metal-gear-solid-4-guns-of-the-patriots-master-collection-version/resources/MulderConfig.save.json @@ -0,0 +1,8 @@ +{ + "Metal Gear Solid 4: Guns of the Patriots (Master Collection Version)": { + "Ultrawide Support": "No (default)", + "FOV Modifier": "Default", + "FPS Unlocker": "No (60 FPS)", + "Misc": [] + } +} \ No newline at end of file