I just came back to this game after not playing for a few years.
Since then I moved to Linux.
Installation went flawless (just copied from an old machine) except that now steam is a requirement?!
I got the retail version from ages ago.
Also let me rant real quick that the nicely colored name from my config isn’t being used anymore.
But I get it, you couldn’t properly ban people otherwise.
Either way… It seems that you re-implemented the in-game console handling.
(IIRC in older codx versions the enable console option was still present in the game settings.)
So here’s the problem: The console can be opened using Shift + the key left to 1 on the keyboard.
But cannot be closed. This is on QWERTZ layout.
I noticed that when I rebind toggleconsole in the config and use the new key instead, Shift or not, then the game prints something like “Unknown command toggleconsole” (translated; non-english installation).
I also notice that I cannot type ~ either into the console or chat (AltGr + + on QWERTZ, which is ] on QWERTY I think) - it’s silently ignored - which suggests to me that opening/closing have inconsistent logic and that the latter is implemented incorrectly.
Alternatively this could have something to do with ^ being a dead key on QWERTZ (both on Windows and Linux). The game has always been wonky about it but additionally holding Ctrl worked around the issues in the official patches as well as older codx versions.
I’ve tried various combinations of Shift/AltGr/^/+, to no avail. I even tried remapping my keyboard using map2 but it seems that I cannot fix it on my end.
My current workaround is to /reconnect after accessing the console. This closes it successfully.
Is the code public somewhere? I’m willing to to debug and submit a fix.
I just got recently a Steam Deck (running SteamOS) and I have exactly the same issue. I think this problem is related to Wine/Proton because on my Windows System CoD4X does not have this weird problem. I am also using QWERTZ keyboard. I had some trouble with installing CoD4X on my Steam Deck because there is just a install.bat, maybe I can provide a simple install.sh which does the same copy tasks.
Yes, that’s the case. I use lutris (wine/proton/dxvk/whatnot) to run the game and rigged a run script to also start steam at the same time.
Unfortunately, but this isn’t what this post is about, steam starting up, even with a bunch of -silent etc arguments causes trouble on startup (repeated focus loss / minimizing the game) and then the intrusive thing stays in the systray until i manually quit it. Had no success to get it automatically terminated but I might mess with this some more in the future.
I also use the CD version, with a purchased key. (Copied the files and registry entries from the windows installation)
Driver issue is a possibility I guess. Keyboard mapping is correct though - I can use all the keys in other applications and they do what they are supposed to.
My bet is on dead key behavior difference between windows and linux currently.
I haven’t gotten around to this yet but I’ll try downgrade to the old cod4x version I had on windows and see if it makes a difference - next time I decide to boot the thing.
What cod4x version have you tested with on windows? The same one (21.1) that has this issue on linux?
I didn’t have any trouble installling. You can run .bat/.cmd files in wine same as .exe files: