Uncharted 2: Among Thieves: Difference between revisions

From RPCS3 Wiki
m (Text replacement - "<!-- Off, 59.94, 50, 60, 30, Auto -->" to "<!-- Off, 50, 60, 30, Auto, PS3 Native, Infinite -->")
m (Comment spacing)
 
(15 intermediate revisions by 4 users not shown)
Line 31: Line 31:
|enable spu loop detection            = <!-- On, Off -->
|enable spu loop detection            = <!-- On, Off -->
|enable spu loop detection notes      =  
|enable spu loop detection notes      =  
|spu cache                            = <!-- On, Off -->
|spu xfloat accuracy                  = <!-- Accurate, Approximate, Relaxed -->
|spu cache notes                      =
|spu xfloat accuracy notes             =  
|accurate xfloat                      = <!-- On, Off -->
|accurate xfloat notes                 =  
|spu block size                        = <!-- Safe, Mega, Giga -->
|spu block size                        = <!-- Safe, Mega, Giga -->
|spu block size notes                  =  
|spu block size notes                  =  
Line 50: Line 48:
|anti-aliasing                        = <!-- Auto, Disabled -->
|anti-aliasing                        = <!-- Auto, Disabled -->
|anti-aliasing notes                  =  
|anti-aliasing notes                  =  
|zcull accuracy                        = <!-- Precise, Approximate, Relaxed -->
|zcull accuracy notes                  =
|shader quality                        = <!-- High, Low, Auto -->
|shader quality notes                  =
|3d rendering mode                    = <!-- Disabled, Anaglyph, Side-by-side, Over-under -->
|3d rendering mode notes              =
|default resolution                    = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|default resolution                    = <!-- 1920x1080, 1280x720, 720x480, 720x576, 1600x1080, 1440x1080, 1280x1080, 960x1080 -->
|default resolution notes              =  
|default resolution notes              =  
Line 104: Line 108:
|camera input                          = <!-- Unknown, EyeToy, PS Eye, UVC 1.1 -->
|camera input                          = <!-- Unknown, EyeToy, PS Eye, UVC 1.1 -->
|camera input notes                    =  
|camera input notes                    =  
|camera settings                      = <!-- Null, Fake -->
|camera settings                      = <!-- Null, Fake, Qt -->
|camera settings notes                =  
|camera settings notes                =  
|move handler                          = <!-- Null, Fake, Mouse -->
|move handler                          = <!-- Null, Fake, Mouse -->
Line 119: Line 123:
|accurate llvm dfma notes              =  
|accurate llvm dfma notes              =  
|accurate rsx reservation access      = On<!-- On, Off -->
|accurate rsx reservation access      = On<!-- On, Off -->
|accurate rsx reservation access notes = To be enabled on systems that do not have TSX.
|accurate rsx reservation access notes = Prevents random freezing/crashing while playing the game.
|ppu llvm accurate vector nans        = <!-- On, Off -->
|ppu llvm accurate vector nans        = <!-- On, Off -->
|ppu llvm accurate vector nans notes  =  
|ppu llvm accurate vector nans notes  =  
Line 148: Line 152:
|vblank rate                          = <!-- Value between 1 to 500 -->
|vblank rate                          = <!-- Value between 1 to 500 -->
|vblank rate notes                    =  
|vblank rate notes                    =  
|vblank ntsc fixup                    = <!-- On, Off -->
|vblank ntsc fixup notes              =
|clocks scale                          = <!-- Value between 10 to 1000 -->
|clocks scale                          = <!-- Value between 10 to 1000 -->
|clocks scale notes                    =  
|clocks scale notes                    =  
Line 155: Line 161:
|force cpu blit emulation              = <!-- On, Off -->
|force cpu blit emulation              = <!-- On, Off -->
|force cpu blit emulation notes        =  
|force cpu blit emulation notes        =  
|use gpu texture scaling               = <!-- On, Off -->
|force gpu texture scaling             = <!-- On, Off -->
|use gpu texture scaling notes         =
|force gpu texture scaling notes       =  
|accurate getllar                      = <!-- On, Off -->
|accurate getllar notes                =  
|hook static functions                = <!-- On, Off -->
|hook static functions                = <!-- On, Off -->
|hook static functions notes          =  
|hook static functions notes          =  
Line 165: Line 169:
|ppu llvm java mode handling          = <!-- On, Off -->
|ppu llvm java mode handling          = <!-- On, Off -->
|ppu llvm java mode handling notes    =
|ppu llvm java mode handling notes    =
<!-- Recommended patches -->
|highly recommended patch              = Disable SPU Post-processing, Disable Mesh Trimming, Enable GPU Lighting<!-- Mention patch names -->
|highly recommended patch notes        = Improves performance and allows Resolution Scaling to work properly.
|recommended patch                    = Disable Motion Blur, Skip Intro<!-- Mention patch names -->
|recommended patch notes              =
}}
}}


Line 177: Line 186:


{{netplay
{{netplay
|gamever = 1.09
|gamever       = 1.09
|connect = Yes<!-- Yes, No, Partial, Untested, N/A -->
|rpcs3 version  = N/A
|lobbies = No<!-- Yes, No, Partial, Untested, N/A -->
|connect       = No<!-- Yes, No, Partial, Untested, N/A -->
|match   = No<!-- Yes, No, Partial, Untested, N/A -->
|lobbies       = No<!-- Yes, No, Partial, Untested, N/A -->
|features = No<!-- Yes, No, Partial, Untested, N/A -->
|match         = No<!-- Yes, No, Partial, Untested, N/A -->
|notes    = Requires custom server.
|features       = No<!-- Yes, No, Partial, Untested, N/A -->
|custom servers = Not available<!-- Available, Not available, Not required, Untested -->
|notes    =  
}}
}}


Line 188: Line 199:
|type    = PPU
|type    = PPU
|version = 1.2
|version = 1.2
|content =  
|content =
Anchors:
Anchors:
   # Note: Unlike Uncharted 3 and TLoU, Uncharted 2 doesn't change the initial address.
   # Note: Unlike Uncharted 3 and TLoU, Uncharted 2 doesn't change the initial address.
Line 213: Line 224:
   uc2_Disc_100_mesh: &uc2_Disc_100_mesh
   uc2_Disc_100_mesh: &uc2_Disc_100_mesh
     - [ be16, 0x0072ec3c, 0x9949 ] # Disable mesh trimming                  (mem address: 0x0f995d0)
     - [ be16, 0x0072ec3c, 0x9949 ] # Disable mesh trimming                  (mem address: 0x0f995d0)
  uc2_Disc_100_ref: &uc2_Disc_100_ref
    - [ be32, 0x0006a958, 0x38000001 ] # Reflections
    - [ be32, 0x0077f970, 0x3a400001 ] # Heat waves


   uc2_Disc_100_mb: &uc2_Disc_100_mb
   uc2_Disc_100_mb: &uc2_Disc_100_mb
     - [ be16, 0x000c93c0, 0x9b83 ] # Disable Motion blur                     (mem address: 0x0e9b64f)
     - [ byte, 0x0075a7e4, 0x41 ] # Motion blur                               (mem address: 0x0e9b64f)
    - [ byte, 0x0075b454, 0x40 ]


   uc2_Disc_100_vmb: &uc2_Disc_100_vmb
   uc2_Disc_100_vmb: &uc2_Disc_100_vmb
Line 242: Line 258:
   uc2_Disc_109_mesh: &uc2_Disc_109_mesh
   uc2_Disc_109_mesh: &uc2_Disc_109_mesh
     - [ be16, 0x0072d44c, 0x9949 ] # Disable mesh trimming                  (mem address: 0x0f9bfd0)
     - [ be16, 0x0072d44c, 0x9949 ] # Disable mesh trimming                  (mem address: 0x0f9bfd0)
  uc2_Disc_109_ref: &uc2_Disc_109_ref
    - [ be32, 0x000688f4, 0x38000001 ] # Reflections
    - [ be32, 0x0077e1e8, 0x3a400001 ] # Heat waves


   uc2_Disc_109_mb: &uc2_Disc_109_mb
   uc2_Disc_109_mb: &uc2_Disc_109_mb
     - [ be16, 0x000c2860, 0x9b83 ] # Disable Motion blur                     (mem address: 0x0e9c24f)
     - [ byte, 0x00758ff4, 0x41 ] # Motion blur                               (mem address: 0x0e9c24f)
    - [ byte, 0x00759c64, 0x40 ]


   uc2_Disc_109_vmb: &uc2_Disc_109_vmb
   uc2_Disc_109_vmb: &uc2_Disc_109_vmb
Line 271: Line 292:
   uc2_PSN_mesh: &uc2_PSN_mesh
   uc2_PSN_mesh: &uc2_PSN_mesh
     - [ be16, 0x0072d394, 0x9949 ] # Disable mesh trimming                  (mem address: 0x0f9bfd0)
     - [ be16, 0x0072d394, 0x9949 ] # Disable mesh trimming                  (mem address: 0x0f9bfd0)
  uc2_PSN_ref: &uc2_PSN_ref
    - [ be32, 0x00071b0c, 0x38000001 ] # Reflections
    - [ be32, 0x00786508, 0x3a400001 ] # Heat waves


   uc2_PSN_mb: &uc2_PSN_mb
   uc2_PSN_mb: &uc2_PSN_mb
     - [ be16, 0x000c2d28, 0x9b83 ] # Disable Motion blur                     (mem address: 0x0e9c24f)
     - [ byte, 0x00758f74, 0x41 ] # Motion blur                               (mem address: 0x0e9c24f)
    - [ byte, 0x00759be4, 0x40 ]


   uc2_PSN_vmb: &uc2_PSN_vmb
   uc2_PSN_vmb: &uc2_PSN_vmb
Line 319: Line 345:
   uc2_spulighting_notes: &uc2_spulighting_notes
   uc2_spulighting_notes: &uc2_spulighting_notes
     "Improves performance slightly by using GPU path for lighting.\nFixes lighting issues in Chapter 9 when shining the beams of light onto the statues."
     "Improves performance slightly by using GPU path for lighting.\nFixes lighting issues in Chapter 9 when shining the beams of light onto the statues."
  uc2_water_ref_notes: &uc2_water_ref_notes
    "Version 1.0 - Fixes flickering water reflections under Approximate ZCull, normally this effect requires Precise ZCull, but Precise ZCull has a big speed impact.\nVErsion 2.0 - Enables rendering of Heat Wave effect under Approximate ZCull, again, normally works with Precise ZCull only."


   uc2_disc100title: &uc2_disc100title
   uc2_disc100title: &uc2_disc100title
Line 410: Line 438:
     Patch:
     Patch:
       - [ load, *uc2_Disc_100_vmb ]
       - [ load, *uc2_Disc_100_vmb ]
  "Approximate ZCull graphic fixes":
    Games: *uc2_disc100title
    Author: "ZEROx"
    Notes: *uc2_water_ref_notes
    Patch Version: 2.0
    Patch:
      - [ load, *uc2_Disc_100_ref ]
   "Debug Menu":
   "Debug Menu":
     Games: *uc2_disc100title
     Games: *uc2_disc100title
Line 608: Line 643:
     Patch:
     Patch:
       - [ load, *uc2_Disc_109_vmb ]
       - [ load, *uc2_Disc_109_vmb ]
  "Approximate ZCull graphic fixes":
    Games: *uc2_disc109title
    Author: "ZEROx"
    Notes: *uc2_water_ref_notes
    Patch Version: 2.0
    Patch:
      - [ load, *uc2_Disc_109_ref ]
   "Debug Menu":
   "Debug Menu":
     Games: *uc2_disc109title
     Games: *uc2_disc109title
Line 719: Line 761:
     Patch:
     Patch:
       - [ load, *uc2_PSN_vmb ]
       - [ load, *uc2_PSN_vmb ]
  "Approximate ZCull graphic fixes":
    Games: *uc2_PSN110title
    Author: "ZEROx"
    Notes: *uc2_water_ref_notes
    Patch Version: 2.0
    Patch:
      - [ load, *uc2_PSN_ref ]
   "Debug Menu":
   "Debug Menu":
     Games: *uc2_PSN110title
     Games: *uc2_PSN110title
Line 827: Line 876:
     Patch:
     Patch:
       - [ be16, 0x00097a18, 0x98c3 ] # Demo doesn't have check. FPS text is disabled by default + DECR infinite loading
       - [ be16, 0x00097a18, 0x98c3 ] # Demo doesn't have check. FPS text is disabled by default + DECR infinite loading
PPU-01d36e8241041ebf13e7ba819590f487303bb4cc:
  "Debug Menu":
    Games:
      "Uncharted 2: Among Thieves Closed Beta":
        BCET70015: [ 01.00 ]
    Author: "dron_3, HdHereidme, FlexBy"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x000243d4, 0x419e ]
PPU-73a099fedff40805b586273265a52e7e037b6bdf:
  "Debug Menu":
    Games:
      "Uncharted 2: Among Thieves Public Beta":
        BCET70015: [ 01.00 ]
    Author: "dron_3, HdHereidme, FlexBy"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x00023c1c, 0x419e ]
}}
}}

Latest revision as of 21:32, 19 April 2024

Uncharted 2: Among Thieves
UC2 Cover.jpg
Developer(s) Naughty Dog
Publisher(s) Sony Computer Entertainment
Series Uncharted
Release date(s) NA October 13, 2009
AU October 15, 2009
EU October 16, 2009
Release type PlayStation exclusive
Genre(s) Action, Adventure, Third-person shooter, Platform
Mode(s) Single-player, Co-op, Multiplayer
GameID(s) BCES00509 (IRD), BCES00727 (IRD), BCES00757 (IRD), BCUS98123 (IRD), BCJS30035 (IRD), BCAS20097 (IRD), NPEA00364, NPEA00365, NPUA80698, NPHA80194, BCKS10086, NPEA00369
Demo
NPEA90055, NPUA70092, NPJA90127
Beta
BCET70015, NPUA70051, NPUA70049
Internal resolution 1280x720
Quick links Check Compatibility
Open Issues
Search Google
Wikipedia Page

Uncharted 2: Among Thieves is the second game in the Uncharted series, and is set two years after the events of Uncharted: Drake's Fortune. The single-player story follows Nathan Drake, who partners with Chloe Frazer and Elena Fisher, as they search for the Cintamani Stone and Shambhala, whilst battling a mercenary group led by Zoran Lazarević and Harry Flynn.

Development for game began immediately following the critical and commercial success of the first entry. The development team drew inspiration from explorer Marco Polo, and specifically, from his expeditions through archipelagos and eastern Asia. Naughty Dog also aimed to improve the game's proprietary engine, creating the game to run exclusively on the company's Naughty Engine 2.0 system. This allowed the developers to record extensive motion capture and more in-game cinematic sequences, as well as include an online multiplayer component; a first for the series.

The game received universal acclaim from critics for its elaborate set pieces, character design, storytelling, graphics, technical innovation, and gameplay mechanics. It received Game of the Year accolades from numerous publications and award events, and is considered to be one of the greatest video games ever made, and among the most significant titles for the seventh console generation. It also enjoyed great commercial success, with over six million copies sold worldwide. The game was followed by a sequel titled Uncharted 3: Drake's Deception in 2011, and was re-released on PlayStation 4 as part of Uncharted: The Nathan Drake Collection.

Configuration

Options that deviate from RPCS3's default settings and provide the best experience with this title are listed below.

GPU configuration

Setting Option Notes
Anisotropic filter Auto Changing to anything other than Auto causes graphical issues.
Resolution scale threshold 160 x 160 Fixes bloom artifacts when using Resolution scaling above 100%.
Write color buffers On Fixes some overly bright scenes.
Multithreaded RSX On Improves performance.
Asynchronous texture streaming On Improves performance depending on the GPU. Causes graphical issues without Read Depth Buffers enabled.

Advanced configuration

Setting Option Notes
Accurate RSX reservation access On Prevents random freezing/crashing while playing the game.
Read depth buffers On Fixes flickering. Required only if you are using Async Texture Streaming.
RSX FIFO accuracy Atomic Helps with stability.

Recommended patches

Game patches are available through the RPCS3 Patch Manager. To enable them, right-click a game in RPCS3 then select "Manage Game Patches". Game Patches are created by RPCS3's community, and can alter how a game runs. More information can be found here.

Recommendation Patch name Notes
Highly recommended patch Disable SPU Post-processing, Disable Mesh Trimming, Enable GPU Lighting Improves performance and allows Resolution Scaling to work properly.
Recommended patch Disable Motion Blur, Skip Intro

Known Issues

There are no reported issues with this title.

Special Notes

  • Upscaling in this game can be quite GPU intensive. If you have a weak GPU (for example 1050, 1050ti, 1650 etc), it is recommended to play the game at default resolution scaling. Expect lower FPS if upscaling above 100% on such GPUs.
  • White boxes will appear on the screen if the patch Disable SPU Post-processing is enabled and resolution scale is left at 100%. Only use the patch if you're upscaling.

Netplay testing

For the complete list of games tested with RPCN, please check the RPCN Compatibility List.

Game Version RPCS3 Version Connects? Create/Join lobbies? Match with others? Online features working? Requires custom servers? Notes
1.09 N/A No No No No Not available

Patches

Anchors:
  # Note: Unlike Uncharted 3 and TLoU, Uncharted 2 doesn't change the initial address.
  # Since we only change store reg, no need to patch the rest.
  uc2_Disc_100_60FPS: &uc2_Disc_100_60FPS
    - [ be16, 0x000c9250, 0x9163 ] # Framelock: 1 (60 FPS Limit)             (mem address: 0x0e9b5fb)

  uc2_Disc_100_UnlockFPS: &uc2_Disc_100_UnlockFPS
    - [ be16, 0x000c9250, 0x9183 ] # Framelock: 0 (No FPS Limit)             (mem address: 0x0e9b5fb)

  uc2_Disc_100_ssao: &uc2_Disc_100_ssao
    - [ be16, 0x000c9370, 0x9b83 ] # Disable SSAO                            (mem address: 0x0e9b642)

  uc2_Disc_100_dof: &uc2_Disc_100_dof
    - [ be16, 0x000c93c4, 0x9b83 ] # Disable depth of field                  (mem address: 0x0e9b651)

  uc2_Disc_100_post: &uc2_Disc_100_post
    - [ be16, 0x000c93ec, 0x9b83 ] # Disable Post on SPU                     (mem address: 0x0e9b668)

  uc2_Disc_100_light: &uc2_Disc_100_light
    - [ be16, 0x000c962c, 0x9b83 ] # Disable SPU lighting                    (mem address: 0x0e9b964)
    - [ be16, 0x000c9630, 0x9b63 ] # Enable stencil buffer for GPU lighting  (mem address: 0x0e9b965)

  uc2_Disc_100_mesh: &uc2_Disc_100_mesh
    - [ be16, 0x0072ec3c, 0x9949 ] # Disable mesh trimming                   (mem address: 0x0f995d0)

  uc2_Disc_100_ref: &uc2_Disc_100_ref
    - [ be32, 0x0006a958, 0x38000001 ] # Reflections
    - [ be32, 0x0077f970, 0x3a400001 ] # Heat waves

  uc2_Disc_100_mb: &uc2_Disc_100_mb
    - [ byte, 0x0075a7e4, 0x41 ] # Motion blur                               (mem address: 0x0e9b64f)
    - [ byte, 0x0075b454, 0x40 ]

  uc2_Disc_100_vmb: &uc2_Disc_100_vmb
    - [ be16, 0x000c961c, 0x9b83 ] # Disable Velocity motion blur            (mem address: 0x0e9b894)

  # Note: Unlike Uncharted 3 and TLoU, Uncharted 2 doesn't change the initial address.
  uc2_Disc_109_60FPS: &uc2_Disc_109_60FPS
    - [ be16, 0x000c26f0, 0x9163 ] # Framelock: 1 (60 FPS Limit)             (mem address: 0x0e9c1fb)

  uc2_Disc_109_UnlockFPS: &uc2_Disc_109_UnlockFPS
    - [ be16, 0x000c26f0, 0x9183 ] # Framelock: 0 (No FPS Limit)             (mem address: 0x0e9c1fb)

  uc2_Disc_109_ssao: &uc2_Disc_109_ssao
    - [ be16, 0x000c2810, 0x9b83 ] # Disable SSAO                            (mem address: 0x0e9c242)

  uc2_Disc_109_dof: &uc2_Disc_109_dof
    - [ be16, 0x000c2864, 0x9b83 ] # Disable depth of field                  (mem address: 0x0e9c251)

  uc2_Disc_109_post: &uc2_Disc_109_post
    - [ be16, 0x000c288c, 0x9b83 ] # Disable Post on SPU                     (mem address: 0x0e9c268)

  uc2_Disc_109_light: &uc2_Disc_109_light
    - [ be16, 0x000c2ad0, 0x9b83 ] # Disable SPU lighting                    (mem address: 0x0e9c564)
    - [ be16, 0x000c2ad4, 0x9b63 ] # Enable stencil buffer for GPU lighting  (mem address: 0x0e9c565)

  uc2_Disc_109_mesh: &uc2_Disc_109_mesh
    - [ be16, 0x0072d44c, 0x9949 ] # Disable mesh trimming                   (mem address: 0x0f9bfd0)

  uc2_Disc_109_ref: &uc2_Disc_109_ref
    - [ be32, 0x000688f4, 0x38000001 ] # Reflections
    - [ be32, 0x0077e1e8, 0x3a400001 ] # Heat waves

  uc2_Disc_109_mb: &uc2_Disc_109_mb
    - [ byte, 0x00758ff4, 0x41 ] # Motion blur                               (mem address: 0x0e9c24f)
    - [ byte, 0x00759c64, 0x40 ]

  uc2_Disc_109_vmb: &uc2_Disc_109_vmb
    - [ be16, 0x000c2ac0, 0x9b83 ] # Disable Velocity motion blur            (mem address: 0x0e9c494)

  # Note: Unlike Uncharted 3 and TLoU, Uncharted 2 doesn't change the initial address.
  uc2_PSN_60FPS: &uc2_PSN_60FPS
    - [ be16, 0x000c2bb8, 0x9163 ] # Framelock: 1 (60 FPS Limit)             (mem address: 0x0e9c1fb)

  uc2_PSN_UnlockFPS: &uc2_PSN_UnlockFPS
    - [ be16, 0x000c2bb8, 0x9183 ] # Framelock: 0 (No FPS Limit)             (mem address: 0x0e9c1fb)

  uc2_PSN_ssao: &uc2_PSN_ssao
    - [ be16, 0x000c2cd8, 0x9b83 ] # Disable SSAO                            (mem address: 0x0e9c242)

  uc2_PSN_dof: &uc2_PSN_dof
    - [ be16, 0x000c2d2c, 0x9b83 ] # Disable depth of field                  (mem address: 0x0e9c251)

  uc2_PSN_post: &uc2_PSN_post
    - [ be16, 0x000c2d54, 0x9b83 ] # Disable Post on SPU                     (mem address: 0x0e9c268)

  uc2_PSN_light: &uc2_PSN_light
    - [ be16, 0x000c2f98, 0x9b83 ] # Disable SPU lighting                    (mem address: 0x0e9c564)
    - [ be16, 0x000c2f9c, 0x9b63 ] # Enable stencil buffer for GPU lighting  (mem address: 0x0e9c565)

  uc2_PSN_mesh: &uc2_PSN_mesh
    - [ be16, 0x0072d394, 0x9949 ] # Disable mesh trimming                   (mem address: 0x0f9bfd0)

  uc2_PSN_ref: &uc2_PSN_ref
    - [ be32, 0x00071b0c, 0x38000001 ] # Reflections
    - [ be32, 0x00786508, 0x3a400001 ] # Heat waves

  uc2_PSN_mb: &uc2_PSN_mb
    - [ byte, 0x00758f74, 0x41 ] # Motion blur                               (mem address: 0x0e9c24f)
    - [ byte, 0x00759be4, 0x40 ]

  uc2_PSN_vmb: &uc2_PSN_vmb
    - [ be16, 0x000c2f88, 0x9b83 ] # Disable Velocity motion blur            (mem address: 0x0e9c494)

  # Note: Unlike Uncharted 3 and TLoU, Uncharted 2 doesn't change the initial address.
  uc2_Demo_60FPS: &uc2_Demo_60FPS
    - [ be16, 0x000c94a0, 0x9163 ] # Framelock: 1 (60 FPS Limit)

  uc2_Demo_UnlockFPS: &uc2_Demo_UnlockFPS
    - [ be16, 0x000c94a0, 0x9183 ] # Framelock: 0 (No FPS Limit)

  uc2_Demo_ssao: &uc2_Demo_ssao
    - [ be16, 0x000c95c0, 0x9b83 ] # Disable SSAO

  uc2_Demo_dof: &uc2_Demo_dof
    - [ be16, 0x000c9614, 0x9b83 ] # Disable depth of field

  uc2_Demo_post: &uc2_Demo_post
    - [ be16, 0x000c963c, 0x9b83 ] # Disable Post on SPU

  uc2_Demo_light: &uc2_Demo_light
    - [ be16, 0x000c987c, 0x9b83 ] # Disable SPU lighting
    - [ be16, 0x000c9880, 0x9b63 ] # Enable stencil buffer for GPU lighting

  uc2_Demo_mesh: &uc2_Demo_mesh
    - [ be16, 0x0030624c, 0x9949 ] # Disable mesh trimming

  uc2_Demo_mb: &uc2_Demo_mb
    - [ be16, 0x000c9610, 0x9b83 ] # Motion blur

  uc2_Demo_vmb: &uc2_Demo_vmb
    - [ be16, 0x000c986c, 0x9b83 ] # Velocity motion blur

  uc2_debugmenu_notes: &uc2_debugmenu_notes
    "Enable Debug (DECR) Console mode to unlock full menu.\nL3 + Start = Dev Menu\nL3 + Select = Quick Menu\nL3 + Triangle = Debug Text\nL2 + R2 = Debug Fly"
  uc2_quitcrashfix_notes: &uc2_quitcrashfix_notes
    "Fixes a rare bug where quitting to menu causes a game crash."
  uc2_spupost_notes: &uc2_spupost_notes
    "Fixes green graphics when using Resolution Scaling. Do not use this patch if you're not upscaling, it'll introduce white squared artifacts in areas throughout the game."
  uc2_60fps_notes: &uc2_60fps_notes
    "Allows framerates of up to 60 FPS."
  uc2_unlockedfps_notes: &uc2_unlockedfps_notes
    "Completely unlocks the framerate."
  uc2_spulighting_notes: &uc2_spulighting_notes
    "Improves performance slightly by using GPU path for lighting.\nFixes lighting issues in Chapter 9 when shining the beams of light onto the statues."
  uc2_water_ref_notes: &uc2_water_ref_notes
    "Version 1.0 - Fixes flickering water reflections under Approximate ZCull, normally this effect requires Precise ZCull, but Precise ZCull has a big speed impact.\nVErsion 2.0 - Enables rendering of Heat Wave effect under Approximate ZCull, again, normally works with Precise ZCull only."

  uc2_disc100title: &uc2_disc100title
    "Uncharted 2: Among Thieves":
      BCES00509: [ 01.00 ]
      BCES00727: [ 01.00 ]
      BCES00757: [ 01.00 ]
      BCJS30035: [ 01.00 ]
      BCAS20097: [ 01.00 ]

  uc2_disc109title: &uc2_disc109title
    "Uncharted 2: Among Thieves":
      BCES00509: [ 01.09 ]
      BCES00727: [ 01.09 ]
      BCES00757: [ 01.09 ]
      BCUS98123: [ 01.09 ]
      BCJS30035: [ 01.09 ]
      BCAS20097: [ 01.09 ]

  uc2_PSN110title: &uc2_PSN110title
    "Uncharted 2: Among Thieves":
      NPEA00364: [ 01.10 ]
      NPEA00365: [ 01.10 ]
      NPUA80698: [ 01.10 ]
      NPHA80194: [ 01.10 ]

PPU-7b8a70c24456205b776915643a2acacb6ef6ea56:
  "60 FPS":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes: *uc2_60fps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_60FPS ]
  "Unlock FPS":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes: *uc2_unlockedfps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_UnlockFPS ]
  "Disable SSAO":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_ssao ]
  "Disable Depth of Field":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_dof ]
  "Disable SPU Post-processing":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes: *uc2_spupost_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_post ]
  "Enable GPU Lighting":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes: *uc2_spulighting_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_light ]
  "Disable Mesh Trimming":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_mesh ]
  "Disable Motion Blur":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_mb ]
  "Disable Velocity Motion Blur":
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_vmb ]
  "Approximate ZCull graphic fixes":
    Games: *uc2_disc100title
    Author: "ZEROx"
    Notes: *uc2_water_ref_notes
    Patch Version: 2.0
    Patch:
      - [ load, *uc2_Disc_100_ref ]
  "Debug Menu":
    Games: *uc2_disc100title
    Author: "dron_3, HdHereidme, illusion"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x00023c64, 0x419e ]
      - [ be32, 0x00062e10, 0x60000000 ] # Don't pause on Select button
  "Bug Fix: Quit to Menu Crash": # TODO: Port to PSN version
    Games: *uc2_disc100title
    Author: "ZEROx, illusion"
    Notes: *uc2_quitcrashfix_notes
    Patch Version: 1.0
    Patch:
      - [ be32, 0x00270834, 0x4850e8e9 ] # Call
      - [ be32, 0x0077f11c, 0x2f9c0000 ] # Compare r28 to 0
      - [ be32, 0x0077f120, 0x409e000c ] # Skip to lhz if !=0
      - [ be32, 0x0077f124, 0x38000001 ] # r0 = 1
      - [ be32, 0x0077f128, 0x48000008 ] # Go to return
      - [ be32, 0x0077f12c, 0xa01c04b4 ] # Default lhz
      - [ be32, 0x0077f130, 0x4e800020 ] # Return
  "Skip Intro":
    Games: *uc2_disc100title
    Author: "illusion, ZEROx"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x00026dc4, 0x48000e50 ]

PPU-9fe364d48b610e4b0a1c41d526bec9b1b2039c07:
  "60 FPS":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes: *uc2_60fps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_60FPS ]
  "Unlock FPS":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes: *uc2_unlockedfps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_UnlockFPS ]
  "Disable SSAO":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_ssao ]
  "Disable Depth of Field":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_dof ]
  "Disable SPU Post-processing":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes: *uc2_spupost_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_post ]
  "Enable GPU Lighting":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes: *uc2_spulighting_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_light ]
  "Disable Mesh Trimming":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ be16, 0x0072ec54, 0x9949 ]
  "Disable Motion Blur":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_mb ]
  "Disable Velocity Motion Blur":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_100_vmb ]
  "Debug Menu":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "dron_3, HdHereidme, illusion"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x00023c64, 0x419e ]
  "Skip Intro":
    Games:
      "Uncharted 2: Among Thieves":
        BCUS98123: [ 01.00 ]
    Author: "illusion, ZEROx"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x00026dc4, 0x48000e50 ]

PPU-a3a5789c12711291dfe16a7d5d81c906d2b4c0c2:
  "60 FPS":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes: *uc2_60fps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_60FPS ]
  "Unlock FPS":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes: *uc2_unlockedfps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_UnlockFPS ]
  "Disable SSAO":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_ssao ]
  "Disable Depth of Field":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_dof ]
  "Disable SPU Post-processing":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes: *uc2_spupost_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_post ]
  "Enable GPU Lighting":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes: *uc2_spulighting_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_light ]
  "Disable Mesh Trimming":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_mesh ]
  "Disable Motion Blur":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_mb ]
  "Disable Velocity Motion Blur":
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Disc_109_vmb ]
  "Approximate ZCull graphic fixes":
    Games: *uc2_disc109title
    Author: "ZEROx"
    Notes: *uc2_water_ref_notes
    Patch Version: 2.0
    Patch:
      - [ load, *uc2_Disc_109_ref ]
  "Debug Menu":
    Games: *uc2_disc109title
    Author: "dron_3, HdHereidme"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x00023c0c, 0x419e ]
  "Bug Fix: Quit to Menu Crash": # TODO: port to PSN ver
    Games: *uc2_disc109title
    Author: "ZEROx, illusion"
    Notes: *uc2_quitcrashfix_notes
    Patch Version: 1.0
    Patch:
      - [ be32, 0x00262e04, 0x488ce301 ] # Call
      - [ be32, 0x00b31104, 0x2f9c0000 ] # Compare r28 to 0
      - [ be32, 0x00b31108, 0x409e000c ] # Skip to lhz if !=0
      - [ be32, 0x00b3110c, 0x38000001 ] # r0 = 1
      - [ be32, 0x00b31110, 0x48000008 ] # Go to return
      - [ be32, 0x00b31114, 0xa01c04b4 ] # Default lhz
      - [ be32, 0x00b31118, 0x4e800020 ] # Return
  "Skip Intro":
    Games: *uc2_disc109title
    Author: "illusion, ZEROx"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x00026e08, 0x48000e40 ]
  "Infinite Ammo":
    Games: *uc2_disc109title
    Author: "Hiei-YYH"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x0086e0d8, 0x396b0000 ]
  "Infinite Health":
    Games: *uc2_disc109title
    Author: "Hiei-YYH"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be32, 0x00aea8e0, 0x80030030 ]
      - [ be32, 0x00aea8e4, 0x9003002c ]
      - [ be32, 0x00aea8e8, 0x4e800020 ]
      - [ be32, 0x0009f658, 0x48a4b289 ]

PPU-599461c6c88935ff0ed26ef20e649c8c38b7be9c:
  "60 FPS":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes: *uc2_60fps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_60FPS ]
  "Unlock FPS":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes: *uc2_unlockedfps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_UnlockFPS ]
  "Disable SSAO":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_ssao ]
  "Disable Depth of Field":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_dof ]
  "Disable SPU Post-processing":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes: *uc2_spupost_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_post ]
  "Enable GPU Lighting":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes: *uc2_spulighting_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_light ]
  "Disable Mesh Trimming":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_mesh ]
  "Disable Motion Blur":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_mb ]
  "Disable Velocity Motion Blur":
    Games: *uc2_PSN110title
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_PSN_vmb ]
  "Approximate ZCull graphic fixes":
    Games: *uc2_PSN110title
    Author: "ZEROx"
    Notes: *uc2_water_ref_notes
    Patch Version: 2.0
    Patch:
      - [ load, *uc2_PSN_ref ]
  "Debug Menu":
    Games: *uc2_PSN110title
    Author: "dron_3, HdHereidme, illusion"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x000244e0, 0x419e ]
  "Skip Intro":
    Games: *uc2_PSN110title
    Author: "illusion, ZEROx"
    Notes:
    Patch Version: 1.0
    Patch:
      - [ be16, 0x00094a50, 0x98e3 ]

PPU-bfee77256ce53064051a6b0ec9d292e75284aad4:
  "60 FPS":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes: *uc2_60fps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_60FPS ]
  "Unlock FPS":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes: *uc2_unlockedfps_notes
    Group: FPS
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_UnlockFPS ]
  "Disable SSAO":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_ssao ]
  "Disable Depth of Field":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_dof ]
  "Disable SPU Post-processing":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_post ]
  "Enable GPU Lighting":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes: *uc2_spulighting_notes
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_light ]
  "Disable Mesh Trimming":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_mesh ]
  "Disable Motion Blur":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_mb ]
  "Disable Velocity Motion Blur":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "ZEROx, illusion"
    Notes:
    Patch Version: 1.2
    Patch:
      - [ load, *uc2_Demo_vmb ]
  "Debug Menu":
    Games:
      "Uncharted 2: Among Thieves Demo":
        NPEA90055: [ All ]
    Author: "dron_3, HdHereidme, illusion"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x00097a18, 0x98c3 ] # Demo doesn't have check. FPS text is disabled by default + DECR infinite loading

PPU-01d36e8241041ebf13e7ba819590f487303bb4cc:
  "Debug Menu":
    Games:
      "Uncharted 2: Among Thieves Closed Beta":
        BCET70015: [ 01.00 ]
    Author: "dron_3, HdHereidme, FlexBy"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x000243d4, 0x419e ]

PPU-73a099fedff40805b586273265a52e7e037b6bdf:
  "Debug Menu":
    Games:
      "Uncharted 2: Among Thieves Public Beta":
        BCET70015: [ 01.00 ]
    Author: "dron_3, HdHereidme, FlexBy"
    Notes: *uc2_debugmenu_notes
    Patch Version: 1.0
    Patch:
      - [ be16, 0x00023c1c, 0x419e ]