NelloKudo / osu-winello

osu! stable installer for Linux with patched Proton-osu and other nice features 8)
GNU General Public License v3.0
344 stars 16 forks source link

Build Wine 9 with wayland support #61

Closed Kodehawa closed 5 months ago

Kodehawa commented 10 months ago

Using the regedit method to enable wayland on Wine 9 does not work. Could you build it with the option --with-wayland, please?

NelloKudo commented 10 months ago

I guess I could try, not sure how well the game’s gonna run under Wayland tho. Making a build for you later, if that works I guess I’ll update the script as well once 9.0 drops. 🥳

NelloKudo commented 10 months ago

https://www.dropbox.com/scl/fi/kk0sn6y6s2r99yxc90r71/wine-osu-tkg-9.0-rc3-x86_64.tar.xz?rlkey=wq7cf2amf3fs3sbe5ib92c3sz&dl=0

Here's 9.0-rc3 with Staging and TKG patches + Wayland enabled. Let me know if it works well or if you need help installing it 🙏🏻

Kodehawa commented 10 months ago

https://www.dropbox.com/scl/fi/kk0sn6y6s2r99yxc90r71/wine-osu-tkg-9.0-rc3-x86_64.tar.xz?rlkey=wq7cf2amf3fs3sbe5ib92c3sz&dl=0

Here's 9.0-rc3 with Staging and TKG patches + Wayland enabled. Let me know if it works well or if you need help installing it 🙏🏻

Hello! I imagine I have to unpack it somewhere, where would that be?

Also, happy new year :tada:

NelloKudo commented 10 months ago

Happy new year for you as well!! 🥳

Anyways yep, it goes as far as replacing the wine-osu folder in ~/.local/share/osuconfig with the one in the package. Quick way to do that:

rm -rf ~/.local/share/osuconfig/wine-osu
wget -O wine-osu-tkg-9.0-rc3-x86_64.tar.xz https://www.dropbox.com/scl/fi/kk0sn6y6s2r99yxc90r71/wine-osu-tkg-9.0-rc3-x86_64.tar.xz?rlkey=wq7cf2amf3fs3sbe5ib92c3sz&dl=0
tar -xf wine-osu-tkg-9.0-rc3-x86_64.tar.xz
mv wine-osu ~/.local/share/osuconfig

EDIT: Looks like game's not working (at least for me) when using DISPLAY= osu-wine. Idk if it's build-related or game-related but at least it's something to look into for the future 👍🏻

Kodehawa commented 10 months ago

imagen

Yeah seems to be broken. Tried using Vulkan too (force OpenGL-to-Vulkan, aka zink, which works fine in osu) and it didn't work either. Oh well. I wonder if it'll work better as they add more stuff to it.

Seems like the issue boils down to it not supporting OpenGL -- I thought the wine wayland driver supported it? Not sure if it's been upstreamed yet though...

0150:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
0150:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 0B68A8A0.
0150:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
0150:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 0B68A8A0.
SrIzan10 commented 6 months ago

can you send the build again please?

NelloKudo commented 6 months ago

can you send the build again please?

The builds the script uses by default are already built with Wayland (up to Wine 9.0). Default OpenGL doesn’t launch the game, using compatibility mode might actually get it working.

SrIzan10 commented 6 months ago

So if I understood correctly, latest wine-builder builds should have wayland support right?

NelloKudo commented 6 months ago

So if I understood correctly, latest wine-builder builds should have wayland support right?

They should as they were compiled using --with-wayland, but I haven’t bothered checking since the OpenGL Wayland driver is not working properly yet. I’d say give using dxvk + compatibility mode a try!