Jump to content
The Dark Mod Forums

My "tilde" brings down the control panel


DaffyTaffer

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 11 years later...

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...