Project Zomboid

Project Zomboid

Linux: Cant press Space bar in tutorial
Hi there! I heard this is a great game, but alas, I can't play the tutorial on my machine.
Im using ArchLinux (rolling release) with today'supdates.

Main menu works, I click on Totorial, after the "Click to start" prompt, I click and then I'm presented with a dialog that says "(Press Space to continue)".

There I press Space and nothing happens. I pressed every key on my keyboard triggering some other stuff but the dialog does not continue nor go away.

Selecting [legacy40] in the beta options of the game, the Tutorial seems to work fine, at least I can press spacebar and it continues to explain.

I'm open to test anything that can be tested.
Hope this gets fixed.
< >
Showing 1-10 of 10 comments
Beard Jan 30, 2022 @ 7:22am 
Does the space key work in the normal singleplayer game or is it only tutorial specific?
karoush1 Jan 30, 2022 @ 6:08pm 
Originally posted by Beard:
Does the space key work in the normal singleplayer game or is it only tutorial specific?

I think this is somehow related to this issue

https://steamcommunity.com/app/108600/discussions/1/3198115500353175155/

I have a similar problem in which all the character keys are working fine, but keys like Ctrl, Shift, Alt, Esc, and even Space are not being registered by the game. I tried to change the keybindings in the Settings menu, but they are not picked up by the game, hence why the tutorial, and singleplayer games are behaving like that.

Unlike the issue referenced here, my keyboard is QWERTY in the English(US) ANSI standard.

I checked the ~/Zomboid/console.txt file, and it is full of this error message, which I believe is linked to the issue at hand:

LOG : General , 1643593853325> UNKNOWN GLFW KEY CODE: -1 LOG : General , 1643593853392> UNKNOWN GLFW KEY CODE: -1 LOG : General , 1643593853542> UNKNOWN GLFW KEY CODE: -1 LOG : General , 1643593853625> UNKNOWN GLFW KEY CODE: -1 LOG : General , 1643593853825> UNKNOWN GLFW KEY CODE: -1 LOG : General , 1643593853875> UNKNOWN GLFW KEY CODE: -1 LOG : General , 1643593854292> UNKNOWN GLFW KEY CODE: -1 LOG : General , 1643593857496> UNKNOWN GLFW KEY CODE: -1

If I had to guess, that was me pressing Alt, Ctlr, Shift, and other keys repeatedly.

Details about my OS:

OS: Ubuntu 20.04.3 LTS (Focal Fossa)
Desktop: Desktop: Gnome 3.36.9
Kernel: 5.13
Display server: X.Org 1.20.13
Steam installation method: Package Manager(not Flatpak)

Edit: I bought the game today and have no mods installed. Version is Build 41
Last edited by karoush1; Jan 30, 2022 @ 6:13pm
Beard Jan 31, 2022 @ 4:20am 
Generally from our testing, the game works perfectly fine on Ubuntu. Meaning the issue would be something with the actual layout or just a Linux input issue.
karoush1 Jan 31, 2022 @ 6:26am 
Originally posted by Beard:
Generally from our testing, the game works perfectly fine on Ubuntu. Meaning the issue would be something with the actual layout or just a Linux input issue.

Indeed, I tested again after rebooting and the situation is now different.

Yesterday, no matter which layout I tried, the keys mentioned before would not work with any layout I tried, which are English (US), English (US, International) and Japanese (Mozc).

After rebooting, the game now accepts the keys if in English (US, International), but not in English (US). Have not tested in Japanese (Mozc).

It may be worth to note that the first time the game was launched, it was already in English (US, International). I'll try to reboot later and use English (US) first to see if it makes a difference.

Just in case it becomes useful, here are the 2 ~/Zomboid/console.txt files when using different layouts.

All I did in both cases was open Settings > Keybindings > Try to change using the aforementioned keys > Exit game without saving changes

English (US): https://pastebin.com/0CPsq5Eq

English (US, International): https://pastebin.com/MBbBiwCf
Samsagax [GRF] Jan 31, 2022 @ 6:48am 
Seems to be a problem with Steam Runtime in the beta client version. Just retested with the non-beta of Steam client and it works with no issues. Came back to beta client and it would not work again.

Steam Client version that works: 1642451672
Last edited by Samsagax [GRF]; Jan 31, 2022 @ 7:13am
karoush1 Jan 31, 2022 @ 6:56am 
Originally posted by Samsagax:
Seems to be a problem with Steam Runtime in the beta client version. Just retested with the non-beta of Steam client and it works with no issues. Came back to beta client and it would not work again.

Steam Client version that works: 1642451672

Thanks for your feedback. That is certainly not your problem if I'm the one opting-in on beta features. Just in case it becomes relevant, I tested again after reboot and they still don't work. However, if the layout is changed while in-game, it keeps the behavior of the original layout used when booting the game. This means if started using the Enlighs (US, International) layout and changing to English (US) while in-game, the new layout works as intended.

I will open an issue in the Steam Linux Client GitHub instead. Thanks again for taking your time to help!
Samsagax [GRF] Jan 31, 2022 @ 7:12am 
Originally posted by karoush1:
Originally posted by Samsagax:
Seems to be a problem with Steam Runtime in the beta client version. Just retested with the non-beta of Steam client and it works with no issues. Came back to beta client and it would not work again.

Steam Client version that works: 1642451672

Thanks for your feedback. That is certainly not your problem if I'm the one opting-in on beta features. Just in case it becomes relevant, I tested again after reboot and they still don't work. However, if the layout is changed while in-game, it keeps the behavior of the original layout used when booting the game. This means if started using the Enlighs (US, International) layout and changing to English (US) while in-game, the new layout works as intended.

I will open an issue in the Steam Linux Client GitHub instead. Thanks again for taking your time to help!


Scratch that.

Seems not to be related to the beta client, but with the keyboard layout. If I start the game with US layout, it works fine in beta or in stable Steam Client. But If I start the game in ES keyboard layout then it will not work.

Starting with ES layout then changing the layout back to US while in game does not work.
Starting with US layout an then changing it will make it stop working.

I change layouts all the time so this might be a problem.
karoush1 Jan 31, 2022 @ 7:25am 
I figured out something! It is related to the layout order you assigned in "Region & Language" in Ubuntu 20.04.3

More specifically, the game didn't previously work for me when using English (US) because the first layout given was English (US, International). Please refer to the first image in the link below.

When I changed the order, the game now does not recognize when using English (US, Int), but it does work with English (US) now.

This might or might not be related to the Steam Runtime used in the beta client, but this behavior now seems consistent between me and Samsagax.

Images: https://imgur.com/a/RS0k5LI
5345435436 Aug 29, 2024 @ 11:45am 
For me, on Ubuntu 22.04, the keyboard layout "English (US, intl. with dead keys)" gave me the same space bar issue, but when selecting "English (intl. with AltGr dead keys)" the space bar issue does not occur.

It can be changed on Ubuntu 22.04 in Settings, Keyboard. As mentioned by @karoush1, make sure to drag the desired keyboard layout to the top, that is the one that Ubuntu will use. Then restart the game. No need to restart PC.

Thanks @karoush1 for reporting your fix, I would never have guessed that.
karoush1 Aug 29, 2024 @ 8:53pm 
Hi @5345435436,

I'm glad this information has helped someone else! I don't even remember what I did to figure this out, but I'm glad I did.

Enjoy your certain deaths in Project Zomboid.

Kind regards.
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Jan 30, 2022 @ 5:40am
Posts: 10