Difference between revisions of "Metal Gear Solid 4: Guns of the Patriots"

From RPCS3 Wiki
m
 
(39 intermediate revisions by 11 users not shown)
Line 7: Line 7:
|genre    = Action, Adventure, Stealth
|genre    = Action, Adventure, Stealth
|modes    = Single-player<!-- Choose all relevant options: Single-player, Co-op, Multiplayer -->
|modes    = Single-player<!-- Choose all relevant options: Single-player, Co-op, Multiplayer -->
|gameid    = {{gameid|id=BLES00246, BLJM67001, BLUS30109, NPEB02182, NPUB31633|ird=Yes}}<br>'''''Demo'''''<br>{{gameid|id=NPEB90116, NPJB90149, NPUB90176|ird=NA}}
|gameid    = {{gameid|id=BLES00246, BLJM67001, BLUS30109, NPEB02182, NPUB31633|ird=Yes}}<br>'''''Demo'''''<br>{{gameid|id=NPEB90116, NPJB90149, NPUB90176|ird=NA}}<br>'''''Database'''''<br>{{gameid|id=NPEB00027, NPUB90126|ird=NA}}
|wikipedia = <!-- delete if not applicable -->
|vndb      = <!-- delete if not applicable -->
|title    = <!-- Used only in niche scenarios. Delete if not applicable -->
}}
}}


<!-- Give a brief description about the game -->
'''''Metal Gear Solid 4: Guns of the Patriots''''' is the sixth Metal Gear game directed by Hideo Kojima and is set five years after the events of [[Metal Gear Solid 2: Sons of Liberty - HD Edition|Metal Gear Solid 2: Sons of Liberty]], the story centers around a prematurely aged ''Solid Snake'', now known as ''Old Snake'', as he goes on one last mission to assassinate his nemesis ''Liquid Snake'', who now inhabits the body of his former henchman ''Revolver Ocelot'' under the guise of ''Liquid Ocelot'', before he takes control of the ''Sons of the Patriots'', an A.I. system that controls the activities of PMCs worldwide. The game received universal acclaim, garnering perfect reviews and Game of the Year awards from several major gaming publications, including GameSpot, which claimed that the game was "technically flawless". The game has been considered one of the best games of the seventh generation of console gaming and among the greatest of all time. Its release caused a boost in sales of the PlayStation 3, where it sold over six million copies worldwide.


==Configuration==
==Configuration==
<!-- Only enter mandatory non-default settings to be used. Delete parameters which are not applicable -->{{config
<!-- Enter mandatory non-default settings to be used. Recommendatory or default settings can be entered only on exceptional basis. -->{{config
<!-- CPU configuration -->
<!-- CPU configuration -->
|ppu decoder                         = <!-- Interpreter (precise), Interpreter (fast), LLVM Recompiler -->
|ppu decoder                           = <!-- Interpreter (precise), Interpreter (fast), Recompiler (LLVM) -->
|ppu decoder notes                   =  
|ppu decoder notes                     =  
|spu decoder                         = <!-- Interpreter (precise), Interpreter (fast), ASMJIT Recompiler, LLVM Recompiler -->
|spu decoder                           = <!-- Interpreter (precise), Interpreter (fast), Recompiler (ASMJIT), Recompiler (LLVM) -->
|spu decoder notes                   =  
|spu decoder notes                     =  
|preferred spu threads               = <!-- Auto, Single digit between 1 to 6 (e.g. 3), Range between 1 to 6 (e.g. 1 - 3) -->
|preferred spu threads                 = <!-- Auto, Single digit between 1 to 6 (e.g. 3), Range between 1 to 6 (e.g. 1 - 3) -->
|preferred spu threads notes         =  
|preferred spu threads notes           =  
|firmware settings                  = <!-- Automatically load required libraries, Manually load selected libraries, Load automatic and manual selection, Load liblv2.sprx only -->
|thread scheduler                     = <!-- Operating System, RPCS3 Scheduler, RPCS3 Alternative Scheduler -->
|firmware settings notes            = <!-- Where Manually load selected libraries or Load automatic and manual selection options is selected, mention the list of libraries to be selected in this parameter -->
|thread scheduler notes               =  
|enable thread scheduler             = <!-- On, Off -->
|lower spu thread priority             = <!-- On, Off -->
|enable thread scheduler notes       =  
|lower spu thread priority notes       =  
|lower spu thread priority           = <!-- On, Off -->
|enable spu loop detection             = <!-- On, Off -->
|lower spu thread priority notes     =  
|enable spu loop detection notes       =  
|enable spu loop detection           = <!-- On, Off -->
|spu cache                             = <!-- On, Off -->
|enable spu loop detection notes     =  
|spu cache notes                       =  
|spu cache                           = <!-- On, Off -->
|accurate xfloat                       = <!-- On, Off -->
|spu cache notes                     =  
|accurate xfloat notes                 =  
|accurate xfloat                     = <!-- On, Off -->
|spu block size                       = <!-- Safe, Mega, Giga -->
|accurate xfloat notes               =  
|spu block size notes                 =  
|spu block size                     = <!-- Safe, Mega, Giga -->
|tsx instructions                     = <!-- Enabled, Disabled, Forced -->
|spu block size notes               =  
|tsx instructions notes               =  
|tsx instructions                   = <!-- Enabled, Disabled, Forced -->
|tsx instructions notes             =  
<!-- GPU configuration -->
<!-- GPU configuration -->
|renderer                           = Vulkan <!-- OpenGL, Vulkan -->
|renderer                             = <!-- OpenGL, Vulkan, Disabled -->
|renderer notes                     = Recommended for getting the best performance.
|renderer notes                       =  
|aspect ratio                       = <!-- Auto, 4:3, 16:9 -->
|aspect ratio                         = <!-- 4:3, 16:9 -->
|aspect ratio notes                 =  
|aspect ratio notes                   =  
|framelimit                         = <!-- Off, 59.94, 50, 60, 30, Auto -->
|framelimit                           = 60 <!-- Off, 59.94, 50, 60, 30, Auto -->
|framelimit notes                   =  
|framelimit notes                     = Cutscenes (specifically pre-recorded cutscenes) are difficult to skip when high framerate is achieved by when pausing to skip a cutscene it unpauses very quickly on its own, leaving it at 60 will stop this issue.
|anisotropic filter                 = <!-- Automatic, Disabled, 2x, 4x, 8x, 16x -->
|anisotropic filter                   = <!-- Auto, 2x, 4x, 8x, 16x -->
|anisotropic filter notes           =  
|anisotropic filter notes             =  
|anti-aliasing                       = <!-- Auto, Disabled -->
|anti-aliasing                         = <!-- Auto, Disabled -->
|anti-aliasing notes                 =  
|anti-aliasing notes                   =
|default resolution                 = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|zcull accuracy                        = Relaxed <!-- Precise, Approximate, Relaxed -->
|default resolution notes           =  
|zcull accuracy notes                  = Improves performance.
|resolution scale                   = <!-- Range between 50% to 800% -->
|default resolution                   = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|resolution scale notes             =  
|default resolution notes             =  
|resolution scale threshold         = <!-- Range between 1 to 1024 in the format 16 x 16 -->
|resolution scale                     = <!-- Value between 50% to 800% -->
|resolution scale threshold notes   =  
|resolution scale notes               =  
|write color buffers                 = <!-- On, Off -->
|resolution scale threshold           = <!-- Value between 1 to 1024 in the format 16 x 16 -->
|write color buffers notes           =  
|resolution scale threshold notes     =
|strict rendering mode               = <!-- On, Off -->
|shader mode                          = <!-- Legacy (singlethreaded), Async (multithreaded), Async with Shader Interpreter, Shader Interpreter only -->
|strict rendering mode notes         =  
|shader mode notes                    =  
|vsync                               = <!-- On, Off -->
|write color buffers                   = <!-- On, Off -->
|vsync notes                         =  
|write color buffers notes             =  
|stretch to display area             = <!-- On, Off -->
|strict rendering mode                 = <!-- On, Off -->
|stretch to display area notes       =  
|strict rendering mode notes           =  
|disable vertex cache               = <!-- On, Off -->
|vsync                                 = <!-- On, Off -->
|disable vertex cache notes         =  
|vsync notes                           =  
|multithreaded rsx                   = <!-- On, Off -->
|stretch to display area               = <!-- On, Off -->
|multithreaded rsx notes             =  
|stretch to display area notes         =
|disable async shader compiler      = <!-- On, Off -->
|enable 3d                            = <!-- On, Off -->
|disable async shader compiler notes =  
|enable 3d notes                      =  
|disable vertex cache                 = <!-- On, Off -->
|disable vertex cache notes           =  
|multithreaded rsx                     = <!-- On, Off -->
|multithreaded rsx notes               =  
|asynchronous texture streaming        = <!-- On, Off -->
|asynchronous texture streaming notes =  
<!-- Audio configuration -->
<!-- Audio configuration -->
|audio out windows                   = <!-- XAudio2, OpenAL -->
|audio out windows                     = <!-- XAudio2, OpenAL, Disabled -->
|audio out windows notes             =  
|audio out windows notes               =  
|audio out linux                     = <!-- OpenAL, PulseAudio, ALSA -->
|audio out linux                       = <!-- OpenAL, PulseAudio, ALSA, Disabled -->
|audio out linux notes               =  
|audio out linux notes                 =  
|dump to file                       = <!-- On, Off -->
|audio channels                       = <!-- Surround 7.1, Downmix to Stereo, Downmix to 5.1 -->
|dump to file notes                  =  
|audio channels notes                  =  
|convert to 16-bit                  = <!-- On, Off -->
|dump to file                          = <!-- On, Off -->
|convert to 16-bit notes             =  
|dump to file notes                   =  
|downmix to stereo                  = <!-- On, Off -->
|convert to 16-bit                    = <!-- On, Off -->
|downmix to stereo notes             =  
|convert to 16-bit notes               =  
|volume                             = <!-- Range between 0% to 200% -->
|volume                               = <!-- Value between 0% to 200% -->
|volume notes                       =  
|volume notes                         =  
|enable buffering                   = <!-- On, Off -->
|enable buffering                     = <!-- On, Off -->
|enable buffering notes             =  
|enable buffering notes               =  
|audio buffer duration               = <!-- Range between 20ms to 250ms -->
|audio buffer duration                 = <!-- Value between 20ms to 250ms -->
|audio buffer duration notes         =  
|audio buffer duration notes           =  
|enable time stretching             = <!-- On, Off -->
|enable time stretching               = <!-- On, Off -->
|enable time stretching notes       =  
|enable time stretching notes         =  
|time stretching threshold           = <!-- Range between 0% to 100% -->
|time stretching threshold             = <!-- Value between 0% to 100% -->
|time stretching threshold notes     =  
|time stretching threshold notes       =  
|microphone type                     = <!-- Null, Standard, SingStar, Real SingStar, Rocksmith -->
|microphone type                       = <!-- Disabled, Standard, SingStar, Real SingStar, Rocksmith -->
|microphone type notes               =  
|microphone type notes                 =
<!-- I/O configuration -->
|keyboard handler                      = <!-- Null, Basic -->
|keyboard handler notes                =
|mouse handler                        = <!-- Null, Basic -->
|mouse handler notes                  =
|camera input                          = <!-- Unknown, EyeToy, PS Eye, UVC 1.1 -->
|camera input notes                    =
|camera settings                      = <!-- Null, Fake -->
|camera settings notes                =
|move handler                          = <!-- Null, Fake, Mouse -->
|move handler notes                    =
<!-- Advanced configuration -->
|debug console mode                    = <!-- On, Off -->
|debug console mode notes              =
|accurate llvm dfma                    = <!-- On, Off -->
|accurate llvm dfma notes              =
|accurate rsx reservation access      = <!-- On, Off -->
|accurate rsx reservation access notes =
|ppu llvm accurate vector nans        = <!-- On, Off -->
|ppu llvm accurate vector nans notes  =
|silence all logs                      = <!-- On, Off -->
|silence all logs notes                =
|sleep timers accuracy                = <!-- As Host, Usleep Only, All Timers -->
|sleep timers accuracy notes          =
|maximum spurs threads                = <!-- Unlimited, Single digit between 0 to 5 (e.g. 3) -->
|maximum spurs threads notes          =
|firmware libraries                    = <!-- Switch to LLE, Switch to HLE -->
|firmware libraries notes              = <!-- Mention the libraries to be manually selected here -->
|read depth buffers                    = <!-- On, Off -->
|read depth buffers notes              =
|write depth buffers                  = <!-- On, Off -->
|write depth buffers notes            =
|read color buffers                    = <!-- On, Off -->
|read color buffers notes              =
|disable on-disk shader cache          = <!-- On, Off -->
|disable on-disk shader cache notes    =
|disable native float16 support        = <!-- On, Off -->
|disable native float16 support notes  =
|driver wake-up delay                  = <!-- Value between 0 to 7000 -->
|driver wake-up delay notes            =
|vblank rate                          = <!-- Value between 1 to 500 -->
|vblank rate notes                    =
|clocks scale                          = <!-- Value between 10 to 1000 -->
|clocks scale notes                    =  
<!-- Debug configuration -->
<!-- Debug configuration -->
|write depth buffers                = <!-- On, Off -->
|disable zcull occlusion queries      = <!-- On, Off -->
|write depth buffers notes          =
|disable zcull occlusion queries notes =  
|read depth buffers                  = <!-- On, Off -->
|force cpu blit emulation             = <!-- On, Off -->
|read depth buffers notes            =
|force cpu blit emulation notes       =  
|read color buffers                  = <!-- On, Off -->
|use gpu texture scaling               = <!-- On, Off -->
|read color buffers notes           =  
|use gpu texture scaling notes         =  
|force cpu blit emulation           = <!-- On, Off -->
|accurate getllar                     = <!-- On, Off -->
|force cpu blit emulation notes     =  
|accurate getllar notes               =  
|use gpu texture scaling             = <!-- On, Off -->
|hook static functions                 = <!-- On, Off -->
|use gpu texture scaling notes       =  
|hook static functions notes           =  
|accurate getllar                   = <!-- On, Off -->
|accurate ppu 128 reservations        = <!-- Always Enabled, Disabled, Value between 1 to 8 -->
|accurate getllar notes             =
|accurate ppu 128 reservations notes   =  
|accurate putlluc                    = <!-- On, Off -->
|ppu llvm java mode handling          = <!-- True, False -->
|accurate putlluc notes              =  
|ppu llvm java mode handling notes     =  
|hook static functions               = <!-- On, Off -->
|hook static functions notes         =  
|debug console mode                  = <!-- On, Off -->
|debug console mode notes            =
<!-- Enhancements -->
|sleep timers accuracy              = <!-- As Host, Usleep Only, All Timers -->
|sleep timers accuracy notes        =
|clocks scale                        = <!-- Range between 10 to 1000 -->
|clocks scale notes                 =  
|vblank rate                        = <!-- Range between 1 to 500 -->
|vblank rate notes                   =  
}}
}}


==Known Issues==
==Known Issues==
<!-- Mention any known issues relating to the game. Use the issue and PR template if necessary. If no notable issues are present, mention "There are no reported issues with this title." -->
<!-- Mention any known issues relating to the game. Use the issue and PR template if necessary. If no notable issues are present, mention "There are no reported issues with this title." -->
There are no reported issues with this title.
===Freezes/softlocks===
The game is very unstable and will frequently crash within seconds even when using SPU LLVM & Accurate Xfloat Off.
 
===No audio===
When using anything other than SPU LLVM Recompiler and Accurate Xfloat OFF, the game will have no/some sound only.


==Special Notes==
==Special Notes==
<!-- Mention any additional notes if necessary. If no special notes are required, remove this section -->
<!-- Mention any additional notes if necessary. If no special notes are required, remove this section -->
Although you can use the latest RPCS3 master build to play MGS4 these days, for a lot of people, Illusion's custom build for MGS4 tend to net better results. If you would like to try it, [https://dev.azure.com/illusion9804/rpcs3/_build?definitionId=3&_a=summary grab it from here.]
To download: Click on the latest entry on the page > Click on 3 Published > Hover your mouse over the 3 dotted vertical menu button > click Download artifacts [https://cdn.discordapp.com/attachments/781756581829541888/897735104955297842/Screenshot.png (Screenshot for reference)]
To use the build: Simply install it in a new/separate folder, DO NOT merge it with your current RPCS3 folder. In RPCS3 config, set “Accurate PPU 128 Reservations” to “14” in “debug tab” (may help with performance). Rest is default settings. It is also recommended that you update the game to 2.0 for the best results.
Should you still want to use the latest master, use the canary patch below to stop the game from crashing. This patch is a game specific hack so it won't be merged into the patch manager. You will require firmware 4.87 to be installed, and then copy/paste the patch into a new txt file. Rename it "imported_patch.yml" and place it in the patches folder within your RPCS3 directory.
{{patch
|type    = Canary
|version = 1.2
|content =
PRX-rbYkgZMgx8Prd7WUAA39oYAdWcNo-0:
  "cellSpurs urgent commands hack":
    Games:
      "Metal Gear Solid 4: Guns of the Patriots":
        BLES00246: [ All ]
        BLUS30109: [ All ]
        BLJM67001: [ All ]
        NPUB31633: [ All ]
        NPEB02182: [ All ]
    Author: elad335
    Notes: "Workaround for freezes in Metal Gear Solid 4.\nThis patch applies to a firmware file for all games!\nUsage outside of Metal Gear Solid 4 is for debug purposes only.\nYou must have firmware version of exactly 4.87 in order to use it.\n\nKnown to affect:\nMetal Gear Solid 4"
    Patch Version: 1.0
    Patch:
      - [ be32, 0x182B8, 0x38000002 ]
}}
{{patch
|type    = PPU
|version = 1.2
|content =
PPU-9712144d93487f0b62e39f55e175af783b58af72:
  "Disable shadows":
    Games:
      "Metal Gear Solid 4: Guns of the Patriots":
        BLES00246: [ 01.00 ]
        BLUS30109: [ 01.00 ]
        BLJM67001: [ 01.00 ]
        NPUB31633: [ 01.00 ]
        NPEB02182: [ 01.00 ]
    Author: TriggerHappy
    Notes: "Disabling shadows can give a significant performance boost."
    Patch Version: 1.0
    Patch:
      - [ be32, 0x1358B8, 0x4E800020 ]
PPU-33e09a0bd8fa2a3b28780a3feeb7b0e018bae381:
  "Disable shadows":
    Games:
      "Metal Gear Solid 4: Guns of the Patriots":
        BLES00246: [ 02.00 ]
        BLUS30109: [ 02.00 ]
        BLJM67001: [ 02.00 ]
        NPUB31633: [ 02.00 ]
        NPEB02182: [ 02.00 ]
    Author: TriggerHappy
    Notes: "Disabling shadows can give a significant performance boost."
    Patch Version: 1.0
    Patch:
      - [ be32, 0x132354, 0x4E800020 ]
}}

Latest revision as of 18:51, 26 October 2021

Metal Gear Solid 4: Guns of the Patriots
Developer(s) Kojima Productions
Publisher(s) Konami
Series Metal Gear
Release date(s) June 12, 2008
Release type PlayStation 3 exclusive
Genre(s) Action, Adventure, Stealth
Mode(s) Single-player
GameID(s) BLES00246 (IRD), BLJM67001 (IRD), BLUS30109 (IRD), NPEB02182, NPUB31633
Demo
NPEB90116, NPJB90149, NPUB90176
Database
NPEB00027, NPUB90126
See also... Check Compatibility
Open Issues
Search Google
Wikipedia Page

Metal Gear Solid 4: Guns of the Patriots is the sixth Metal Gear game directed by Hideo Kojima and is set five years after the events of Metal Gear Solid 2: Sons of Liberty, the story centers around a prematurely aged Solid Snake, now known as Old Snake, as he goes on one last mission to assassinate his nemesis Liquid Snake, who now inhabits the body of his former henchman Revolver Ocelot under the guise of Liquid Ocelot, before he takes control of the Sons of the Patriots, an A.I. system that controls the activities of PMCs worldwide. The game received universal acclaim, garnering perfect reviews and Game of the Year awards from several major gaming publications, including GameSpot, which claimed that the game was "technically flawless". The game has been considered one of the best games of the seventh generation of console gaming and among the greatest of all time. Its release caused a boost in sales of the PlayStation 3, where it sold over six million copies worldwide.

Configuration

Only options that deviate from the default configuration to ensure best performance are listed below. The full list of default options is available here.

GPU configuration

Setting Option Notes
Framelimit 60 Cutscenes (specifically pre-recorded cutscenes) are difficult to skip when high framerate is achieved by when pausing to skip a cutscene it unpauses very quickly on its own, leaving it at 60 will stop this issue.
ZCULL accuracy Relaxed Improves performance.

Known Issues

Freezes/softlocks

The game is very unstable and will frequently crash within seconds even when using SPU LLVM & Accurate Xfloat Off.

No audio

When using anything other than SPU LLVM Recompiler and Accurate Xfloat OFF, the game will have no/some sound only.

Special Notes

Although you can use the latest RPCS3 master build to play MGS4 these days, for a lot of people, Illusion's custom build for MGS4 tend to net better results. If you would like to try it, grab it from here.

To download: Click on the latest entry on the page > Click on 3 Published > Hover your mouse over the 3 dotted vertical menu button > click Download artifacts (Screenshot for reference)

To use the build: Simply install it in a new/separate folder, DO NOT merge it with your current RPCS3 folder. In RPCS3 config, set “Accurate PPU 128 Reservations” to “14” in “debug tab” (may help with performance). Rest is default settings. It is also recommended that you update the game to 2.0 for the best results.

Should you still want to use the latest master, use the canary patch below to stop the game from crashing. This patch is a game specific hack so it won't be merged into the patch manager. You will require firmware 4.87 to be installed, and then copy/paste the patch into a new txt file. Rename it "imported_patch.yml" and place it in the patches folder within your RPCS3 directory.

Canary Patches

PRX-rbYkgZMgx8Prd7WUAA39oYAdWcNo-0:
  "cellSpurs urgent commands hack":
    Games:
      "Metal Gear Solid 4: Guns of the Patriots":
        BLES00246: [ All ]
        BLUS30109: [ All ]
        BLJM67001: [ All ]
        NPUB31633: [ All ]
        NPEB02182: [ All ]
    Author: elad335
    Notes: "Workaround for freezes in Metal Gear Solid 4.\nThis patch applies to a firmware file for all games!\nUsage outside of Metal Gear Solid 4 is for debug purposes only.\nYou must have firmware version of exactly 4.87 in order to use it.\n\nKnown to affect:\nMetal Gear Solid 4"
    Patch Version: 1.0
    Patch:
      - [ be32, 0x182B8, 0x38000002 ]

Patches

PPU-9712144d93487f0b62e39f55e175af783b58af72:
  "Disable shadows":
    Games:
      "Metal Gear Solid 4: Guns of the Patriots":
        BLES00246: [ 01.00 ]
        BLUS30109: [ 01.00 ]
        BLJM67001: [ 01.00 ]
        NPUB31633: [ 01.00 ]
        NPEB02182: [ 01.00 ]
    Author: TriggerHappy
    Notes: "Disabling shadows can give a significant performance boost."
    Patch Version: 1.0
    Patch:
      - [ be32, 0x1358B8, 0x4E800020 ]

PPU-33e09a0bd8fa2a3b28780a3feeb7b0e018bae381:
  "Disable shadows":
    Games:
      "Metal Gear Solid 4: Guns of the Patriots":
        BLES00246: [ 02.00 ]
        BLUS30109: [ 02.00 ]
        BLJM67001: [ 02.00 ]
        NPUB31633: [ 02.00 ]
        NPEB02182: [ 02.00 ]
    Author: TriggerHappy
    Notes: "Disabling shadows can give a significant performance boost."
    Patch Version: 1.0
    Patch:
      - [ be32, 0x132354, 0x4E800020 ]