• 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.1k 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.
  • Q
    quicksilver @Johan_Liebert511
    last edited by 27 Feb 2021, 20:19

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

    I always get the message "permission denied" when I want to place the "valve" folder inside

    Sounds like a permissions or ownership issue. Check to make sure the half-life folder is owned by user pi and has proper permissions.

    J 1 Reply Last reply 27 Feb 2021, 21:24 Reply Quote 0
    • J
      Johan_Liebert511 @quicksilver
      last edited by 27 Feb 2021, 21:24

      @quicksilver
      If you mean I didnt log in properly, I did it as pi user. But the files say in properties that they are from "root [0]". I also cant change them because of "permission denied"

      1 Reply Last reply Reply Quote 0
      • R
        Rafael
        last edited by 28 Feb 2021, 21:27

        Hi,

        I'm having difficulty in step 3:

        1. 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 can't find ports/xash3d, I only see ports/Half-Life. For some reason Xash3D.sh is inside ports.
        I tried to edit Xash3D.sh by adding -sdl_joy_old_api. It looked like this:

        #!/bin/bash
        "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 PORT "Xash3D" "" -sdl_joy_old_api

        But it did not work, the control still does not respond.

        Sorry for bad English, I'm using google translator =)

        Q 1 Reply Last reply 1 Mar 2021, 00:01 Reply Quote 0
        • Q
          quicksilver @Rafael
          last edited by 1 Mar 2021, 00:01

          @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 1 Mar 2021, 01:28 Reply Quote 0
          • R
            Rafael @quicksilver
            last edited by 1 Mar 2021, 01:28

            @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 7 Mar 2021, 18:50

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

              Q 1 Reply Last reply 7 Mar 2021, 21:21 Reply Quote 0
              • Q
                quicksilver @Johan_Liebert511
                last edited by 7 Mar 2021, 21:21

                @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 18 Jul 2021, 22:34 Reply Quote 0
                • 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
                                        • RubicaiR
                                          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
                                          • 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.

                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]