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 @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
                            • ExarKunIvE
                              ExarKunIv @Unknown
                              last edited by

                              @Unknown here is the aethersx2 script as a guide

                              https://raw.githubusercontent.com/Exarkuniv/RetroPie-Extra/master/scriptmodules/emulators/aethersx2.sh

                              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 2 Replies Last reply Reply Quote 1
                              • UnknownU
                                Unknown @ExarKunIv
                                last edited by

                                @ExarKunIv Thanks I will look into it.

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

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

                                  @ExarKunIv Ok I have changed the install script to this

                                  #!/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"
                                      # Create the xbox BIOs directory if it doesn't exist
                                      if [ ! -d "$biosdir/xbox" ]; then
                                          mkdir -p "$biosdir/xbox"
                                      fi
                                      chown -R $user:$user "$biosdir/xbox"
                                      # Create a symbolic link for BIOS
                                      if [ ! -L "$home/opt/retropie/emulators/xemu/xbox" ]; then
                                          ln -s "$biosdir/xbox" "$home/opt/retropie/emulators/xemu/xbox"
                                      fi
                                     
                                     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 reinstalled Xemu but I am still getting 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
                                  

                                  The script has created an "xbox" folder in the retropie Bios directory and I put the Bios files in that folder, so I am guessing that I have failed to get the symbolic link working. However Progress is progress and I must thank you for your help so far. Do you have any more advice?

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

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

                                    @Unknown hmm. it looks like it should work.

                                    ill have to install this on mine and see if i see anything

                                    just checking you have kernel=kernel8.img in the config.txt?

                                    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 0
                                    • ExarKunIvE
                                      ExarKunIv @Unknown
                                      last edited by ExarKunIv

                                      @Unknown ok i see what i think is the problem

                                      you are missing the whole build line. you went from downloading the source to installing.
                                      you need to build then install

                                      look at the one for reicast

                                      https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/scriptmodules/emulators/reicast.sh

                                      first you install the depends, then download the source, then build from source once thats done you install the files that where built. and from there you link the emulators.cfg with the correct paths

                                      EDIT

                                      unless the build.sh also installs it

                                      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 @ExarKunIv
                                        last edited by

                                        @ExarKunIv
                                        Oh. Well that explains a lot. I'll try to fix this sometime later this week.

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

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

                                          Update. I have attempted to add a build section to the script but I am unable to catch any errors when I run it. So I have clone my virtual machine and I will be installing Xemu outside of RetroPie in order to get a better understanding of how it installs. I will keep you posted.

                                          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. This is my current install script.

                                            #!/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 build_xemu() {
                                                make clean
                                                make
                                                md_ret_require="$md_build/xemu"
                                            }
                                            
                                            }
                                            function install_xemu() {
                                                #cd xemu
                                                ./build.sh
                                            }
                                             
                                             
                                            function configure_xemu() {
                                                mkRomDir "xbox"
                                                # Create the xbox BIOs directory if it doesn't exist
                                                if [ ! -d "$biosdir/xbox" ]; then
                                                    mkdir -p "$biosdir/xbox"
                                                fi
                                                chown -R $user:$user "$biosdir/xbox"
                                                # Create a symbolic link for BIOS
                                                if [ ! -L "$home/opt/retropie/emulators/xemu/xbox" ]; then
                                                    ln -s "$biosdir/xbox" "$home/opt/retropie/emulators/xemu/xbox"
                                                fi
                                               
                                               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"
                                            }
                                            

                                            The system is now producing an error log.

                                            Log started at: Mon Aug 19 03:21:37 PM EDT 2024
                                            
                                            RetroPie-Setup version: 4.8.8 (94b131a)
                                            System: x86_64 (x86_64) - Ubuntu 24.04 LTS - Linux retropie-VirtualBox 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  5 10:34:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
                                            
                                            = = = = = = = = = = = = = = = = = = = = =
                                            Installing dependencies for 'xemu' : Xbox Emulator
                                            = = = = = = = = = = = = = = = = = = = = =
                                            
                                            /home/retropie/RetroPie-Setup/tmp/build/xemu /home/retropie/RetroPie-Setup
                                            
                                            = = = = = = = = = = = = = = = = = = = = =
                                            Getting sources for 'xemu' : Xbox Emulator
                                            = = = = = = = = = = = = = = = = = = = = =
                                            
                                            /home/retropie/RetroPie-Setup
                                            
                                            = = = = = = = = = = = = = = = = = = = = =
                                            Building 'xemu' : Xbox Emulator
                                            = = = = = = = = = = = = = = = = = = = = =
                                            
                                            make: *** No rule to make target 'clean'.  Stop.
                                            make: *** No targets specified and no makefile found.  Stop.
                                            Could not successfully build xemu - Xbox Emulator (/home/retropie/RetroPie-Setup/tmp/build/xemu/xemu not found).
                                            
                                            Log ended at: Mon Aug 19 03:21:37 PM EDT 2024
                                            Total running time: 0 hours, 0 mins, 0 secs
                                            

                                            You must forgive me because I am quite new to this. Can anyone provide assistance?

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

                                            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.