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
-
@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.sh
and remove-console
from the line of text in that file and add-sdl_joy_old_api
at the end of the line of text to enable joystick control. -
@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
-
@johan_liebert511 I'll see if I can reupload it for you
-
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?
-
@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
-
@amp12f @Rubicai @Johan_Liebert511 I have reuploaded (I think) the updated binary. Please let me know if it works.
-
@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!
-
@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
-
@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.
-
@quicksilver cool, just trying to help so not to make for work for people where its not needed
-
@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 -
Are you the same QuickSilver from 15+ years ago
QuickSilver extreme?
http://qsextreme.com/ -
@richradd no that's not me
-
@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. -
@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.
-
@eputley there is a updated script in the main repo for Retropie-Extra
-
@ExarKunIv Which folder is the code in? Im really not familar with these things.
-
@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
-
@eputley the script is in the experimental section
And you just need to add your game files.
But this post will help with that
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.