Created
April 1, 2020 10:15
-
-
Save JJL772/00c67dd44ce036780d45fc8d652f39ff to your computer and use it in GitHub Desktop.
Launch script for half life alyx on proton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To use this script: | |
# VCON_PORT=port for vconsole2, or 29000 if not set | |
# PROTON_DIR=path to proton, fails if not set | |
# HLA_PATH=path to half life alyx, fails if not set | |
export STEAM_COMPAT_DATA_PATH=$HOME/proton | |
[[ -z "$VCON_PORT" ]] && VCON_PORT=29000 | |
[[ -z "$HLA_PATH" ]] && echo "HLA_PATH is not set" && exit 1 | |
[[ -z "$PROTON_DIR" ]] && echo "PROTON_DIR is not set" && exit 1 | |
# Limit it to 16gb of ram, so we don't crash | |
ulimit -m 20000000 | |
pushd "$PROTON_DIR" > /dev/null | |
echo "Running game" | |
shift | |
./proton run "$HLA_PATH/game/bin/win64/hlvr.exe" -vconport 29000 -console -dev +sv_cheats +map startup -windowed $@ & | |
./proton run "$HLA_PATH/game/bin/win64/vconsole2.exe" | |
popd > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why do we need this and what is vconsole2.exe?