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 46.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.
    • quicksilverQ
      quicksilver @Rafael
      last edited by

      @rafael you're editing the wrong file. Make sure you're not editing the .sh file in the roms directory.

      R J 2 Replies Last reply Reply Quote 0
      • R
        Rafael @quicksilver
        last edited by

        @quicksilver thanks so much, I was looking in the wrong directory. It's working fine now.

        1 Reply Last reply Reply Quote 0
        • J
          Johan_Liebert511 @quicksilver
          last edited by

          @quicksilver I managed to run the game but the first 3 options of the game (New Game, Hazard Course and Load Game) can`t be used. I cant start a new game.

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

            @johan_liebert511 make sure you are using the steam version of the game otherwise you'll have issues. I have heard you can use a cd copy of the game but you'll need to patch it to a newer version in order for it to work properly with xash3d. You'll need to consult the xash3d documentation for further details as I can't remember off the top of my head which patch version is the minimum requirement.

            J 1 Reply Last reply Reply Quote 0
            • P
              plimbs
              last edited by

              @quicksilver Dude, this is awesome info from you! Works perfect on my pi 4 with mouse and keyboard.

              On my 3b, I can seemingly compile the new FWGS version, but I get errors trying to use it. The game is very playable with original install script. Neither one recognizes my bluetooth controllers at all so I cannot play with a controller.

              Has anyone managed to compile FWGS and run successfully on the 3b?

              P 1 Reply Last reply Reply Quote 0
              • P
                plimbs @plimbs
                last edited by

                This is what I get :

                pi@retropie3:~ $ cat /dev/shm/runcommand.log
                Parameters:
                Executing: /opt/retropie/ports/xash3d/Xash3D.sh
                [15:39:58] Console initialized.
                [15:39:58] IN_TouchInit()
                [15:39:58] execing video.cfg
                [15:39:58] Found renderer gl: OpenGL
                [15:39:58] Found renderer soft: Software
                [15:39:58] Loading renderer: gl -> libref_gl.so
                [15:39:58] execing opengl.cfg
                [15:39:58] Trying safe opengl mode 0
                [15:39:58] bpp 32
                [15:39:58] Sys_Warn: Error: Can't initialize libref_gl.so renderer!
                
                [15:39:58] Loading renderer: soft -> libref_soft.so
                [15:39:58] r_fullbright is cheat protected.
                [15:39:58] r_lightmap is cheat protected.
                [15:39:58] Sys_Warn: invalid mode, engine will run in 640x480
                [15:39:58] Sys_Warn: could not revert to safe mode!
                [15:39:58] failed to initialize software blitter, fallback to glblit
                [15:39:58] Sys_Warn: Error: Can't initialize libref_soft.so renderer!
                
                
                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @plimbs
                  last edited by

                  @plimbs said in Setting up Half-Life through RetroPie (A Guide):

                  [15:39:58] Found renderer gl: OpenGL

                  The Pi3 doesn't have OpenGL support with the default drivers - only OpenGL ES.

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    plimbs @mitu
                    last edited by

                    @mitu Yes, you are right. I knew that as well. But it also fails to fall back to the software renderer, which runs very well on the Pi 3 with the older code base. Wondering if anyone else got past this.

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

                      @plimbs I do have xash3d running on my pi zero so it should work on a pi 3 if you compile it correctly. Unless they no longer support OpenGLES or something.

                      Edit: xash3d github states it supports gles so I'm not sure what the issue is.

                      P 1 Reply Last reply Reply Quote 0
                      • PittStoneP
                        PittStone
                        last edited by

                        Hello, i need help with xash3d-fwgs Controller Setup. My right Analog Controlls for look up and left, right not working. If i go to controller setups the right Analogs not working. I use Logitech Wireless Controller. Maybe its an dinput problem? And xash3d works only with xinput?

                        1 Reply Last reply Reply Quote 0
                        • P
                          plimbs @quicksilver
                          last edited by

                          @quicksilver So that must be the question... Am I compiling correctly? I get no errors that I can see during the build. It completes successfully.

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

                            @plimbs it seems that someone will need to go on github and ask the devs for xash3d about it.

                            thats what i did to get it to compile again with the script from zerojay.
                            now i have a pi4 and i have not tested it yet. so im not much help on this

                            and i used the old way to get it working on my Pi3, and that way uses the old version from FWGS

                            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
                            • K
                              KiloMane
                              last edited by KiloMane

                              @quicksilver i’m stuck on step three- If you wish to use a controller to play this game edit the file /opt/retropie/ports/xash3d/Xash3D.sh and add -sdl_joy_old_api to the end of the line. You can also remove -console from that line if you don't want the constant console messages on screen- I don’t know where to put the line of code or how it should look, but I can’t get it to work please help :/ -Pi4 retropie xash3d (not fwgs), controller sn30pro or Xbox one also hoping to setup controls for Piboy DMG

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

                                @kilomane said in Setting up Half-Life through RetroPie (A Guide):

                                @quicksilver i’m stuck on step three- If you wish to use a controller to play this game edit the file /opt/retropie/ports/xash3d/Xash3D.sh and add -sdl_joy_old_api to the end of the line. You can also remove -console from that line if you don't want the constant console messages on screen- I don’t know where to put the line of code or how it should look, but I can’t get it to work please help :/ -Pi4 retropie xash3d (not fwgs), controller sn30pro or Xbox one also hoping to setup controls for Piboy DMG

                                You need to edit the file located at /opt/retropie/ports/xash3d/Xash3D.shand remove -console from the line of text in that file and add -sdl_joy_old_apiat the end of the line of text to enable joystick control.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  Johan_Liebert511 @quicksilver
                                  last edited by

                                  @quicksilver I'm here again. I finally learned some Linux and managed to set half life up. I wanted to play on Gamepad but as soon as I try to bind a button, for example jump, it crashes. I played a bit and it looks like I can only move the joysticks. I did step 3 but am using the old xash3d version since the mega file doesnt show up and I dont know how to compile. Can you upload the mega file again or help me in other ways?

                                  Thanks for your Work

                                  quicksilverQ A 2 Replies Last reply Reply Quote 1
                                  • quicksilverQ
                                    quicksilver @Johan_Liebert511
                                    last edited by

                                    @johan_liebert511 I'll see if I can reupload it for you

                                    1 Reply Last reply Reply Quote 0
                                    • RubicaiR
                                      Rubicai
                                      last edited by

                                      It works great thank you! But I can't download the newer version of xash3d, it seems the folder is empty. Could it be reuploaded?

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