Jump to content
System downtime for updates - Sunday 13 July 2025 ×
The Dark Mod Forums

Recommended Posts

Posted

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!

Posted

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.

Posted

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?

"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

Posted
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.

  • 11 years later...
Posted

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!

Posted

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.

Posted

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

 

Posted

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

  • Thanks 1
Posted

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.

  • Like 1
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...