TeamHypersomnia / Hypersomnia

Multiplayer top-down shooter made from scratch in C++. Play in your Browser! https://hypersomnia.io Made in 🇵🇱
https://hypersomnia.io/
GNU Affero General Public License v3.0
1.08k stars 47 forks source link

[Linux] Some bugs #282

Closed Enderteck closed 3 months ago

Enderteck commented 3 months ago

I already wrote all of them in this Steam discussion:

https://steamcommunity.com/app/2660970/discussions/0/4291440317148295160/

Pasted it here if you're lazy:

Setup

Fedora Linux 39

Latest Nvidia drivers

I've only gone through a portion of the tutorial but I found Some issues with the game.

geneotech commented 3 months ago

Hey! Thanks for reporting, indeed I didn't have notifications for Steam forum. Right now it'll be impractical for me to fix the window/fs issues as I don't have a fedora laptop with two screens, just a PC with one monitor. However - a Web port is coming soon, so you should be able to play at least in the browser.

I'll take a look at the french layout, I'll see if I can add additional keycodes for the characters under numbers in French layout. Could you tell me how does using/binding numbers work in other games in that case? Shift is another keybind so you can't use it to bind actual numbers. Does pressing 1,2,3,4 in say CS settings just bind them to &,é,#,{,[, etc?

Enderteck commented 3 months ago

Yes games usually support setting the French number keys symbols.

Some of them d__isplay the English layout (the numbers) while still associated with the symbols but it works.

geneotech commented 3 months ago

Hey there! I deployed an update across all platforms (incl. Steam) - Linux build now uses GLFW instead of my crudely written X Window system implementation, so this should fix literally all of your issues, the weird fullscreen behavior too but especially the French layout handling :) It should now detect number keys as numbers. Thanks again for reporting it, it's a bug that might've prevented an entire demographic from playing the game.

Linux user tip - if like me you've mapped Caps lock to ESC via an X keysym, the game might not recognize it, but there's an option to "remap CAPS LOCK to ESC" in Hypersomnia (Settings->Advanced).

Let me know how the game works for you now!

Enderteck commented 3 months ago

Ok I'll try ! Thx

Enderteck commented 3 months ago

Yeah definitly works now, great. Thx for making awesome Open Source games !

geneotech commented 3 months ago

Glad you like it! :heart: See you on the game server :)

Enderteck commented 3 months ago

Oh I realized the game doesn't run natively under Wayland and setting GLFW_PLATFORM_WAYLAND %command% on Steam does nothing.

Does the GLFW version used not work with wayland ? If it does is there a way to make it run natively ?

Thx for any answers.

geneotech commented 3 months ago

Yes, the default GLFW installation does not come with Wayland support. I'd have to build GLFW manually for it. I'll later try instaling libglfw3-wayland instead of libglfw3 on the Ubuntu builder.

geneotech commented 3 months ago

It appears I'll have to build it manually to support both X11 and Wayland, you can temporarily use Hypersomnia-Steam.AppImage from this run's artifact:

https://github.com/TeamHypersomnia/Hypersomnia/actions/runs/8383186513

Enderteck commented 3 months ago

Ok thanks

geneotech commented 3 months ago

Alright. I managed to build GLFW with both X11 and Wayland support. This build launches on my X11 setup - please see if it correctly runs Wayland natively: https://github.com/TeamHypersomnia/Hypersomnia/actions/runs/8383487739

If it does, I'll deploy it to production. Thank you!

Enderteck commented 3 months ago

Works great for me on Fedora 39, both appimages ! Natively on Wayland, Thanks

geneotech commented 3 months ago

Awesome! Thank you so much for your assistance :) :heart: