DaffyTaffer Posted January 1, 2011 Report Posted January 1, 2011 In my Windows version, the "tilde" key would put away weapons. Now that I have loaded this on Linux, the "tilde" key will bring the control panel down (I don't know what this is called, it is not the DarkMod control panel, but the "DOOM" control panel where you enter command codes). I couldn't find anywhere to change that action, so I STUPIDLY went into the game controls of DarkMod to try to switch it. I found the "Settings/Control/Weapons" part and saw that "Put Away Weapons" had some kind of entry. I couldn't tell if it was the "tilde" or not, so clicked on the "Put Away Weapons" and hit the "tilde" key. It brought down the DOOM control panel. I was trying to exit out of that and clicked the mouse on "Main Menu." Instead of changing to the Main Menu, it added "mouse1" to the command to put away weapons. (Try going into a fight with that!) So now, the "Put Away Weapons" reads that it is "tilde" or "mouse1." Well, the "tilde" still does not put the weapon away, it pulls down the DOOM control panel for command codes, and when I attempt to attack, I put my weapon away. I was able to get back into the "Settings/Control/Weapons" panel and make the putting away of weapons an "apostrophe" instead (whew!) and that is better, but not as good as the "tilde." Is there a way I can change that? I used the FAQ and found that I needed to disable PULSEAUDIO in order to synchronize my sound, THANK YOU for that hint. I had to make that change for Urban Terror (I have reloaded Linux half a dozen times since then) and I didn't think to do that here, so a big THANKS for including that in the FAQ!!!! I can now hear my own footsteps AS I MAKE THEM! Quote
New Horizon Posted January 1, 2011 Report Posted January 1, 2011 First of all lets fix the issue with the console. While in the console set com_allowConsole to 0. This should correct that issue. Go into the control menu and in the put away weapon slot, you have to hit ESC after you select it...as this clears the slot. Once it has been cleared, you can set ~ as your put away button. Quote
Tels Posted January 2, 2011 Report Posted January 2, 2011 First of all lets fix the issue with the console. While in the console set com_allowConsole to 0. This should correct that issue. Btw, this is fine for normal players, but developers need the console, so this won't help here Go into the control menu and in the put away weapon slot, you have to hit ESC after you select it...as this clears the slot. Once it has been cleared, you can set ~ as your put away button. Probably should add this somewhere on the wiki - have we a general "how to use the menu" article yet? Quote "The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950) "Remember: If the game lets you do it, it's not cheating." -- Xarax
Springheel Posted January 2, 2011 Report Posted January 2, 2011 Btw, this is fine for normal players, but developers need the console, so this won't help here You can still bring up the console with ctrl-shift-tlde. Quote TDM Missions: A Score to Settle * A Reputation to Uphold * A New Job * A Matter of Hours Video Series: Springheel's Modules * Speedbuild Challenge * New Mappers Workshop * Building Traps
Daft Mugi Posted March 17, 2022 Report Posted March 17, 2022 In Linux TDM 2.10/64, the tilde key is opening the console no matter what. The tilde key also puts away the weapon at the same time as opening the console. com_allowConsole is set to 0. This is the first time I've tried TDM, so I don't know if it worked in a previous version. In Wine, tilde works as expected. Is there something I can do to fix this? Thanks! Quote
freyk Posted March 17, 2022 Report Posted March 17, 2022 (edited) Which keyboard layout do you have? (See this site: http://kbd-intl.narod.ru/english/layouts) And which linux distro do you use. Thanks for opening an old topic Edited March 17, 2022 by freyk Quote .
Araneidae Posted March 17, 2022 Report Posted March 17, 2022 I've always had to bind the putting weapon away key to ' instead for this very reason. As freyk says, think this issue has been around for ever. I use the UK keyboard on Fedora. Quote
Daft Mugi Posted March 17, 2022 Report Posted March 17, 2022 Oh, no! Thanks for looking at an old topic again! My keyboard layout is English (US). X11 layout: us. Also, since it's a US keyboard, that key (left of 1-key) outputs a backtick (`) on press and a tilde (~) on SHIFT-press -- which is expected. I'm using Pop!_OS 21.10. I just checked Dhewm3. It does the same thing. com_allowConsole is set to 0, but tilde opens the console. So, maybe it's part of the original Doom 3 source. Quote
Daft Mugi Posted March 17, 2022 Report Posted March 17, 2022 I took a moment to look at the source. My very brief search has me suspect it has something to do with ID_CONSOLE_LOCK. There's a comment "draw the console full screen - this should only ever happen in developer builds". It could be that the Linux release build has the ID_CONSOLE_LOCK variable set incorrectly. Dhewm3: https://github.com/dhewm/dhewm3/blob/ae63021d0060a61374657e507a43fcd12a0d0606/neo/framework/Session.cpp#L2556 TDM: framework/Session.cpp#L2676 Also, there's a comment "If the console's not already down, and we have it turned off, check for ctrl+alt". Dhewm3: https://github.com/dhewm/dhewm3/blob/ae63021d0060a61374657e507a43fcd12a0d0606/neo/framework/Console.cpp#L809 TDM: framework/Console.cpp#L774 Quote
Daft Mugi Posted March 17, 2022 Report Posted March 17, 2022 Welp, I should have kept searching. Yes, it is ID_CONSOLE_LOCK. The Linux build always sets ID_CONSOLE_LOCK to 0 no matter which build it is. TDM: framework/BuildDefines.h#L57~L69 // if enabled, the console won't toggle upon ~, unless you start the binary with +set com_allowConsole 1 // Ctrl+Alt+~ will always toggle the console no matter what #ifndef ID_CONSOLE_LOCK #if defined(_WIN32) || defined(MACOS_X) #ifdef _DEBUG #define ID_CONSOLE_LOCK 0 #else #define ID_CONSOLE_LOCK 1 #endif #else #define ID_CONSOLE_LOCK 0 #endif #endif And of note, Dhewm3 always sets ID_CONSOLE_LOCK to 0 in all builds: https://github.com/dhewm/dhewm3/blob/ae63021d0060a61374657e507a43fcd12a0d0606/neo/framework/BuildDefines.h#L42 1 Quote
Daft Mugi Posted March 17, 2022 Report Posted March 17, 2022 I set ID_CONSOLE_LOCK to 1 in the source and compiled a release build. That fixed it for me. When com_allowConsole is set to 0, tilde works as expected -- tilde puts away weapon and Ctrl+Alt+~ toggles the console. Also, when com_allowConsole is set to 1, tilde toggles the console as expected. 1 Quote
stgatilov Posted March 18, 2022 Report Posted March 18, 2022 13 hours ago, Daft Mugi said: I set ID_CONSOLE_LOCK to 1 in the source and compiled a release build. That fixed it for me. When com_allowConsole is set to 0, tilde works as expected -- tilde puts away weapon and Ctrl+Alt+~ toggles the console. Also, when com_allowConsole is set to 1, tilde toggles the console as expected. Thank you for finding and testing this change! I have committed it at svn rev 9879. Quote
Daft Mugi Posted March 18, 2022 Report Posted March 18, 2022 6 hours ago, stgatilov said: Thank you for finding and testing this change! I have committed it at svn rev 9879. Excellent! Thank you! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.