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

    Setting up Half-Life through RetroPie (A Guide)

    Scheduled Pinned Locked Moved General Discussion and Gaming
    half-lifexash3d
    147 Posts 30 Posters 56.0k 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.
    • A
      amp12f @Johan_Liebert511
      last edited by amp12f

      @quicksilver Awesome tutorial. Looking forward to playing. I seem to be having the same issue that @Johan_Liebert511 mentioned. I’ve already got the libraries compiled, joypad flag added to the script, and the game starts up just fine. It’s just when I try and do any sort of key mapping of either the keyboard or the gamepad from the menu that the game crashes back to the RetroPie homescreen. Here’s a dump of runcommand.log. Seems to complain at the very end about a segmentation fault once I try changing any sort of control mapping

      Running on a Raspberry Pi 4

      
      pi@retropie:~ $ cat /dev/shm/runcommand.log
      Parameters: 
      Executing: SDL_VIDEO_KMSDRM_CRTCID=87 SDL_VIDEO_KMSDRM_MODEID=29 /opt/retropie/ports/xash3d/Xash3D.sh
      [14:24:55] /home/pi/RetroPie/roms/ports/Half-Life is working directory now
      ================================================================================
              Xash3D FWGS (build 2316, Linux-arm) started at Aug03 2021 [14:24.55]
      ================================================================================
      [14:24:55] Joystick: SDL
      [14:24:55] 1 joysticks found:
      [14:24:55] 0    : Pro Controller
      [14:24:55] Pass +set joy_index N to command line, where N is number, to select active joystick
      [14:24:55] Selected joystick: Pro Controller
              Axes: 4
              Hats: 1
              Buttons: 16
              Balls: 0
      [14:24:55] Cannot load xashcomm.lst
      [14:24:56] bpp 32
      [14:24:56] R_ChangeDisplaySettings: Setting video mode to 1280x720 windowed
      [14:24:56] Video: V3D 4.2
      [14:24:56] AVI: Not supported
      [14:24:56] vgui_support: not found
      [14:24:56] Loading new-style background from game succeded
      [14:24:56] fontconfig: Trebuchet MS -> /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
      [14:24:56] Uploaded Trebuchet MS_24_500_font.bmp to 149
      [14:24:56] Rendering Trebuchet MS(24, 500) took 0.034199 seconds
      [14:24:56] fontconfig: Trebuchet MS -> /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
      [14:24:56] Uploaded Trebuchet MS_18_500_font.bmp to 150
      [14:24:56] Rendering Trebuchet MS(18, 500) took 0.015570 seconds
      [14:24:56] fontconfig: Trebuchet MS -> /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
      [14:24:56] Uploaded Trebuchet MS_37_500_font.bmp to 151
      [14:24:56] Rendering Trebuchet MS(37, 500) took 0.036755 seconds
      [14:24:56] fontconfig: Trebuchet MS -> /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
      [14:24:56] Uploaded Trebuchet MS_24_1000_font.bmp to 152
      [14:24:56] Rendering Trebuchet MS(24, 1000) took 0.022665 seconds
      [14:24:56] fontconfig: Tahoma -> /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
      [14:24:56] Uploaded Tahoma_16_500_o1_font.bmp to 153
      [14:24:56] Rendering Tahoma(16, 500) took 0.035306 seconds
      [14:24:56] Using SDL audio driver: alsa @ 44100 Hz
      [14:24:56] Reading config script file settings.scr
      [14:24:56] Reading config script file user.scr
      [14:24:56] execing config.cfg
      [14:24:56] execing valve.rc
      [14:24:56] execing language.cfg
      [14:24:56] execing autoexec.cfg
      [14:24:56] execing violence.cfg
      [14:24:56] execing config.cfg
      [14:24:56] Couldn't open file resource/mainui_english.txt. Some strings will not be localized!.
      [14:24:56] Localize_AddToDict: loaded 241 words from resource/gameui_english.txt
      [14:24:56] Localize_AddToDict: loaded 190 words from resource/valve_english.txt
      [14:24:56] Reading config script file settings.scr
      [14:24:56] Reading config script file user.scr
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] -1 -1
      [14:25:08] opt/retropie/ports/xash3d/Xash3D.sh: line 1:  2695 Segmentation fault      LD_LIBRARY_PATH=/home/pi/RetroPie/roms/ports/Half-Life /home/pi/RetroPie/roms/ports/Half-Life/xash3d -console -clientlib cl_dlls/client.so -dll dlls/hl.so -sdl_joy_old_api
      
      
      quicksilverQ 1 Reply Last reply Reply Quote 0
      • quicksilverQ
        quicksilver @amp12f
        last edited by

        @amp12f @Rubicai @Johan_Liebert511 I have reuploaded (I think) the updated binary. Please let me know if it works.

        RubicaiR ExarKunIvE 2 Replies Last reply Reply Quote 0
        • RubicaiR
          Rubicai @quicksilver
          last edited by

          @quicksilver I've just installed it and it's working fine, I still can't get to map the controls from the game since it crashes and for some reason the triggers (I'm using a DualShock 4 to play) seem to do the same, but it's no issue for me and it happened before, but thanks so much, this is a great guide!

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

            @quicksilver is your binary any different then what zerojay already has in his collection for RetroPie-Extra. since in see in his script that it is installing from github.com/FWGS/xash3d-fwgs

            just wondering

            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 .

            quicksilverQ 1 Reply Last reply Reply Quote 0
            • quicksilverQ
              quicksilver @ExarKunIv
              last edited by

              @exarkuniv they're coming from the same source then. In fact zerojays is going to be more up to date than mine. At the time I created this post I don't believe zerojay had a script for half-life. His is probably the better way to go at this point though I haven't looked at it closely.

              ExarKunIvE L 2 Replies Last reply Reply Quote 1
              • ExarKunIvE
                ExarKunIv @quicksilver
                last edited by

                @quicksilver cool, just trying to help so not to make for work for people where its not needed

                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
                • L
                  luckyluca @quicksilver
                  last edited by luckyluca

                  @quicksilver
                  Thanks for this guide.
                  I got it working, except it crashes to desktop everytime I try to assign a button in-game.
                  Has this been resolved?

                  I tried both compile from source in Retropie-Source, run from Binary, and your own Binary.

                  Also, would you kindly share your config.txt, I'm especially after mapping a menu button, as currently it is not possible to open the menu button with the 8bitdo joypad alone.

                  Many thanks!

                  EDIT:
                  I switched to xash3d-fwgs and everything works now

                  1 Reply Last reply Reply Quote 0
                  • R
                    richradd
                    last edited by

                    Are you the same QuickSilver from 15+ years ago
                    QuickSilver extreme?
                    http://qsextreme.com/

                    quicksilverQ 1 Reply Last reply Reply Quote 0
                    • quicksilverQ
                      quicksilver @richradd
                      last edited by

                      @richradd no that's not me

                      1 Reply Last reply Reply Quote 0
                      • E
                        eputley @quicksilver
                        last edited by

                        @quicksilver Does this still work? Im not seeing xash3d come up in my packages after i put "wget --no-check-certificate https://github.com/sergiopoverony/xash3d/raw/master/xash3d.sh
                        " into my terminal.

                        mituM ExarKunIvE 2 Replies Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator @eputley
                          last edited by

                          @eputley The downloaded file needs to be placed in a certain folder, it won't work if you just download it somewhere. Run:

                          cd $HOME/RetroPie-Setup/scriptmodules/ports
                          wget https://github.com/sergiopoverony/xash3d/raw/master/xash3d.sh
                          

                          then run again RetroPie-Setup.

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

                            @eputley there is a updated script in the main repo for Retropie-Extra

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

                            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 .

                            E 2 Replies Last reply Reply Quote 0
                            • E
                              eputley @ExarKunIv
                              last edited by

                              @ExarKunIv Which folder is the code in? Im really not familar with these things.

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

                                @ExarKunIv Okay I downloaded it from the retropie experimental section, can I follow the instructions of this original post now? Or has anything else changed? Thanks for the help btw

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

                                  @eputley the script is in the experimental section

                                  And you just need to add your game files.
                                  But this post will help with that

                                  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 .

                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    eputley @ExarKunIv
                                    last edited by

                                    @ExarKunIv So I tried add my game files but unlike others in this thread I dont have a folder for Half life in my roms/ports/folderscreenshot.PNG

                                    E 1 Reply Last reply Reply Quote 0
                                    • E
                                      eputley @eputley
                                      last edited by

                                      @eputley So im not sure where to put my valve folder I tried putting it in the ports section but it wouldnt launch the game then I tried putting it in xash3d folder that didnt work either

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

                                        @eputley is there a valve folder within xash3d-fwgs?

                                        If so put it in there

                                        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 .

                                        E 2 Replies Last reply Reply Quote 0
                                        • E
                                          eputley @ExarKunIv
                                          last edited by

                                          @ExarKunIv Yes there is but it dowsnt contain all the files in my valve folder from steam, so I tried replacing it with my valve folder but it still wont launch

                                          E 1 Reply Last reply Reply Quote 0
                                          • E
                                            eputley @eputley
                                            last edited by

                                            @eputley valve folder.PNG

                                            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.