Demon's Souls

From RPCS3 Wiki
Revision as of 23:38, 24 May 2022 by KokutouKiritsugu (talk | contribs) (add BCAS20071 v1.04 60fps unlock patches)
Demon's Souls
DeS PS3.jpg
Developer(s) FromSoftware
Publisher(s) JP Sony Computer Entertainment
NA Atlus USA
AU/EU Bandai Namco Games
Series Souls
Release date(s) JP February 5, 2009
NA October 6, 2009
AU June 23, 2010
EU June 25, 2010
Release type PlayStation 3 exclusive
Genre(s) Action, Role-playing
Mode(s) Single-player, Multiplayer
GameID(s) BLES00932 (IRD), BLUS30443 (IRD), NPEB01202, NPUB30910, BCAS20071 (IRD)
Quick links Check Compatibility
Open Issues
Search Google
Wikipedia Page

Demon's Souls is the first installment in the Souls series of games created by game director Hidetaka Miyazaki, and was produced under supervision by Sony's Japan Studio. Set in a dark fantasy world, players take control of a hero who has journeyed to the fictional kingdom of Boletaria, which is being ravaged by a cursed fog that brings forth demons who feast on the souls of mortals. The gameplay involves a character-creation system and emphasizes gathering loot through combat with enemies in a non-linear series of varied locations, with a heavy emphasis on challenging combat. It has a unique online multiplayer system integrated into the single-player where players can leave useful messages and warnings for other players' single-player game worlds, as well as joining other players in their world to assist and/or kill them.

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
Resolution scale threshold 640 x 640 Properly scales the depth of field effect at resolution scales higher than the default 1280x720.
Write color buffers On Fixes missing graphics ingame.

Advanced configuration

Setting Option Notes
Maximum SPURS threads 3 May help with performance.

Known Issues

Missing Geometry

Issue 4302 - There are certain situations when the game doesn't send geometry to be rendered (like the invisible soldier shield). Can be fixed with this mod (be sure to read the readme file included with the mod for installation instructions): https://www.nexusmods.com/demonssouls/mods/39


PSN versions do not work - Fixed by PR 10849

The PARAM.SFO file in the PSN versions are the same as the ones used in the Blu-ray version. Hence, the emulator identifies the games as Blu-rays and tries to install it as such. Due to this, the PSN versions only display a blackscreen.

Special Notes

Patches

Anchors:
  BLUS30443_FpsUnlock: &BLUS30443_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x25ed8, 0x981f ]
  
  # delta time
  # by Whatcookie
    - [ be32, 0x0001b964, 0x496ac2cd ] # jump to code cave
  
  # get mftb
    - [ be32, 0x016c7c30, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
  
  # get mftb delta
    - [ be32, 0x016c7c34, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c7c38, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c7c3c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c7c40, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c7c44, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  
  # mftb delta to float
    - [ be32, 0x016c7c48, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c7c4c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c7c50, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c7c54, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  
  # mftb delta to seconds
    - [ be32, 0x016c7c58, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c7c5c, 0x3a527c30 ] # addi r18,r18,0x7c30   // load low bits of constants pointer
    - [ be32, 0x016c7c60, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c7c64, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c7c68, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  
  # check timestep size
    - [ be32, 0x016c7c6c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c7c70, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  
  # set maximum timestep
    - [ be32, 0x016c7c74, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  
  # cleanup
    - [ be32, 0x016c7c78, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c7c7c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c7c80, 0x4e800020 ] # blr                   // return
  
  # constants
    - [ be32, 0x016c7c84, 0x4c989680 ]  # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c7c88, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
  
  BLES00932_FpsUnlock: &BLES00932_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed
    - [ be16, 0x26ac0, 0x981f ]
  
  # delta time
  # by Whatcookie
    - [ be32, 0x0001c534, 0x496ada1d ] # jump to code cave
  
  # get mftb
    - [ be32, 0x016c9f50, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
  
  # get mftb delta
    - [ be32, 0x016c9f54, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c9f58, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c9f5c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c9f60, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c9f64, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  
  # mftb delta to float
    - [ be32, 0x016c9f68, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c9f6c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c9f70, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c9f74, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  
  # mftb delta to seconds
    - [ be32, 0x016c9f78, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c9f7c, 0x62529f50 ] # ori r18,r18,0x9f50    // load low bits of constants pointer
    - [ be32, 0x016c9f80, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c9f84, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c9f88, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  
  # check timestep size
    - [ be32, 0x016c9f8c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c9f90, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  
  # set maximum timestep
    - [ be32, 0x016c9f94, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  
  # cleanup
    - [ be32, 0x016c9f98, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c9f9c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c9fa0, 0x4e800020 ] # blr                   // return
  
  # constants
    - [ be32, 0x016c9fa4, 0x4c989680 ]  # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c9fa8, 0.05000000 ] # maximum timestep size (50ms or 20FPS)
  
  BCAS20071_FpsUnlock: &BCAS20071_FpsUnlock
  # Set 60FPS with no frameskip
  # by Gibbed, KokutouKiritsugu port to BCAS20071
    - [ be16, 0x24148, 0x981f ]
  
  # delta time
  # by Whatcookie
    - [ be32, 0x00019794, 0x496af37d ] # jump to code cave
  
  # get mftb
    - [ be32, 0x016c8b10, 0x7eac42e6 ] # mftb r21              // Move from timebase register (clock)
  
  # get mftb delta
    - [ be32, 0x016c8b14, 0x3ec00185 ] # lis r22,0x0185        // load high bits of address
    - [ be32, 0x016c8b18, 0x3ad62608 ] # addi r22,r22,0x2608   // load low bits of address
    - [ be32, 0x016c8b1c, 0x7e96a02a ] # ldx r20,r22,r20       // load previous frames mftb reading
    - [ be32, 0x016c8b20, 0xfab60000 ] # std r21,0x0(r22)      // store this frames mftb reading
    - [ be32, 0x016c8b24, 0x7e74a850 ] # subf r19,r21,r20      // subtract previous mftb reading from this mftb frames reading
  
  # mftb delta to float
    - [ be32, 0x016c8b28, 0xfa760018 ] # std r19,0x18(r22)     // store mftb delta (to be loaded into FPR)
    - [ be32, 0x016c8b2c, 0xcbd60018 ] # lfd f30,0x18(r22)     // load mftb delta into FPR
    - [ be32, 0x016c8b30, 0xffc0f69c ] # fcfid f30,f30         // convert integer to double
    - [ be32, 0x016c8b34, 0xffc0f018 ] # frsp f30,f30          // round to single precision
  
  # mftb delta to seconds
    - [ be32, 0x016c8b38, 0x3e40016c ] # r18,0x16c             // load high bits constants pointer
    - [ be32, 0x016c8b3c, 0x62528b10 ] # ori r18,r18,0x8b10   // load low bits of constants pointer
    - [ be32, 0x016c8b40, 0xc3b20054 ] # lfs f29,0x54(r18)     // load timebase frequency constant
    - [ be32, 0x016c8b44, 0xc3920058 ] # lfs f28,0x58(r18)     // load maximum timestep size
    - [ be32, 0x016c8b48, 0xeffee824 ] # fdivs f31,f30,f29     // divide timebase delta by timebase frequency
  
  # check timestep size
    - [ be32, 0x016c8b4c, 0xff9fe000 ] # fcmpu cr7,f31,f28     // compare current delta time to maximum timestep
    - [ be32, 0x016c8b50, 0x419c0008 ] # blt +0x08             // don't return the maximum timestep size
  
  # set maximum timestep
    - [ be32, 0x016c8b54, 0xffe0e090 ] # fmr f31,f28           // move maximum timestep to be returned
  
  # cleanup
    - [ be32, 0x016c8b58, 0x7e94a278 ] # xor r20,r20,r20       // zero r20
    - [ be32, 0x016c8b5c, 0x7e94a278 ] # xor r19,r19,r19       // zero r19
    - [ be32, 0x016c8b60, 0x4e800020 ] # blr                   // return
  
  # constants
    - [ be32, 0x016c8b64, 0x4c989680 ]  # timebase frequency as hexfloat (80mhz)
    - [ bef32, 0x016c8b68, 0.05000000 ] # maximum timestep size (50ms or 20FPS)

  DeS_FPS_Notes: &DeS_FPS_Notes "Patch version 2.0 and above is not compatible with the settings used for the previous patch. Clocks scale and Vblank rate must be set to the defaults. Vblank rate can be modified to increase the framelimit beyond 60FPS, however it's not recommended as users may encounter physics issues."

  DeS_DDE_Notes: &DeS_DDE_Notes "Can disable Write Color Buffers for 20% faster performance. Enable this patch if you experience flickering."

  DeS_AR_Notes: &DeS_AR_Notes "UI Elements will be stretched"

PPU-83681f6110d33442329073b72b8dc88a2f677172:
  Unlock FPS:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie, Gibbed
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLUS30443_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x00025edc, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: GalCiv
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008eef78, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008eef7c, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cefbc, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x0190433c, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018cefbc, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x0190433c, 3.5555556 ]
  Disable Motion Blur:
    Games:
      "Demon's Souls":
        BLUS30443: [ 01.00 ]
    Author: illusion
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00217e7c, 0x41 ]

PPU-5446a2645880eefa75f7e374abd6b7818511e2ef:
  Unlock FPS:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie, Gibbed
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BLES00932_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x00026ac4, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: GalCiv
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008f0928, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008f092c, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018cf13c, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x01904494, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: Whatcookie
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018cf13c, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x01904494, 3.5555556 ]
  Disable Motion Blur:
    Games:
      "Demon's Souls":
        BLES00932: [ 01.00 ]
    Author: illusion
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00218d04, 0x41 ]

PPU-9403fe1678487def5d7f3c380b4c4fb275035378:
  Unlock FPS:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, Gibbed, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_FPS_Notes
    Patch Version: 2.1
    Patch:
      - [ load, *BCAS20071_FpsUnlock ]
  Disable Dynamic Exposure:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_DDE_Notes
    Patch Version: 1.0.1
    Patch:
      - [ be16, 0x0002414c, 0x981f ]
  Skip Intro Videos:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: GalCiv, KokutouKiritsugu port to BCAS20071
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ be32, 0x008efecc, 0x38000003 ] # Intro logos skip
      - [ be32, 0x008efed0, 0x901c0100 ]
  21:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ be32, 0x018Cee14, 0x4017b9aa ] # 21:9 aspect ratio
      - [ be32, 0x0190430c, 0x4017b9aa ]
  32:9 Aspect Ratio:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: Whatcookie, KokutouKiritsugu port to BCAS20071
    Notes: *DeS_AR_Notes
    Patch Version: 1.0
    Group: AR
    Patch:
      - [ bef32, 0x018Cee14, 3.5555556 ] # 32:9 aspect ratio
      - [ bef32, 0x0190430c, 3.5555556 ]
  Disable Motion Blur:
    Games:
      "Demon's Souls":
        BCAS20071: [ 01.04 ]
    Author: illusion, KokutouKiritsugu port to BCAS20071
    Notes: 
    Patch Version: 1.0
    Patch:
      - [ byte, 0x00215f54, 0x41 ]

Incorrect FPS counter

Demon's Souls has an internal technique where it will output duplicate frames if the games performance is not at the FPS cap. This makes the FPS counters report that the game is running at 30FPS (or 60FPS) at all times while the actual performance could be 15FPS as the game is outputting duplicate frames if your performance is too low. This is not a bug, its just an unfortunate result of how Demon's Souls works. The reliable way to check true performance is to record gameplay footage and then use tools to analyze the frame-rate from the footage. However, users may use the FPS patch, which disables the game's internal frame duplication logic, to check performance levels.

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.00 Yes Yes Yes Yes Requires custom IP/Hosts switches. More info

Netplay IP/Host Switches

This title requires a private server to access all Netplay features. Enter the below text in the IP/Host Switches section:

ds-eu-c.scej-online.jp=206.189.232.242&&ds-eu-g.scej-online.jp=206.189.232.242&&c.demons-souls.com=206.189.232.242&&g.demons-souls.com=206.189.232.242&&cmnap.scej-online.jp=206.189.232.242&&demons-souls.scej-online.jp=206.189.232.242