FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.77k stars 409 forks source link

Control keys not working, exept ctrl, space, enter and esc #11770

Open IvanBarakuda opened 1 year ago

IvanBarakuda commented 1 year ago

Disclaimers

What happened?

After starting the game the control buttons stopped working. I can only use space, ctrl, enter and esc. That keys working fine in chat. I checked the cache, reinstall the game and the issue still here. Before that I played normally. System: Linux Mint 21 CPU: Intel Core i3-9100 GPU: MSI Radeon RX 480 RAM: 24 gigabytes

Reproduction steps

Start the game as usual

Bug prevalence

Happens every time I play

Version

v1.0.8.0

-

No response

Which operating system did you encounter this bug on?

Linux

Relevant error messages and crash reports

No response

Regalis11 commented 1 year ago

Thank you for the report!

To be clear, you mean none of the keys (like W, A, S, D or E) aren't working anywhere except the chat? I wonder if it could have something to do with your keybinds (for example, some of those keys being accidentally bound to something else, or some conflict between the chat hotkeys and some of those keys)? Have you tried resetting the keybinds? In any case, I'm sorry for the inconvenience!

Udrakan commented 1 year ago

Very occationally these keys stop working for me aswell (default bindings), though I could never figure out what causes it.

IvanBarakuda commented 1 year ago

Thank you for the report!

To be clear, you mean none of the keys (like W, A, S, D or E) aren't working anywhere except the chat? I wonder if it could have something to do with your keybinds (for example, some of those keys being accidentally bound to something else, or some conflict between the chat hotkeys and some of those keys)? Have you tried resetting the keybinds? In any case, I'm sorry for the inconvenience!

I double checked key bindings in settings. Somehow bug fix itself cause now issue is gone. Udrakan says it happens sometimes, maybe it happens to my game as well.

MAH69IK commented 1 year ago

Hello! I have some problem, 1:1. I have Linux and I can only use Space. Other keys, like W, A... - doesn't work (they work only in chat). When I try set keybindings in settings and press any of this keys - I see None instead of pressed key.

This only happens after loading the level. When I run the game and go to the settings from main menu - everything works as it should. But when I load the level, I can no longer move, and a second call to the settings shows None instead of the key pressed.

P. S. I also found 4 some problems in Steam, all in Linux and Mac. Looks like not rare problem. Please help us T_T

MAH69IK commented 1 year ago

I conducted experiments to figure out the error.

I have not yet found the reasons for this error, but here is what I noticed. If english is the default language when starting the game, then keystrokes are processed correctly. Then, when changing the language, everything continues to work.

But if the language at startup is russian, then instead of the keys pressed in the settings, I see "None", and the keys themselves work only in chat, but not in the game. And changing the language to english does not help.

Regalis11 commented 1 year ago

@MAH69IK Thank you for the extra information! We'll give this another test with the language set to Russian and see if we can get to the bottom of the issue. Sorry for the inconvenience!

MAH69IK commented 1 year ago

I found this!

I don’t think that a specific language affects the problem - during the tests I left only english in the system and the problem still appeared.

But I found a key combination that breaks the operation of all the letter keys. And, most importantly, fixing the problem! :tada:

* drum roll *

Alt+Shift+Number!

I must add that the Alt + Shift combination switches the language in my system. I did not test the behavior with another combination to change the language.


Extra detail. I don’t know if this is important, but just in case I’ll mention it. In my system, I have 4 ways to enter numbers. This is a built-in laptop keyboard (where there is also a NumPad block), an external keyboard and a mouse that has 12 side keys corresponding to a row from 1 to =. This combination has an effect in all cases except the use of an external keyboard :man_shrugging: .

Jasontti commented 1 year ago

I can reproduce this and indeed it\s caused by cyrillic keyboard layouts. When game is launched with english layout and switched to russian(legacy) layout everything still works. Issue comes when game is launched with russian layout, movement controls don't work at all. This also happens with japanese(kana) layout.

Tested if it was translation related, but changing language didn't effect anything. Problem lies somewhere what is loaded during startup.

Keyboard input doesn't change between different layouts-

akeycode  30 press
keycode  30 release

фkeycode  30 press
keycode  30 release

チkeycode  30 press
keycode  30 release
billymambo commented 3 weeks ago

I can reproduce this and indeed it\s caused by cyrillic keyboard layouts. When game is launched with english layout and switched to russian(legacy) layout everything still works. Issue comes when game is launched with russian layout, movement controls don't work at all. This also happens with japanese(kana) layout.

Tested if it was translation related, but changing language didn't effect anything. Problem lies somewhere what is loaded during startup.

Keyboard input doesn't change between different layouts-

akeycode  30 press
keycode  30 release

фkeycode  30 press
keycode  30 release

チkeycode  30 press
keycode  30 release

This was very helpful for me as I am using a Greek layout, not Cyrillic, yet different. I alt+shifted back and forth while in game and it was fixed without restarting.