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

    Running Xbox original games on Retropie (PC only)

    Scheduled Pinned Locked Moved General Discussion and Gaming
    original xboxxbox emulationxbox
    49 Posts 4 Posters 5.8k 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.
    • rogg23R
      rogg23
      last edited by

      I've also recently been looking to do the same thing., on Ubuntu.

      I installed Xemu via Flatpak, instructions on Xemu page.

      Then I updated my es_systems.cfg to add xbox as follows:

        <system>
          <name>xbox</name>
          <fullname>Xbox</fullname>
          <path>/home/retropie/RetroPie/roms/xbox</path>
          <extension>.iso</extension>
          <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ xbox %ROM%</command>
          <platform>xbox</platform>
          <theme>xbox</theme>
        </system>
      
      

      Then I created a xbox folder under /opt/retropie/configs
      And created the following file /opt/retropie/configs/xbox/emulators.cfg with this content

      xbox = "flatpak run app.xemu.xemu -dvd_path %ROM%"
      default = "xbox"
      
      

      I put my xbox ISO images in the roms/xbox folder I created.

      my xbox_hdd I configured on my NAS and added it as an NFS mount in /etc/fstab and configured the appropriate files within Xemu.

      When I launch a game through the xbox menu in emulation station, it just launches, I don't need a mouse, don't need to reset, and when I exit the game it exits back to emulation station.

      A different approach and no extra script or mouse needed.

      UnknownU 1 Reply Last reply Reply Quote 1
      • UnknownU
        Unknown @fadingrose
        last edited by Unknown

        @fadingrose @rogg23
        Are you going to submit a pull request for this? If not I will gladly do so

        You can't beat the classics(unless you copy them).

        rogg23R 1 Reply Last reply Reply Quote 0
        • rogg23R
          rogg23 @Unknown
          last edited by

          @Unknown I'm not sure I know how!

          UnknownU 1 Reply Last reply Reply Quote 1
          • UnknownU
            Unknown @rogg23
            last edited by

            @rogg23 That's perfectly fine. I can work with you on that if you would like. We just need to write an install script for retro-pie to use. Please let me know if you would like to work with me on this.

            You can't beat the classics(unless you copy them).

            1 Reply Last reply Reply Quote 0
            • rogg23R
              rogg23
              last edited by

              Happy to help with this, but my input wouldn't be much more use that what I said in my earlier post, but willing to give it a go.

              UnknownU 1 Reply Last reply Reply Quote 0
              • ExarKunIvE
                ExarKunIv
                last edited by

                Once you have one made you can also open a PR over at

                https://github.com/Exarkuniv/RetroPie-Extra

                So it's somewhere that people can use it. Until it's accepted into the main Retropie.

                If you want.

                RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                Maintainer of RetroPie-Extra .

                UnknownU 1 Reply Last reply Reply Quote 0
                • UnknownU
                  Unknown @rogg23
                  last edited by

                  @rogg23 Good! Can you please provide me with the exact commands you used to install Xemu on your device? I’ll let you know if I need anything else

                  You can't beat the classics(unless you copy them).

                  rogg23R 1 Reply Last reply Reply Quote 0
                  • UnknownU
                    Unknown @ExarKunIv
                    last edited by

                    @ExarKunIv said in Running Xbox original games on Retropie (PC only):

                    Once you have one made you can also open a PR over at

                    https://github.com/Exarkuniv/RetroPie-Extra

                    So it's somewhere that people can use it. Until it's accepted into the main Retropie.

                    If you want.

                    True. I’ll do that.

                    You can't beat the classics(unless you copy them).

                    1 Reply Last reply Reply Quote 0
                    • rogg23R
                      rogg23 @Unknown
                      last edited by rogg23

                      @Unknown
                      So my install was on Ubuntu x64 using flatpak.

                      :: Install Flatpak
                      
                      sudo apt install flatpak
                      
                      :: add flat hub repo
                      
                      flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
                      
                      :: install xemu using flatpak
                      
                      flatpak install -y app.xemu.xemu
                      
                      UnknownU 1 Reply Last reply Reply Quote 1
                      • UnknownU
                        Unknown @rogg23
                        last edited by

                        @rogg23 Thanks. I’m a busy guy, but with any luck I can get this working in a few days.

                        You can't beat the classics(unless you copy them).

                        1 Reply Last reply Reply Quote 1
                        • UnknownU
                          Unknown
                          last edited by

                          Update on my progress. I am currently creating a virtual machine to conduct this experiment with. By the end of the day I will have retropie installed and functioning. Hopefully tomorrow I can start working on the install script.

                          You can't beat the classics(unless you copy them).

                          1 Reply Last reply Reply Quote 0
                          • UnknownU
                            Unknown
                            last edited by

                            Ok. Looking at the install scripts that retropie uses, they all seem to install from source and I can't find an existing example of something using "flatpack". However Xemu provides detailed instructions for building from source so stay tuned.

                            You can't beat the classics(unless you copy them).

                            1 Reply Last reply Reply Quote 0
                            • UnknownU
                              Unknown
                              last edited by

                              Ok here is the script I have made so far.

                              #!/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="xemu"
                              rp_module_desc"Xbox Emulator"
                              rp_module_help="ROM Extensions: .iso .xiso \n\nCopy your xbox games to $romdir/xbox"
                              rp_module_licence="https://github.com/xemu-project/xemu/blob/master/LICENSE"
                              rp_module_repo="https://github.com/xemu-project/xemu.git"
                              rp_module_section="exp"
                              
                              function depends_xemu() {
                                  local depends=( build-essential libsdl2-dev libepoxy-dev libpixman-1-dev libgtk-3-dev libssl-dev libsamplerate0-dev libpcap-dev ninja-build python3-yaml libslirp-dev)
                                  getDepends "${depends[@]}"
                              }
                              function sources_xemu() {
                                  gitPullOrClone
                              }
                              

                              The script is complete, but it's a start. If anyone has any input I would be happy to take advice.

                              You can't beat the classics(unless you copy them).

                              1 Reply Last reply Reply Quote 0
                              • UnknownU
                                Unknown
                                last edited by

                                Here is the complete script which runs without any errors as far as I can tell.

                                #!/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="xemu"
                                rp_module_desc="Xbox Emulator"
                                rp_module_help="ROM Extensions: .iso .xiso \n\nCopy your xbox games to $romdir/xbox"
                                rp_module_licence="https://github.com/xemu-project/xemu/blob/master/LICENSE"
                                rp_module_repo="https://github.com/xemu-project/xemu.git"
                                rp_module_section="exp"
                                
                                function depends_xemu() {
                                    local depends=( build-essential libsdl2-dev libepoxy-dev libpixman-1-dev libgtk-3-dev libssl-dev libsamplerate0-dev libpcap-dev ninja-build python3-yaml libslirp-dev)
                                    getDepends "${depends[@]}"
                                }
                                function sources_xemu() {
                                    gitPullOrClone
                                }
                                function install_xemu() {
                                    cd xemu
                                    ./build.sh
                                }
                                
                                
                                function configure_xemu() {
                                    mkRomDir "xbox"
                                    if [[ "$md_mode" == "install" ]]; then
                                       mkUserDir "$md_conf_root/xbox"
                                       mkUserDir "$md_conf_root/xbox/$md_id"
                                       moveConfigFile "$home/.$md_id" "$md_conf_root/xbox/$md_id"
                                    fi
                                    addEmulator 1 "$md_id" "xbox" "$md_inst/xbox -r 3 -i %ROM%"
                                    addSystem "xbox"
                                }
                                

                                I haven't tested the emulator itself yet because I don't currently have Bios or roms but we'll see soon.

                                You can't beat the classics(unless you copy them).

                                1 Reply Last reply Reply Quote 1
                                • UnknownU
                                  Unknown
                                  last edited by Unknown

                                  This morning my virtual machine decided it wanted to crash my computer whenever I tried to start it. I have no idea why, except for a humorous theory that it became sentient and decided that it didn't want to exist. :D
                                  Anyway I will be testing today and hopefully get Xemu running after I take care of this setback.
                                  Thank God that I posted the script here because otherwise I don't know how I would get it back.

                                  You can't beat the classics(unless you copy them).

                                  ExarKunIvE 1 Reply Last reply Reply Quote 0
                                  • ExarKunIvE
                                    ExarKunIv @Unknown
                                    last edited by

                                    @Unknown said in Running Xbox original games on Retropie (PC only):

                                    became sentient and decided that it didn't want to exist

                                    i hate when they do that. :D

                                    RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                    RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                    Maintainer of RetroPie-Extra .

                                    1 Reply Last reply Reply Quote 1
                                    • UnknownU
                                      Unknown @rogg23
                                      last edited by

                                      @rogg23 said in Running Xbox original games on Retropie (PC only):

                                      I've also recently been looking to do the same thing., on Ubuntu.

                                      I installed Xemu via Flatpak, instructions on Xemu page.

                                      Then I updated my es_systems.cfg to add xbox as follows:

                                        <system>
                                          <name>xbox</name>
                                          <fullname>Xbox</fullname>
                                          <path>/home/retropie/RetroPie/roms/xbox</path>
                                          <extension>.iso</extension>
                                          <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ xbox %ROM%</command>
                                          <platform>xbox</platform>
                                          <theme>xbox</theme>
                                        </system>
                                      
                                      

                                      I am currently to find my es_system.cfg file. You you tell me the directory?

                                      You can't beat the classics(unless you copy them).

                                      UnknownU 1 Reply Last reply Reply Quote 0
                                      • UnknownU
                                        Unknown @Unknown
                                        last edited by

                                        Ok I figured out the es_system thing. I tried running a game and I got this error.

                                        Parameters: 
                                        Executing: /opt/retropie/emulators/xemu/xbox -r 3 -i "/home/retropie/RetroPie/roms/xbox/ATV Quad Power Racing 2.iso"
                                        /opt/retropie/supplementary/runcommand/runcommand.sh: line 1322: /opt/retropie/emulators/xemu/xbox: No such file or directory
                                        

                                        I assume it is searching a BIOS. Does anyone know how I can redirect it to the RetroPie Bios folder?

                                        You can't beat the classics(unless you copy them).

                                        ExarKunIvE 1 Reply Last reply Reply Quote 0
                                        • ExarKunIvE
                                          ExarKunIv @Unknown
                                          last edited by

                                          @Unknown we had a similar issue with aethersx2
                                          we just made a symbolic to where it was look it for. we didnt figure out how to change it in the config

                                              # Create a symbolic link for BIOS
                                              if [ ! -L "$home/.config/aethersx2/bios" ]; then
                                                  ln -s "$biosdir/ps2" "$home/.config/aethersx2/bios"
                                              fi
                                              
                                          

                                          thats the best i can give. i have not messed with this yet

                                          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                          Maintainer of RetroPie-Extra .

                                          UnknownU 1 Reply Last reply Reply Quote 1
                                          • UnknownU
                                            Unknown @ExarKunIv
                                            last edited by

                                            @ExarKunIv
                                            So I can run commands like that in the install script and it should look at the Retropie bios?

                                            You can't beat the classics(unless you copy them).

                                            ExarKunIvE 1 Reply Last reply Reply Quote 0
                                            • First post
                                              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.