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

    Suggestions for ports #2

    Scheduled Pinned Locked Moved Ideas and Development
    portsgamesscripts
    367 Posts 26 Posters 154.5k 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.
    • C
      Cesarpuig
      last edited by

      @ExarKunIv Hello, this is the code that I use to install Half-Life, Half-Life: Blue Shift and Half-Life: Opposing Force. I think it can be useful. It is based on the one from @zerojay.

      I have only tested it on RPI4, with Rasbian OS Buster updated, and the latest version of Retropie. I think it needs modifications if it is to be used in another RPI other than 4, since the output files will have different names as they are different architectures.

      #!/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="xash3d-fwgs"
      rp_module_desc="xash3d-fwgs - Half-Life Engine Port"
      rp_module_help="Please add your full version Half-Life data files (folders /valve, /bshift and /gearbox) to $romdir/ports/xash3d-fwgs/ to play."
      rp_module_section="exp"
      rp_module_flags="!mali !x86"
      
      function depends_xash3d-fwgs() {
          getDepends libsdl2-dev libfontconfig1-dev libfreetype6-dev
      }
      
      function sources_xash3d-fwgs() {
          gitPullOrClone "$md_build/$md_id" https://github.com/FWGS/xash3d-fwgs.git
          gitPullOrClone "$md_build/hlsdk" https://github.com/FWGS/hlsdk-xash3d.git
          gitPullOrClone "$md_build/bshiftsdk" https://github.com/FWGS/hlsdk-xash3d.git "bshift"
          gitPullOrClone "$md_build/opforsdk" https://github.com/FWGS/hlsdk-xash3d.git "opfor"
      }
      
      function build_xash3d-fwgs() {
          cd "$md_build/$md_id"
          ./waf configure -T release
          ./waf build
          cd "$md_build/hlsdk"
          ./waf configure -T release
          ./waf build
          cd "$md_build/bshiftsdk"
          ./waf configure -T release
          ./waf build
          cd "$md_build/opforsdk"
          ./waf configure -T release
          ./waf build
          md_ret_require=(
              "$md_build/$md_id/build/game_launch/xash3d"
              "$md_build/$md_id/build/engine/libxash.so"
              "$md_build/$md_id/build/mainui/libmenu.so"
              "$md_build/$md_id/build/ref_soft/libref_soft.so"
              "$md_build/$md_id/build/ref_gl/libref_gl.so"
          )
      }
      
      function install_xash3d-fwgs() {
          md_ret_files=(
              "$md_id/build/game_launch/xash3d"
              "$md_id/build/engine/libxash.so"
              "$md_id/build/mainui/libmenu.so"
              "$md_id/build/ref_soft/libref_soft.so"
              "$md_id/build/ref_gl/libref_gl.so"
          )
      
      }
      
      function configure_xash3d-fwgs() {
          mkRomDir "ports/$md_id/valve"
          mkdir "$romdir/ports/$md_id/valve/cl_dlls"
          mkdir "$romdir/ports/$md_id/valve/dlls"
          mkdir -p "$romdir/ports/$md_id/bshift/cl_dlls"
          mkdir -p "$romdir/ports/$md_id/bshift/dlls"
          mkdir -p "$romdir/ports/$md_id/gearbox/cl_dlls"
          mkdir -p "$romdir/ports/$md_id/gearbox/dlls"
      	moveConfigDir "$md_inst/valve" "$romdir/ports/$md_id/valve"
      	moveConfigDir "$md_inst/bshift" "$romdir/ports/$md_id/bshift"
      	moveConfigDir "$md_inst/gearbox" "$romdir/ports/$md_id/gearbox"
          cp "$md_build/hlsdk/build/cl_dll/client_armv8_32hf.so" "$romdir/ports/$md_id/valve/cl_dlls/client.so"
          cp "$md_build/hlsdk/build/dlls/hl_armv8_32hf.so" "$romdir/ports/$md_id/valve/dlls/hl.so"
          cp "$md_build/bshiftsdk/build/cl_dll/client_armv8_32hf.so" "$romdir/ports/$md_id/bshift/cl_dlls/client.so"
          cp "$md_build/bshiftsdk/build/dlls/bshift_armv8_32hf.so" "$romdir/ports/$md_id/bshift/dlls/hl.so"
          cp "$md_build/opforsdk/build/cl_dll/client_armv8_32hf.so" "$romdir/ports/$md_id/gearbox/cl_dlls/client.so"
          cp "$md_build/opforsdk/build/dlls/opfor_armv8_32hf.so" "$romdir/ports/$md_id/gearbox/dlls/hl.so"
          download "https://github.com/FWGS/xash-extras/releases/download/v0.19.2/extras.pak" "$romdir/ports/$md_id/valve"
      	chown -R $user:$user "$romdir/ports/$md_id/"
      
          addPort "$md_id" "xash3d-fwgs" "Half-Life" "pushd $romdir/ports/$md_id/; LD_LIBRARY_PATH=$md_inst $md_inst/xash3d -game %ROM% -clientlib cl_dlls/client.so -dll dlls/hl.so; popd" "valve"
      	addPort "$md_id" "xash3d-fwgs" "Half-Life - Blue Shift" "pushd $romdir/ports/$md_id/; LD_LIBRARY_PATH=$md_inst $md_inst/xash3d -game %ROM% -clientlib cl_dlls/client.so -dll dlls/hl.so; popd" "bshift"
      	addPort "$md_id" "xash3d-fwgs" "Half-Life - Opposing Force" "pushd $romdir/ports/$md_id/; LD_LIBRARY_PATH=$md_inst $md_inst/xash3d -game %ROM% -clientlib cl_dlls/client.so -dll dlls/hl.so; popd" "gearbox"
      }
      
      

      Once installed it is only necessary to copy the files of each of the games in their respective folders

      /roms/ports/xash3d-fwgs/valve
      /roms/ports/xash3d-fwgs/bshift
      /roms/ports/xash3d-fwgs/gearbox

      I run it at a resolution of 1024x768, I modify them in the video.cfg file, which is created after the first start

      I also modify the config.cfg file as follows:

      ​r_vbo "0"
      r_vbo_dlightmode "1"
      cl_lw "0"
      

      If you want to read more about these settings you can do it here https://github.com/FWGS/xash3d/issues/349

      Greetings

      ExarKunIvE 1 Reply Last reply Reply Quote 2
      • ExarKunIvE
        ExarKunIv @Cesarpuig
        last edited by

        @cesarpuig very cool.
        i will compare it to the one i have and change it if needed with what you posted.

        thanks for sharing

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

          Devilutionx - Port of Diablo 1( got it working again )

          wget https://raw.githubusercontent.com/Exarkuniv/Devilutionx-RPI/Master/devilutionx.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
          

          Cytadela port

          wget https://raw.githubusercontent.com/Exarkuniv/Cytadela-RPI/Master/cytadela.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
          

          Augustus - enhanced port of Caesar 3

          wget https://raw.githubusercontent.com/Exarkuniv/Augustus-RPI/Master/augustus.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
          

          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 .

          ectoE 1 Reply Last reply Reply Quote 1
          • ectoE
            ecto @ExarKunIv
            last edited by

            @exarkuniv Hi again, I tried your devilutionx script. Thanks for that, too!

            There's a new 1.3.0 release with many new features and fixes that you could use in your script. :D (I tried to change it by hand. But there are some differences how the binary is distibuted, and I hadn't had enough time to go through all)

            Keep up to good work!

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

              @ecto thanks again
              i think i might of tryied 1.3.0. but i cant remember. but i will make a note to go back and give it a try and any other updates the anyone has or finds.

              i will get a few new ones posted in the next day or so.

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

                Here's a few more for you all

                Doom 3

                wget https://raw.githubusercontent.com/Exarkuniv/Doom-3-RPI/Master/dhewm3.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                

                Dune Dynasty

                wget https://raw.githubusercontent.com/Exarkuniv/dunedynasty-RPI/Master/dunedynasty.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                

                Dune Legacy

                wget https://raw.githubusercontent.com/Exarkuniv/DuneLegacy-RPI/Master/dunelegacy.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                

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

                  Here's a couple more.

                  Dave Gnukem

                  wget https://raw.githubusercontent.com/Exarkuniv/Dave-Gnukem-RPI/Master/gnukem.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                  

                  GL version of Hexen2 for Pi4

                  wget https://raw.githubusercontent.com/Exarkuniv/Hexen2-GL-RPi/Master/hexen2.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                  

                  Hheretic for the Pi4 GL version (i think)

                  wget https://raw.githubusercontent.com/Exarkuniv/Hheretic-RPi/Master/hheretic.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                  

                  Hhexen port GL version ( i think )

                  wget https://raw.githubusercontent.com/Exarkuniv/Hhexen-RPi/Master/hhexen.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                  

                  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 .

                  B 1 Reply Last reply Reply Quote 1
                  • ExarKunIvE ExarKunIv referenced this topic on
                  • ExarKunIvE
                    ExarKunIv
                    last edited by

                    Here's some more

                    Again if anyone has suggestions or there are any issues. Please let me know

                    Open RA

                    wget https://raw.githubusercontent.com/Exarkuniv/OpenCC-RPi/Master/opencc.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                    

                    OpenJK: Jedi Academy

                    wget https://raw.githubusercontent.com/Exarkuniv/OpenJK-JA-RPi/Master/openjk_ja.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                    

                    OpenJK Jedi Outcast

                    wget https://raw.githubusercontent.com/Exarkuniv/Openjk-jo-RPi/Master/openjk_jo.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                    

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

                      Here is a script made by @sleve_mcdichael it is a GMLoader engine it is to run GameMaker Studio games for Android

                      i can say it does AM2R works quite well

                      GMLoader

                      wget https://raw.githubusercontent.com/s1eve-mcdichae1/GMLoader-RPi/main/gmloader.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                      

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

                        @exarkuniv hey, my music script made it on the list!

                        First, yes, my script still works, and it is constantly updated. I just made a huge rewrite in another language, which hopefully results in less workload, especially for something like the Pi Zero where all performance increases matter.

                        Second, if you want, you can in addition directly link the github page: https://github.com/OfficialPhilcomm/retropie-music, which has installation instructions.

                        Of course I am always open to suggestions when it comes to improvements and new features.

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

                          @philcomm i have added a link to your github.

                          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 .

                          PhilcommP 2 Replies Last reply Reply Quote 0
                          • PhilcommP
                            Philcomm @ExarKunIv
                            last edited by

                            @exarkuniv I saw it, thank you :D

                            And thanks for keeping this updated, this is a cool post, I have it linked in my personal "guide to retropie"

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

                              @exarkuniv I was thinking for a long time to make an Ultimate guide to RetroPie, which includes stuff like additional packages, setup/configuration to make RetroPie as clean of a setup as for example a playstation, background music, and so on.

                              I have something like this for me privately, but not public. Would you be interested in creating such a document together?

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

                                @philcomm thanks for linking my post.

                                ill take all the help to get more people to find this. :)

                                Sure i would love to make something with you
                                I was thinking something along the same line. this post was kinda a start for it.

                                there is so much good stuff out there and alot of it get lost in the forum

                                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 .

                                PhilcommP 1 Reply Last reply Reply Quote 0
                                • PhilcommP
                                  Philcomm @ExarKunIv
                                  last edited by

                                  @exarkuniv said in Suggestions for ports #2:

                                  @philcomm thanks for linking my post.

                                  ill take all the help to get more people to find this. :)

                                  Sure i would love to make something with you
                                  I was thinking something along the same line. this post was kinda a start for it.

                                  there is so much good stuff out there and alot of it get lost in the forum

                                  Nice to hear. So I was thinking about hosting a markdown document somewhere. That way we don't have to worry too much about formatting.
                                  I think very important here is the structure. It is very easy to just put stuff in the document, but another thing to make it easily navigatable and understandable.

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

                                    @philcomm said in Suggestions for ports #2:

                                    I think very important here is the structure. It is very easy to just put stuff in the document, but another thing to make it easily navigatable and understandable

                                    I can't agree more

                                    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 .

                                    PhilcommP 1 Reply Last reply Reply Quote 0
                                    • PhilcommP
                                      Philcomm @ExarKunIv
                                      last edited by

                                      @exarkuniv Lets get in touch sometime. https://twitter.com/dev_philcomm is I think the easiest way (if you have a twitter account)

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

                                        @philcomm sounds good to me.
                                        ok im now following you.

                                        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
                                        • S
                                          sleve_mcdichael
                                          last edited by

                                          Hurrican-RPi

                                          wget https://raw.githubusercontent.com/s1eve-mcdichae1/Hurrican-RPi/main/hurrican.sh -P $HOME/RetroPie-Setup/scriptmodules/ports/
                                          

                                          Hurrican - Turrican clone

                                          A freeware jump and shoot game made by Poke53280 (Eiswuxe) and based on the Turrican series of run and gun platformers.

                                          I've seen a few versions of install scripts for this but I'm not sure if they work anymore, I think I read that the SVN repo from ZeroJay's RetroPie-Extra scripts was a dead link.

                                          This one uses drfiemost's SDL2 fork on GitHub and runs on Pi 4, with the following caveats:

                                          Issues:

                                          • No "pause" or "menu" button on the gamepad. Once you begin a game, you cannot exit without a keyboard to press [Esc].
                                          • With gamepad control enabled, game text reads, for example "press Joypad leftJoypad rightJoypad upJoypad down to crouch" instead of just "press Joypad down to crouch." Issue not present with keyboard control.
                                          • Tutorial level crashes with a segfault, in the same place every time (just after the destructible wall where it shows you the smartbomb.) If you skip the tutorial then the main game seems to work okay but I haven't got very far in at all so something may still happen once you get farther in than the first half of the first level.
                                          ExarKunIvE 1 Reply Last reply Reply Quote 1
                                          • ExarKunIvE
                                            ExarKunIv @sleve_mcdichael
                                            last edited by

                                            @sleve_mcdichael sweet.
                                            that was one that i was going to take a look at. since i do want to use ZeroJay's install script since i have made just a few my self ;)

                                            thanks for getting it working and posting 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 .

                                            S 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.