Add support for xash3D
-
To anyone having issues getting the joystick axis's set correctly you'll need to edit this section of the
config.cfg
joy_axis_binding "sflpyr" joy_enable "1" joy_forward "0.700000" joy_forward_deadzone "10000" joy_forward_key_threshold "24576" joy_lt_threshold "+16384" joy_pitch "90.300003" joy_pitch_deadzone "10000" joy_rt_threshold "+16384" joy_side "0.700000" joy_side_deadzone "10000" joy_side_key_threshold "24576" joy_yaw "90.300003" joy_yaw_deadzone "10000" joystick "0.000000"
The first line
joy_axis_binding
is what axis controls Side/Forward/Left Trigger/Pitch/Yaw/Right Trigger. So you'll need to rearrange those letters until your axis and triggers are controlling the correct functions. For my wireless xbox 360 controllerjoy_axis_binding "sflpyr
is correct. The joystick deadzone functions are in multiples of 10,000. So for examplejoy_pitch_deadzone "10000"
is a 10% deadzone (took me forever to figure that out since for example dosbox uses a value of "10" for a 10% deadzone)Now on to map the controller buttons. Hopefully this will be more straight forward.
-
@quicksilver Wow that's so weird with the axis, I never would've figured that out. Good to know, although on a practical basis I'm not sure how you'd go about getting that standardised for each user? I guess it's different for every controller, as I'm using a 8bitdo controller with the receiver in the xbox/Xinput mode so I'd imagine it acts as an xbox 360 controller. And yet it still needs a different arrange to yours on the joy_axis_binding command.
-
@retropieuser555 said in Add support for xash3D:
Good to know, although on a practical basis I'm not sure how you'd go about getting that standardised for each user?
In the new version of xash3d you can swap the axis's around through the in-game menu. Mapping buttons to my controllers face buttons was a breeze too. So at this point I have everything configured using my gamepad without using xboxdrv.
-
Well I got half-life running on my pi zero/GPi case. But with only a dpad it's a little hard to control.
I was so preoccupied with whether I could, I didnt stop to think if I should. 😂
-
@quicksilver I realised why my mapping was getting messed up, stupid curly speech marks from my MacBook keyboard! Such a little thing that I completely forgot about and so was messing up anything I was writing for binds.
Btw I couldn't get your upload to run, you're just putting those files into /ports/Half Life right?
-
@retropieuser555 yes but make sure they have the right permissions or they won't work. Since I compiled that binary on my pi 4, it's possible it will only work on a pi 4/raspbian buster.
-
@quicksilver it could be, I'm running it from my usual Nas drive but the permissions are ok as far as I can see.
Silly noob question, what did you do to recompile it? As originally I just followed the details here https://github.com/sergiopoverony/xash3d
Which I guess installs the earlier version.
-
@retropieuser555 are you using a pi 4? How did you install xash3d originally? Source or binary?
-
@quicksilver I'm pretty sure I always pick source & I'm on the pi3b+. In fairness I'm not too worried as half life does run atm anyway, I was just curious if the flashlight is fixed in the later version.
-
@retropieuser555 fps still drops with flashlight on.
-
@quicksilver ah fair, I'll probably stick with what's on there for now anyways then
-
@retropieuser555 does the hazard course work for you on the old version?
-
@quicksilver I played it right through just now, I can't remember what the original game on PC was like as I only ever played it a little bit. The flashlight drops the framerate to around 10-15FPS, and grenades freeze the game up briefly when they go to explode but honestly it's not bad at all and it works way better than I'd imagine the pi3 would handle it.
Time to give the main game a bash and see how far I can get without the flashlight ha!
-
@retropieuser555 I'm about halfway through the game right now. Fps drops on my pi 4 aren't as bad as what you describe, which is to be expected. For being a 20 year old game it's still really good. :)
-
@quicksilver It's easily the best looking 3d game I've played on the pi tbh. It looks slightly above a PSX game, but then I guess xash3d has been built purely to play this game and had a lot of the gunk written out of it. I'll probably be getting a pi4 soon anyway so it'll be nice to see what the jump is for these games that "nearly" run on the pi3.
-
@quicksilver Okay I'm barely through the first 10 mins in the facility at the start and anytime there's some lights, explosions or any kinda graphics to process the game freezes up. I wouldn't say it's playable on pi3 based on that. I think it's a file under pi4 game :)
-
@retropieuser555 Try changing to these settings in your config.cfg
r_vbo 0 r_vbo_dlightmode 1 cl_lw 0
Is the original soundtrack playing for you? I have not heard any music yet...
-
@quicksilver the soundtrack is working for me, just its very very quite.
-
@quicksilver Wow whatever those settings are it has helped a lot. I also dropped the resolution down to 800 x 600 (I think the game by default went to something much higher). Still getting some dips in frame rates but it's a lot better, more like 30-40FPS when stuff happens on screen, which is liveable. I'll play a bit further into the game and see what happens later on.
-
@ExarKunIv Found my game files were incomplete. Got that fixed and have music now.
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.