this post was submitted on 05 Oct 2023
32 points (100.0% liked)

Linux Gaming

15797 readers
25 users here now

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

founded 4 years ago
MODERATORS
 

The open gl renderer starts, but i cant play the game itself. Rendering the vulkan shaders, rebooting and using proton experimental(i use the native version) didnt worked.

top 21 comments
sorted by: hot top controversial new old
[–] xinayder@infosec.pub 12 points 1 year ago* (last edited 1 year ago) (3 children)

There's a GitHub issue tracking this bug. It seems like SDL3 was finally released and Valve "forgot" to compile SDL3 with Wayland support.

If you're using Wayland, you can add a startup parameter to force the game to use X11 and it will work.

This issue is also affecting Dota 2.

[–] tal@lemmy.today 2 points 1 year ago* (last edited 1 year ago) (1 children)

If they dynamically-linked it and shipped the .so with the game (there will be a libSDL in the game directory somewhere), you can probably just save a copy of their SDL build and replace the original with a working copy if you're desperate to play ASAP.

If they statically-linked it, you're out of luck until they fix it, if you're not willing to do X11.

Honestly, what I don't get is why SDL would not do this automatically. I'd think that it'd just fall back until it hits a protocol that it can do. Historically, you shouldn't need to force SDL_VIDEODRIVER, because it'll use the first one available in your environment. Doesn't matter whether it's compiled with support for some environment you aren't using or not.

Maybe it was compiled with support and there's just some problem with said support.

EDIT: Ah, looks like they got it now. Apparently it's a bug in SDL, according to the issue you linked to, and they're pushing a patch for it.

[–] ugo@feddit.it 2 points 1 year ago (1 children)

SDL provides a way to override the lib even if it’s statically linked https://github.com/libsdl-org/SDL/blob/main/docs/README-dynapi.md

[–] tal@lemmy.today 2 points 1 year ago

Oh, nifty, thanks.

[–] Zamundaaa@discuss.tchncs.de 1 points 1 year ago

and Valve "forgot" to compile SDL3 with Wayland support

No, the problem is the opposite, that it has Wayland support enabled by default. Source 2 doesn't support it yet though, so it crashes.

[–] cows_are_underrated@feddit.de 1 points 1 year ago (1 children)
[–] xinayder@infosec.pub 1 points 1 year ago* (last edited 1 year ago) (1 children)

Did you use SDL_VIDEODRIVER or SDL_VIDEO_DRIVER? The former one is the old parameter and the latter works. I am using it right now on a Wayland session.

[–] cows_are_underrated@feddit.de 0 points 1 year ago

Both don't work

[–] ilikenoodlez@lemmy.ml 5 points 1 year ago (1 children)

Same issue switched to x11 and it worked fine. Even before it stopped launching it ran like shit on Wayland from launch. Real disappointing coming from Valve. If they can't properly support native linux support who can.

[–] cows_are_underrated@feddit.de 0 points 1 year ago

Doesnt work

[–] kugmo@sh.itjust.works 3 points 1 year ago* (last edited 1 year ago) (1 children)

SDL_VIDEO_DRIVER=x11 %command% -vulkan or WAYLAND_DISPLAY= %command% -vulkan

Also I haven't bothered checking, do you still need to have -vulkan for CS2 to use Vulkan? Does Source 2 even have OpenGL on Linux?

[–] cows_are_underrated@feddit.de 0 points 1 year ago

both dont work

[–] Hazrod@jlai.lu 2 points 1 year ago

It doesn't work for me either. Gnome reports a crash, and that's it, I don't know much more...

[–] Olissipo@programming.dev 1 points 1 year ago* (last edited 1 year ago)

May be a coincidence, but it stopped launching for me too. Worked Monday and Tuesday, yesterday I didn't try to play, today it didn't work.

Tried:

  • running "verify integrity of game files"
  • forcing Proton,
  • clearing shader cache
  • attempted various launch options, like vulkan, fullscreen, and windowed
  • update all flatpaks (since I installed steam through flatpak)
  • reboot
[–] pelotron@midwest.social 1 points 1 year ago (1 children)

Not sure if it's coincidental timing, but I installed the Nvidia 535 driver at the same time as this update and was having the same sounding issue. I backed down to 525 as I have many times before and the game worked again. (I don't know what it is but the 535 driver hates my PC.)

[–] cows_are_underrated@feddit.de 0 points 1 year ago

I use AMD so that isnt the issue

[–] jonno@discuss.tchncs.de 1 points 1 year ago (1 children)

Try playing with -vulkan. Works on my side here

[–] cows_are_underrated@feddit.de 2 points 1 year ago (1 children)

doesnt work. Nothing changed

[–] jonno@discuss.tchncs.de 1 points 1 year ago* (last edited 1 year ago)

Okay, so it stopped working for me as well, but only when on gnome desktop. It’s running natively on budgie desktop. Maybe a wayland issue?

[–] Fluid@aussie.zone 0 points 1 year ago (1 children)

Does it work when you let it pick the proton version instead? I had the same issue when trying to force it to use proton experimental.

[–] cows_are_underrated@feddit.de 1 points 1 year ago

doesnt work. Even the open gl renderer doesnt open