RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?

    Scheduled Pinned Locked Moved Help and Support
    arcadedeluxeretropie-extra
    36 Posts 6 Posters 2.3k 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.
    • LolonoisL
      Lolonois @gomisensei
      last edited by

      @gomisensei Nice. Do you start it when a GUI (X/Wayland) is already running? That would be my guess for the differences (root/non-root) from the distance.

      G 1 Reply Last reply Reply Quote 0
      • G
        gomisensei @Lolonois
        last edited by

        @Lolonois yeah, i added it to emulationstation, it works fine from there, as long as all the files are in /home/pi/.raine it works first thing, it even downloaded the roms when i started a game before i pointed it to my arcade dir.

        J 1 Reply Last reply Reply Quote 1
        • J
          JimmyFromTheBay @gomisensei
          last edited by

          @gomisensei This is great news :) Hopefully someone will add it in to Retropie in a way dopes like me can understand :D

          Raspberry Pi 3b and 8GB Raspberry Pi 4, both running Retropie 4.7.1 installed from scratch using Raspberry Pi Imager, with wired keyboard, wireless mouse and double arcade joystick attached.

          F 1 Reply Last reply Reply Quote 0
          • F
            Folly @JimmyFromTheBay
            last edited by Folly

            It took some time but I have it working too.
            I had a failure at compiling first but somehow compiling worked later.
            I got it working on a x64 with debian12.
            That is really nice as the source-code seems to be future proof.
            The roms or emudx paths can be changed in the config file :
            /home/pi/.raine/config/rainex_sdl.cfg
            I did not have any knowledge of the emudx files so I didn't know you need 2 files 1 for graphics and 1 for sound.
            So for frogger you need :
            froggerg.dx2 (graphics)
            froggerm.dx2 (music)
            I think that is useful information.

            1 Reply Last reply Reply Quote 1
            • F
              Folly @JimmyFromTheBay
              last edited by Folly

              @JimmyFromTheBay

              I created an initial base module-script with a data-folder for patching and copying the config file.
              It's probably not perfect but it after many tests it worked for me.
              I must admit I have used a few hackish methods.
              I used my own differences files as the one from @Lolonois didn't work for me as "patch" failed to apply patches with that diff.
              I also cannot make a "git diff" file like @Lolonois did, not sure how to do that yet so I created and used regular diff files.
              It might be that we need to add more packages to the depends.
              Also, the SDL package isn't installed by the script.
              The Chance is that SDL is already installed otherwise you need to install it from the RetroPie-Setup from the dependency packages.
              Not sure yet how to add SDL correctly yet.

              That said it probably needs some improvements or adjustments but it's a start.

              Here are the files :
              https://github.com/FollyMaddy/RetroPie-raine-modulescript/tree/main

              Just push the raine.sh file and the raine folder in the emulators scriptmodules folder.

              Use it on your own risk.

              p.s.
              The paths can be viewed in the config file.

              Edit:
              These SDL packages are needed to compile raine :
              libsdl2-dev
              libsdl2-image-dev
              These packages are not installed by the module-script !

              ExarKunIvE J LolonoisL 4 Replies Last reply Reply Quote 1
              • ExarKunIvE
                ExarKunIv @Folly
                last edited by

                @Folly sweet. I'll test it on Monday

                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 .

                J F 2 Replies Last reply Reply Quote 0
                • J
                  JimmyFromTheBay @Folly
                  last edited by JimmyFromTheBay

                  @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                  @JimmyFromTheBay

                  I created an initial base module-script with a data-folder for patching and copying the config file.

                  Awesome, cheers :)

                  Sadly on reading the thread more closely I noticed that it needs Bookworm and I'm still on Buster and I'm not sure my Pi can handle Bookworm :(

                  (Whenever I try to read stuff about it to see how to/whether I can update, it's all just ARGLE WARGLE FLARGLE BARGLE and I run away sobbing.)

                  Raspberry Pi 3b and 8GB Raspberry Pi 4, both running Retropie 4.7.1 installed from scratch using Raspberry Pi Imager, with wired keyboard, wireless mouse and double arcade joystick attached.

                  F 1 Reply Last reply Reply Quote 0
                  • J
                    JimmyFromTheBay @ExarKunIv
                    last edited by

                    @ExarKunIv said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                    @Folly sweet. I'll test it on Monday

                    Hey, while you're here - is there any chance of incorporating this into RetroPie-Extra, friend? :)

                    https://retropie.org.uk/forum/topic/36714/monaco-gp-remake

                    Raspberry Pi 3b and 8GB Raspberry Pi 4, both running Retropie 4.7.1 installed from scratch using Raspberry Pi Imager, with wired keyboard, wireless mouse and double arcade joystick attached.

                    1 Reply Last reply Reply Quote 1
                    • F
                      Folly @JimmyFromTheBay
                      last edited by Folly

                      @JimmyFromTheBay said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                      @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                      @JimmyFromTheBay

                      I created an initial base module-script with a data-folder for patching and copying the config file.

                      Awesome, cheers :)

                      Sadly on reading the thread more closely I noticed that it needs Bookworm

                      I think it will run on Buster as raine is old source-code.

                      and I'm still on Buster and I'm not sure my Pi can handle Bookworm :(

                      All pi's are supported :
                      https://www.raspberrypi.com/software/operating-systems/
                      But the best is to use a pi4 or pi5 and 64bit os.

                      (Whenever I try to read stuff about it to see how to/whether I can update, it's all just ARGLE WARGLE FLARGLE BARGLE and I run away sobbing.)

                      Just start with a clean OS and install RetroPie manually :
                      https://github.com/RetroPie/RetroPie-Setup

                      LolonoisL 1 Reply Last reply Reply Quote 0
                      • LolonoisL
                        Lolonois @Folly
                        last edited by

                        @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                        Here are the files :
                        https://github.com/FollyMaddy/RetroPie-raine-modulescript/tree/main

                        Nice. Thanks for taking this further.
                        Positively, a few notes from a cursory look:

                        • The link to the License file in rp_module_licence is not right (yields HTTP 404).
                        • For applying the diff there exists the applyPatch function from RetroPie.
                        • The indent is not right in L72-74.
                        • IIRC chown should be changed to $__user:$__group instead of $user:$user
                        F 1 Reply Last reply Reply Quote 0
                        • LolonoisL
                          Lolonois @Folly
                          last edited by

                          @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                          I think it will run on Buster as raine is old source-code.

                          It could, but it requires a more recent SDL, which would mean a manual SDL2 install which in turn will have knock-on effects on the rest of a otherwise Buster-based RetroPie installation.

                          Others have been down the road trying to get Raine compiled with an older SDL2: https://www.1emulation.com/forums/topic/37608-is-it-possible-to-compile-raine-on-arm-device-retropie/

                          HTH

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            Folly @Lolonois
                            last edited by Folly

                            @Lolonois said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                            @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                            Here are the files :
                            https://github.com/FollyMaddy/RetroPie-raine-modulescript/tree/main

                            Nice. Thanks for taking this further.
                            Positively, a few notes from a cursory look:

                            Thanks, I noticed a few myself too and fixed them.

                            • fixed help (3th commit)
                            • added depends for the xgettext and msgfmt commands (5th and 6th commit) (didn't work correctly so removed in 7th to 9th commit)
                            • added comments (3th commit)
                            • lowered swap (9th commit)
                            • The link to the License file in rp_module_licence is not right (yields HTTP 404).

                            Replace with the only thing I could find :
                            unknown https://raw.githubusercontent.com/zelurker/raine/refs/heads/master/source/Musashi/readme.txt
                            Fixed in the 3th commit

                            • For applying the diff there exists the applyPatch function from RetroPie.

                            Adding applyPatch needs to be done later as it needs a proper diff file.
                            My earlier attempt with using applyPatch with your diff file failed.

                            • The indent is not right in L72-74.

                            Fixed in the 4th commit

                            • IIRC chown should be changed to $__user:$__group instead of $user:$user

                            Fixed in the 3th commit

                            LolonoisL 1 Reply Last reply Reply Quote 0
                            • F
                              Folly @Lolonois
                              last edited by

                              @Lolonois said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                              @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                              I think it will run on Buster as raine is old source-code.

                              It could, but it requires a more recent SDL, which would mean a manual SDL2 install which in turn will have knock-on effects on the rest of a otherwise Buster-based RetroPie installation.

                              Others have been down the road trying to get Raine compiled with an older SDL2: https://www.1emulation.com/forums/topic/37608-is-it-possible-to-compile-raine-on-arm-device-retropie/

                              HTH

                              Gotcha !

                              1 Reply Last reply Reply Quote 0
                              • LolonoisL
                                Lolonois @Folly
                                last edited by

                                @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                                    The link to the License file in rp_module_licence is not right (yields HTTP 404).
                                

                                Replace with the only thing I could find :
                                unknown https://raw.githubusercontent.com/zelurker/raine/refs/heads/master/source/Musashi/readme.txt

                                The guys in the gametechwiki interpreted Raine as being Source-Available License (see box on the right). Maybe it is more accurate.
                                https://emulation.gametechwiki.com/index.php/RAINE

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  Folly @Lolonois
                                  last edited by

                                  @Lolonois said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                                  @Folly said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                                      The link to the License file in rp_module_licence is not right (yields HTTP 404).
                                  

                                  Replace with the only thing I could find :
                                  unknown https://raw.githubusercontent.com/zelurker/raine/refs/heads/master/source/Musashi/readme.txt

                                  The guys in the gametechwiki interpreted Raine as being Source-Available License (see box on the right). Maybe it is more accurate.
                                  https://emulation.gametechwiki.com/index.php/RAINE

                                  Added this in commit 10.

                                  Found a missing piece fixing showing roms in emulationstation :
                                  Commit 11

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    Folly @ExarKunIv
                                    last edited by Folly

                                    @ExarKunIv said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                                    @Folly sweet. I'll test it on Monday

                                    Did you got it working ?

                                    p.s.
                                    Use the latest script.

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

                                      @Folly i tested this and i get a fail.

                                      Compiling c++ source/sdl/dialogs/sound_commands.cpp...
                                      In file included from source/sdl2/gui/menu.h:9,
                                                       from source/sdl/dialogs/../gui/menu.h:2,
                                                       from source/sdl/dialogs/sound_commands.cpp:2:
                                      source/sdl/gui/tfont.h:4:10: fatal error: SDL_ttf.h: No such file or directory
                                          4 | #include <SDL_ttf.h>
                                            |          ^~~~~~~~~~~
                                      compilation terminated.
                                      

                                      im testing this on my pi5 with a basic install

                                      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 .

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        Folly @ExarKunIv
                                        last edited by Folly

                                        @ExarKunIv said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                                        @Folly i tested this and i get a fail.

                                        Compiling c++ source/sdl/dialogs/sound_commands.cpp...
                                        In file included from source/sdl2/gui/menu.h:9,
                                                         from source/sdl/dialogs/../gui/menu.h:2,
                                                         from source/sdl/dialogs/sound_commands.cpp:2:
                                        source/sdl/gui/tfont.h:4:10: fatal error: SDL_ttf.h: No such file or directory
                                            4 | #include <SDL_ttf.h>
                                              |          ^~~~~~~~~~~
                                        compilation terminated.
                                        

                                        im testing this on my pi5 with a basic install

                                        Try to install libsdl-ttf2.0-dev, that will probably work.

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

                                          @Folly still same error

                                          found it, needed libsdl2-ttf-dev
                                          that let it install. ill just need to get the game files for final testing

                                          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 .

                                          F 1 Reply Last reply Reply Quote 1
                                          • F
                                            Folly @ExarKunIv
                                            last edited by Folly

                                            @ExarKunIv said in Did anyone ever support RAINE/EmuDX on Retropie/Retroarch?:

                                            libsdl2-ttf-dev

                                            Now that you mention libsdl2-ttf-dev that sounds much better.
                                            I will add it in the comment for SDL packages that need to be installed.
                                            We will need to look later if these packages can be added safely to the depends

                                            I would recommend to run raine as a test from the terminal after install, something like this :
                                            (not having the roms yet)
                                            /opt/retropie/emulators/raine/raine galaga
                                            Then you will probably notice something.
                                            It will not completely work for the ones that have emudx files.
                                            Just look at the output of raine and you will have the info needed.

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