• Stars
    star
    192
  • Rank 202,019 (Top 4 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Port of the Xash3D-FWGS Half Life Engine to Oculus Quest

Lambda1VR Banner

Lambda1VR

Lambda1VR is a port / mod of the Xash3D-FWGS Half-Life Engine for the Oculus Quest adding 6DoF weapon support and OpenGLES2.0 rendering.

Xash3D is a game engine, aimed to provide compatibility with Half-Life Engine, 
as well as to give game developers well known workflow and extend it.
Read more about Xash3D on ModDB: https://www.moddb.com/engines/xash3d-engine

SideQuest

The easiest way to install this on your Quest is using SideQuest, a PC desktop app designed to simplify sideloading apps and games ( even beat saber songs on quest ) on Standalone Android Headsets like Oculus Quest and Oculus Go. It supports drag and drop for installing APK files!

Download the latest version of SideQuest here: https://github.com/the-expanse/SideQuest/releases

Once you have installed Lambda1VR you will need to copy the game assets from a legally owned half-life install. Details below.

IMPORTANT NOTE

This is solely an engine port/mod, no game assets are included whatsoever. YOU MUST LEGALLY OWN HALF-LIFE IF YOU WISH TO PLAY IT IN VR USING LAMBDA1VR.

The original half-life can be purchased on Steam: https://store.steampowered.com/app/70/HalfLife/

PLEASE NOTE: Half-life: Source is not compatible.

Copying the Full Game files to your Oculus Quest

Before attempting to start Lambda1VR you need to do the following:

  • Install and start the application once until it shows the menu screen. At this point exit and you will find that a "xash" folder has been created on your headset.
  • Locate the install of half-life on your PC, if installed from Steam then it will be somewhere like C:/Program Files (x86)/Steam/steamApps/common/HalfLife/
  • Copy the content of the "valve" folder to the newly created "xash/valve" folder on the Quest (This will take a long time)
  • (optional) Copy the contents of the valve_hd folder into the valve folder now on your Quest (this gives you some nicer models). If you are a Mac user please read this post, otherwise you will get a crash: https://www.reddit.com/r/Lambda1VR/comments/cls57m/mac_running_halflife_with_hd_assets_on_quest/

Save Games File

Save game files are stored on the internal memory of your quest in the xash/valve folder. This means that if you uninstall/reinstall Lambda1VR all the saves are retained. If you change headset just make sure you copy {quest}/xash/valve/save to the new Quest. Any update will not affect any of your save game files.

Controls

Before you ask... YES!, the crowbar has to be swung in real life to smash stuff! (except in multi-player, you still have to press the trigger I'm afraid).

Left-handed people

Add the following cvar to your config.cfg file: vr_control_scheme "10"

If left handed players wish to mirror the weapons to avoid seeing the gaps in some of the weapon models then set the following cvar in config.cfg: vr_mirror_weapons "1"

Button / Controller Mappings (Primary configuration)

"BackPack"

You can get quick access to the crowbar by reaching behind (so the controller is obscured) and then holding down the grip trigger, this will then auto-switch to the crowbar whilst the grip trigger remains held down. As soon as you release the grip you will switch back to the weapon you had selected previously. This is an excellent way to quickly smash boxes/vents etc without the hassle of cycling through the weapon selector for the crowbar.

Mappings

This is the primary/default button mapping, an alternative configuration that might suit smooth turn locomotion players will be coming soon..

Dominant Hand Controller
Orientation/Position Weapon Orientation/Position
Trigger Fire Primary / Secondary
Grip (Hold) Enable secondary fire
Grip (Quick Click) Reload
Click Thumbstick Use (action)
Thumbstick Left/Right Turn
Thumbstick Up/Down Select Weapon (Fire to accept new weapon)
A / X (depending on dominant hand controller) Crouch*
B / Y (depending on dominant hand controller) Jump

* If you physically crouch in real life, then when the proper duck mechanic is triggered in-game you will see a HUD indicator in the top-right of the view

Off-hand Controller
Thumbstick Move/Strafe
Menu Button Menu
X / A (depending on off-hand controller) Flashlight on/off
Y / B (depending on off-hand controller) Toggle screen mode for cut-scenes (Show multi-player score table in multi-player games)
Orientation/Position Flashlight Orientation/Position
Trigger Hold down to run)
Grip (hold) Weapon Stabilise (hold to remain active)*
Click Thumbstick Enable/Disable Laser Aim

* Weapon stabilisation has a deadzone when the two controllers are less than 15cm from each other to prevent screwing up two-handed aiming with the Glock etc

Command Line Parameters

It is possible to supply command line parameter to the xash engine (and the Lambda1VR wrapper) using the commandline.txt file. The following command line parameters are supported by Lambda1VR (for a list of command line params supported by the Xash3D engine please see the Xash3D documentation):

for example you might use:

xash3d -log --supersampling 1.5 --msaa 2

Which will set super sampling to 1.5 and msaa to 2.

Parameter Values Desription
supersampling 0.1 upwards (default: 1.25) Sets the super (or under) sampling value
msaa 1, 2, 4 (default: 4) Sets the MSAA anti-aliasing value
cpu 1-4 (default: 2) Sets the CPU scaler
gpu 1-4 (default: 3) Sets the GPU scaler

Things to note / FAQs

  • Your screen name (for multi-player) can be set in the config.cfg file
  • FPS counter can be enabled in the Video Options menu
  • Weapon recoil is disabled by default.. if you want a more authentic experience it can be enabled with the cvar: vr_weapon_recoil 1
  • If the player height is messed up. Try reseting the view by holding the home button for 2 seconds. After that go into the main menu and back into the game.
  • After changing files in xash/vale folder, often the device needs to be restarted for the game to use the changed files.

Known Issues

  • Application crashes when you complete the Hazard Course
  • No way to enter text
  • Positional tracking doesn't really work on multi-player servers (unless you run your own server and set the following cvar: sv_accelerate 10000), it sort of works if you hold down the "run" trigger, but it isn't very good
  • Lambda1VR will crash if you haven't copied the half-life game assets to the right location, no warning, just crash
  • Complaint when you exit that the app did not shutdown properly (or crashed or something).. since you are quitting this wasn't considered serious enough to hold up the release, but will be fixed in a future update
  • The edges of some textures are still corrupting when the flashlight shines on them

Future To-Dos

  • Text entry / Virtual Keyboard - Frustratingly the Quest virtual keyboard isn't available through the native SDK :(

Building

You need the following:

  • Android Developer Studio
  • Android SDK API level 24
  • Latest Android Native Development Kit
  • Oculus Mobile SDK 1.24.0
  • The Lambda1VR folder should be below VrSamples in the extracted SDK
  • Create a local.properties file in the root of the extracted Oculus Mobile SDK that contains the ndk.dir and sdk.dir properties for where your SDK/NDK are located (see Gradle documentation regarding this)
  • To build debug you will need a android.debug.keystore file placed in the following folder: oculus_sdk_dir/VrSamples/Lambda1VR/Projects/Android

Alternatively you can use the docker image created by BrainSlugs83 which can be found here: https://github.com/BrainSlugs83/DockerOvrSdk

Credits

I would like to thank the following teams and individual for making this possible:

  • Baggyg - My long-time VR friend whose roles in this have been varied and all helpful, also the creator of excellent websites/artwork/assets for this mod and more recently becoming something of a MilkShape guru
  • The Xash3D team / Uncle Mike
  • GLE4ES without which this wouldn't have worked at all: https://github.com/ptitSeb/gl4es
  • Max Vollmer for their 2017 Half-Life VR mod, of which I used and modified the 6DoF weapons code for this mod, the original code for which can be seen here: https://github.com/maxvollmer/Half-Life-VR
  • The SideQuest team - For making it easy for people to install this
  • https://github.com/formicsapien for the weapon models that were used in the first couple of releases
  • Please go to https://www.lambda1vr.com/modifications.html for a full list of credits for weapon models used in the current version

Notice of Non-Affiliation and Disclaimers

Lambda1VR is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Valve Corporation, or any of its subsidiaries or its affiliates. Lambda1VR is an unofficial port of the Xash3D-FWGS engine, which was originally written by Uncle Mike as a fully compatible open-source GoldSrc engine alternative, more details on that extraordinary project can be found here: https://www.moddb.com/engines/xash3d-engine However this port (Lambda1VR) is not affiliated, associated, authorized, endorsed by, or in any way officially connected with the Xash3D team. This port was developed using the now deprecated Xash3D port found here: https://github.com/FWGS/xash3d

Licensing

Lambda1VR is covered by the GPL 3.0 license which is inherited from the Xash3D-FWGS project. The HLSDK sub-repository and associated works (which include the original 6DoF weapons code by Max Vollmer) are in a separate repository wholly covered with the Valve Corporation Half Life 1 SDK LICENSE (https://github.com/DrBeef/hlsdk-xash3d).

More Repositories

1

QuakeQuest

The first (and only I think!) 6DoF implementation of Quake, using the DarkPlaces Engine for the OpenXR Standalone VR HMDs
C
128
star
2

Doom3Quest

Doom 3 based on a combination of the excellent dhewm3 and d3wasm projects, with multithreaded backend renderering from emileb, OpenGLES MultiView from DrBeef and lots of VR functionality ported by Baggyg from the excellent Fully Possessed PCVR mod
C
97
star
3

Quake2Quest

Quake 2 on the Oculus Quest
C
82
star
4

JKXR

Jedi Knight games on OpenXR devices (Meta Quest, Pico 4, and PCVR)
C
81
star
5

RTCWQuest

Return to Castle Wolfenstein for the Oculus Quest
C
65
star
6

QuakeGVR

Updated QuakeGVR with ArCore *Positional Tracking* and Decoupled 3DOF controller support
C
53
star
7

QuestZDoom

Quest VR Port of the popular LZDoom/GZDoom Engine with full 6DoF
C
52
star
8

JKXR_public

JK XR Public release and source code repository for the Jedi Knight games in VR
C
21
star
9

DoomGVR

Doom for Gear VR
C++
18
star
10

QVR-Daydream

QVR Daydream - Experience the Original Quake in Google Daydream VR (with decoupled aim and Daydream controller support!)
C
7
star
11

HL2VR_d3d9

Half-life 2: VR - d3d9 vr proxy dll
C++
6
star
12

QuakeGearVR

Quake for the Samsung Gear VR
C
5
star
13

QVR

Port of the DarkPlaces Quake for Google Cardboard VR
C
5
star
14

hlsdk-xash3d-opfor

Opposing Force HLSDK for Lambda1VR forked from Xash3D opfor HLSDK branch
C++
5
star
15

OVRServicePatcher

Patcher of the OVRService from Oculus VR to support the 270 degree rotation of the RiftUp
C++
4
star
16

DVR

Doom for Cardboard
C++
4
star
17

HL2-VR-Proxy

Proxy DX9 DLL for OpenVR Direct Mode
C++
3
star
18

RazeXR

OpenXR Build of the Raze engine
C
3
star
19

HapticsService

bHaptics HapticService for use with DrBeef ports
Java
3
star
20

QuakeCardboard

Quake for Google Cardboard
C
2
star
21

DisplayInfoPatcher

Patcher for the Oculus Rift DK1 Display Info (required for RiftUp mod)
C++
2
star
22

WiiMotePosTracker

Positional Tracker for VR headsets that uses two WiiMotes and a wireless sensor bar
C++
1
star