gb2dev / HLA-NoVR

NoVR mod for Half-Life: Alyx
GNU General Public License v3.0
785 stars 39 forks source link

Main menu doesn't work on Linux #140

Closed sbourdeauducq closed 11 months ago

sbourdeauducq commented 1 year ago

The main menu cannot be opened when applying this mod to the Linux version, which among other things makes it impossible to start a game. (I assume this is a Linux-specific issue)

Quick work around if you just want to play:

diff --git a/game/hlvr/scripts/vscripts/novr.lua b/game/hlvr/scripts/vscripts/novr.lua
index ffa7fa8..d6d3907 100644
--- a/game/hlvr/scripts/vscripts/novr.lua
+++ b/game/hlvr/scripts/vscripts/novr.lua
@@ -526,6 +526,7 @@ if GlobalSys:CommandLineCheck("-novr") then
                 ent = SpawnEntityFromTableSynchronous("game_text", {["effect"]=2, ["spawnflags"]=1, ["color"]="140 140 140", ["color2"]="0 0 0", ["fadein"]=0, ["fadeout"]=0.15, ["fxtime"]=0.25, ["holdtime"]=10, ["x"]=-1, ["y"]=2})
                 DoEntFireByInstanceHandle(ent, "SetText", "NoVR by GB_2 Development Team", 0, nil, nil)
                 DoEntFireByInstanceHandle(ent, "Display", "", 0, nil, nil)
+                SendToConsole("map a1_intro_world")
             else
                 GoToMainMenu()
             end
Hydranet commented 1 year ago

Quick work around if you just want to play:

Thanks!

That works!

The menu doesn't work when launching the game through Proton and also when you launch it with the Steam Linux Runtime, when I say it doesn't work you see the menu but it's constantly flickering and you can't click on any of the menu items to start the game). It would be great if the menu could be fixed for Linux because I can't save or load a game and currently quick saves and quick loads are for your current session and I haven't reached an auto-save checkpoint yet.

Hydranet commented 1 year ago

I talked to one of the devs on Discord. They said to remove -vsync launch option, I still had the issue after that with the Linux runtime, I switched to a Proton version and then the menu worked as expected and the menu wasn't flickering either.

OzFalcon commented 1 year ago

I talked to one of the devs on Discord. They said to remove -vsync launch option, I still had the issue after that with the Linux runtime, I switched to a Proton version and then the menu worked as expected and the menu wasn't flickering either.

Adding to this, I tried using -novsync option and it accepted the option and now HLA was rendering 120fps (with Vulcan). While it did make the menu more visible and somewhat usable, The same problem still exists.

Initially I just tried proton and the windows version did display the menu correctly @ 120fps with Vulcan.

To get the native Linux build going For some reason HLA kept starting in window mode, Fixed with the fullscreen option.

Launch options: -novr -novsync -novid -w 1920 -h 1080 -fullscreen

Main Menu: Pressing V will make you move forward once..... Pressing M will reload the menu (Do this if the menu does not appear) Pressing ESC does something.....

I usually have to press M a handful of times before I can get the menu working enough to start a game. If needed, Switch to desktop and close HLA. And put a small blob of blu-tack to show your centre screen.

To me, Native Linux HLA feels much smoother to play.

gb2dev commented 11 months ago

Try the new launcher Linux version