Game Development Community

Another Tilde Issue... Need ideas...

by Sasuga · in Technical Issues · 07/26/2009 (8:18 am) · 6 replies

=-=-=-=-=-=-=-=-=
WORKING SOLUTION:
=-=-=-=-=-=-=-=-=
Comment Out The Following Line From PlayGUI.cs:
$enableDirectInput = "1";


=-=-=-=-=-=-=-=-=
ORIGINAL PROBLEM:
=-=-=-=-=-=-=-=-=
I'm having problems with my Tilde not opening the console after closing the World Editor. In trying to find a solution to my problem I have found other people having problems with their console not opening or tilde not working for them. I'm seeing lots of people having problems, but no one posting solutions... Also, my problem is slightly different than the ones I've found posted already.

My Tilde Problem:
Tilde no longer opens the console after closing the World Builder/Editor.

I can replicate my Tilde problem every time:
1. Start Torque with main.cs file set to open tutorial.base OR starter.fps (doesn't matter which one).
2. I press Tilde (or not, but I usually do just to check that it works) and the console _opens_.
3. I press click on the World Editor and F World or [SomeOther].mis loads.
4. I press Tilde and see that the console still opens and closes with Tilde.
5. I press F11 to close the World Editor.
6. I press Tilde and the console does NOT open.
6 1/2 (I press Tilde a bunch of times like a maniac and console does not open.)
7. I exit the mission and return to the opening GUI.
8. I press Tilde and the console still does not open.

=-=-=-=-=

Interesting Discoveries (I've found trying to fix this issue):

* Setting another key binding to load the console does open the console when Tilde won't. (Note: I did not un-bind Tilde; I simply added a new global binding to open the console with, and that binding works.)

* Tilde still closes the console even when Tilde can't open the console. (Console being opened by 'other' binding.)

ALT+Tilde works when Tilde works but doesn't work when Tilde alone doesn't work. (After pressing F11 or otherwise closing the World Editor.)

When Tilde works I don't get any keyboard errors, but after Tilde stops working I get a keyboard error in the console: "keyboard0 input device unacquired". (Note: I am able to open the console with the alternative binding to see this error.)

=-=-=-=
And that's it so far. I've searched these forums and Google and have not found any causes or solutions yet. I have found people claiming to get the same error in Tribes 2 and Marble Blast, and in one the person said they fixed their error by remapping. I'm only getting the error when using the secondary key that I've setup to open the console, and the key binding is working!

Thoughts, ideas?

I'm trying to find a solution to this. It's a minor issue now since I can get into the console by a different key (that I've setup) but it's still very annoying on at least two different levels. First: I hate when things don't work correctly. Second: I hate when I don't understand why something isn't working correctly when everything seems to indicate that is should be working. (Or in other words: I like to know WHY things aren't working when they should be.)

=-=-=-=
EDIT: Update:

I've since discovered that your not supposed to bind two commands to separate controls. I'm told that Torque doesn't support it. If that's true, I find it odd that both commands do indeed work at the same time, even if later only the second command works.

In any case, I would like to clarify that I only added the second command to open the console after I began having problems with the Tilde (which by the way has been a problem since I first installed Torque).

Also, I have uninstalled Torque; Deleted everything Torque related on my machine; And then reinstalled Torque and the problem still persists for me. I find this issue most baffling because all of my classmates and instructor (I'm in a game programming class) don't seem to have this problem.

As mentioned, it's a minor annoyance since I can remap the toggleConsole and do what I need to do, but it is an annoyance.

=-=-=-=
EDIT: Update:

TGE 1.5.2

#1
07/27/2009 (8:17 am)
Does this happen with all versions of Torque or only a specific engine/engine version?
#2
07/27/2009 (5:55 pm)
I apologize for not putting my version in the original post. Please forgive my newbness.

I only have one version of Torque. TGE 1.5.2

This is my first time ever hearing of Torque or using it. (Although I have heard of Tribes 1&2 and love(d) Dynamix games. I had never heard of GarageGames or Torque until this class that I'm in now.)

I appreciate your interest in helping me.
#3
08/18/2009 (11:19 am)
A new IRC friend recommended that I comment out $enableDirectInput = "1"; from my playGUI.cs

The Tilde problem is solved for me. Now I'm exploring why $enableDirectInput = "1"; is used and why it breaks the tilde. In any case, it seems fixed now. Thanks Midhir!
#4
08/18/2009 (11:25 am)
Good to know. I have never been able to replicate this problem when users have it. Thanks for that!
#5
08/18/2009 (12:20 pm)
Weird. I never could reproduce this either... bookmarking this one to point people here the next time I see it mentioned.
#6
08/20/2009 (8:12 pm)
I've done some further testing. It definitely seems to be that line. It happens in the base-demo-games (starter.fps, etc.) In each one, I simply go in and comment out that line and the Tilde works just fine after that.

I haven't dove into the game engine source code yet. I've been too preoccupied to get that deep into a (semi-)solved problem.