Skip to content

A wrapper to allow the Source 2 mini-games in The Lab to work under Proton

License

Notifications You must be signed in to change notification settings

daggintosh/LabRat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LabRat

Set of applications to bridge the gap between Proton's vrclient and vrserver for switching between two different vr applications.

Requires custom proton to be built with IVRApplications_LaunchInternalProcess enabled for win to unix path conversion in vrclient_x64's gen_wrapper.py

How it works

  1. The Lab requests the OpenVR API to launch Robot Repair or Secret Shop, then closes itself.
  2. SteamVR attempts to launch the application with the system's file type handler.
  3. The replacement exe for Robot Repair (vr-rr.exe) is launched instead in the system wine installation.
  4. vr-rr uses the bare minimum set of environment variables and a command to launch the real Robot Repair in VR.

Prerequisites

Rust, mingw-w64-gcc, a system installation of Wine, and Docker (for Proton)

Instructions

  1. Build and install Proton from https://github.com/daggintosh/Proton
  2. Build this repository cargo build --target x86_64-pc-windows-gnu --release
  3. Under TheLab/win64, rename TheLab.exe and TheLab_Data to TheLab-real.exe and TheLab-real_Data, respectively.
  4. Copy TheLab.exe from target/x86_64-pc-windows-gnu/release into here.
  5. Under RobotRepair/bin/win64, rename vr.exe to vr.real.exe
  6. Copy vr-rr.exe to RobotRepair/bin/win64 and rename it to vr.exe.

Known Issues

  • Overlays aren't reset after transitions.
  • Settings from the hub aren't carried over to either Source 2 app.
  • I haven't added SecretShop yet.

About

A wrapper to allow the Source 2 mini-games in The Lab to work under Proton

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages