• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.2k 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.
  • P
    plimbs
    last edited by 1 Apr 2021, 18:58

    @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 1 Apr 2021, 19:42 Reply Quote 0
    • P
      plimbs @plimbs
      last edited by 1 Apr 2021, 19:42

      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!
      
      
      M 1 Reply Last reply 1 Apr 2021, 19:44 Reply Quote 0
      • M
        mitu Global Moderator @plimbs
        last edited by 1 Apr 2021, 19:44

        @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 1 Apr 2021, 21:09 Reply Quote 0
        • P
          plimbs @mitu
          last edited by 1 Apr 2021, 21:09

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

          Q 1 Reply Last reply 1 Apr 2021, 21:12 Reply Quote 0
          • Q
            quicksilver @plimbs
            last edited by quicksilver 4 Jan 2021, 22:14 1 Apr 2021, 21:12

            @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 8 Apr 2021, 15:24 Reply Quote 0
            • P
              PittStone
              last edited by 1 Apr 2021, 21:52

              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 8 Apr 2021, 15:24

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

                E 1 Reply Last reply 8 Apr 2021, 15:33 Reply Quote 0
                • E
                  ExarKunIv @plimbs
                  last edited by 8 Apr 2021, 15:33

                  @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 5 Nov 2021, 15:25 11 May 2021, 14:13

                    @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

                    Q 1 Reply Last reply 13 May 2021, 15:06 Reply Quote 0
                    • Q
                      quicksilver @KiloMane
                      last edited by 13 May 2021, 15:06

                      @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 18 Jul 2021, 22:34

                        @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

                        Q A 2 Replies Last reply 19 Jul 2021, 00:50 Reply Quote 1
                        • Q
                          quicksilver @Johan_Liebert511
                          last edited by 19 Jul 2021, 00:50

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

                          1 Reply Last reply Reply Quote 0
                          • R
                            Rubicai
                            last edited by 19 Jul 2021, 18:39

                            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 8 Mar 2021, 19:38 3 Aug 2021, 18:29

                              @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
                              
                              
                              Q 1 Reply Last reply 4 Aug 2021, 16:57 Reply Quote 0
                              • Q
                                quicksilver @amp12f
                                last edited by 4 Aug 2021, 16:57

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

                                R E 2 Replies Last reply 5 Aug 2021, 12:21 Reply Quote 0
                                • R
                                  Rubicai @quicksilver
                                  last edited by 5 Aug 2021, 12:21

                                  @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
                                  • E
                                    ExarKunIv @quicksilver
                                    last edited by 5 Aug 2021, 15:23

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

                                    Q 1 Reply Last reply 19 Aug 2021, 12:59 Reply Quote 0
                                    • Q
                                      quicksilver @ExarKunIv
                                      last edited by 19 Aug 2021, 12:59

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

                                      E L 2 Replies Last reply 19 Aug 2021, 13:14 Reply Quote 1
                                      • E
                                        ExarKunIv @quicksilver
                                        last edited by 19 Aug 2021, 13:14

                                        @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 27 Nov 2021, 20:53

                                          @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
                                          • 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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received