• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Request: add Duckstation PSX emulator

Scheduled Pinned Locked Moved Ideas and Development
duckstationplaystationretroarch
38 Posts 15 Posters 8.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    Folly @George Spiggott
    last edited by Folly 15 Mar 2021, 10:12

    @george-spiggott said in Request: add Duckstation PSX emulator:

    @folly PSXPackager and Chdman.

    Nice to hear that my suggestion worked. 😊

    G 1 Reply Last reply 20 Mar 2021, 18:31 Reply Quote 0
    • G
      George Spiggott @Folly
      last edited by 20 Mar 2021, 18:31

      @folly I have had one failure, Tomb Raider, no doubt because of its unusual multi .BIN file system. I had to source a new copy of the .BINs and convert them directly to .CHD.

      Currently running:
      Retropie 4.8.9 on a Pi Zero 2W (Overclock Settings: CPU 1400Mhz)
      ES-DE on a GMKtec K6 (Windows 11, 32GB RAM)

      F 1 Reply Last reply 20 Mar 2021, 20:29 Reply Quote 0
      • F
        Folly @George Spiggott
        last edited by 20 Mar 2021, 20:29

        @george-spiggott
        Looks like you have done pretty good then. 👍

        1 Reply Last reply Reply Quote 0
        • D
          dankcushions Global Moderator
          last edited by 20 Mar 2021, 20:43

          duckstation now supports PBP, fyi

          W 1 Reply Last reply 21 Mar 2021, 02:30 Reply Quote 1
          • W
            wmarcio @dankcushions
            last edited by wmarcio 21 Mar 2021, 02:30

            @dankcushions .pbp file not show all games in list.
            Linux mint 20.4 x64.
            Edit: Dont run any game in .pbp file...

            D 1 Reply Last reply 21 Mar 2021, 23:59 Reply Quote 0
            • W
              wmarcio
              last edited by 21 Mar 2021, 16:56

              Hello, does anyone know how to tell me how to compile the source code of the version for Linux?
              I've tried, but I don't have the necessary knowledge.

              E 1 Reply Last reply 24 Mar 2021, 15:55 Reply Quote 0
              • D
                dankcushions Global Moderator @wmarcio
                last edited by 21 Mar 2021, 23:59

                @wmarcio said in Request: add Duckstation PSX emulator:

                @dankcushions .pbp file not show all games in list.
                Linux mint 20.4 x64.
                Edit: Dont run any game in .pbp file...

                i'm not sure what you're asking me. it was just added upstream but you'll have to manually build it yourself if you want to test the feature, but it is working for others. it is not part of retropie yet and we don't support it.

                1 Reply Last reply Reply Quote 0
                • E
                  ericus858 @wmarcio
                  last edited by 24 Mar 2021, 15:55

                  @wmarcio create a file lr-duckstation-psx.sh inside your RetroPie-Setup installation:
                  ~/RetroPie-Setup/scriptmodules/libretrocores/

                  And paste this inside:

                  #!/usr/bin/env bash
                  # This file is part of The RetroPie Project
                  #
                  # The RetroPie Project is the legal property of its developers, whose names are
                  # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
                  #
                  # See the LICENSE.md file at the top-level directory of this distribution and
                  # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
                  #
                  rp_module_id="lr-duckstation-psx"
                  rp_module_desc="PlayStation emulator - Duckstation PSX for libretro"
                  rp_module_help="ROM Extensions: .bin .cue .cbn .img .iso .m3u .mdf .pbp .toc .z .znx\n\nCopy your PlayStation roms to $romdir/psx\n\nCopy the required BIOS files\n\nscph5500.bin and\nscph5501.bin and\nscph5502.bin to\n\n$biosdir"
                  rp_module_licence="GPL3 https://raw.githubusercontent.com/libretro/duckstation/master/LICENSE"
                  rp_module_repo="git https://github.com/libretro/duckstation.git master"
                  rp_module_section="exp"
                  rp_module_flags="!all 64bit"
                  function depends_lr-duckstation-psx() {
                  local depends=(libvulkan-dev libgl1-mesa-dev )
                  getDepends "${depends[@]}"
                  }
                  function sources_lr-duckstation-psx() {
                  gitPullOrClone
                  }
                  function build_lr-duckstation-psx() {
                  mkdir build
                  cd build
                  cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON ..
                  ninja -t clean
                  ninja
                  md_ret_require="$md_build/build/duckstation_libretro.so"
                  }
                  function install_lr-duckstation-psx() {
                  md_ret_files=(
                  'build/duckstation_libretro.so'
                  )
                  }
                  function configure_lr-duckstation-psx() {
                  mkRomDir "psx"
                  ensureSystemretroconfig "psx"
                  addEmulator 0 "$md_id" "psx" "$md_inst/duckstation_libretro.so"
                  addSystem "psx"
                  }

                  Now run retropie-setup.sh and navigate to "Manage packages -> exp"
                  Scroll down and you should see "lr-duckstation-psx", go inside and "Install from source" like any other package.

                  To set duckstation as your default psx emulator, run any psx game from RetroPie interface
                  When this window appears, press any key, then you will be able to select duckstation.
                  549d516e-80ee-4d1f-b131-0fad50d70bde-image.png

                  Don't forget to save any state/memory card before switching just in case.

                  D 1 Reply Last reply 24 Mar 2021, 18:03 Reply Quote 2
                  • D
                    dankcushions Global Moderator @ericus858
                    last edited by dankcushions 24 Mar 2021, 18:03

                    @ericus858 said in Request: add Duckstation PSX emulator:

                    rp_module_flags="!all 64bit"

                    it runs on ARM, not just aarch64. in any case, i think this will suffer the same retroarch GLES bug as i fixed, but isn't in the retroarch version used in retropie (we're waiting for the next retroarch release).

                    i really would suggest people just wait for this to be added properly.

                    E 1 Reply Last reply 24 Mar 2021, 21:21 Reply Quote 1
                    • E
                      ericus858 @dankcushions
                      last edited by 24 Mar 2021, 21:21

                      @dankcushions I agree, I just helped @wmarcio compiling duckstation code, as he's using Mint x64
                      My script is just a temporary solution :)

                      W 1 Reply Last reply 24 Mar 2021, 21:39 Reply Quote 1
                      • W
                        wmarcio @ericus858
                        last edited by 24 Mar 2021, 21:39

                        @ericus858 Thank you very much for your help.
                        In fact, I am interested in compiling the Github source code and using the emulator outside of Retropie.

                        I want to compile from this link: https://github.com/stenzek/duckstation

                        Anyway, thank you very much for being willing to help.

                        D 1 Reply Last reply 24 Mar 2021, 22:50 Reply Quote 0
                        • D
                          dankcushions Global Moderator @wmarcio
                          last edited by 24 Mar 2021, 22:50

                          @wmarcio the github has both build instructions and
                          pre-built binaries. if you're running linux mint then you're sorted - just get the linux binary.

                          1 Reply Last reply Reply Quote 0
                          38 out of 38
                          • First post
                            38/38
                            Last post

                          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                            This community forum collects and processes your personal information.
                            consent.not_received