Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ubel on Thu 09/12/2004 16:31:23

Title: How to disable the Debug Console?
Post by: Ubel on Thu 09/12/2004 16:31:23
Does anyone know how to disable the Debug Console wich comes when you push the § button (next to 1 button)?
I'd also want to disable the Alt+X abort key.
Title: Re: How to disable the Debug Console?
Post by: Rui 'Trovatore' Pires on Thu 09/12/2004 16:35:34
You can disable the debug console simply by disabling debug mode. :P

And you can't disable the abort key, but you can remap it.
Quotegame.abort_key  -- The keycode for Abort Game, which allows the you to quit even if your script is stuck. Default 324 (Alt+X). 

AT any rate, disabling the abort key completely wouldn't be a good idea anyway. If you do remap it, tell the player where it is.
Title: Re: How to disable the Debug Console?
Post by: Pumaman on Thu 09/12/2004 17:43:34
Yes, when you un-check the Debug Mode option in your game settings, the debug console becomes disabled -- so you'd do this before compiling the final version of your game.

You can disable the abort key by doing:
game.abort_key = -1;

BUT, as Redrum says I wouldn't recommend it. Just in case ones of your scripts locks up, allowing the player to exit with Alt+X can be invaluable in tracking down the problem.
Title: Re: How to disable the Debug Console?
Post by: Radiant on Thu 09/12/2004 20:08:45
Isn't it true that Alt+F4 works as an additional abort key in any case?
Title: Re: How to disable the Debug Console?
Post by: Ubel on Thu 09/12/2004 20:31:06
Thanks guys!Ã,  :)
That really helped.
Title: Re: How to disable the Debug Console?
Post by: Pumaman on Fri 10/12/2004 00:58:58
Quote from: Radiant on Thu 09/12/2004 20:08:45
Isn't it true that Alt+F4 works as an additional abort key in any case?

Well, Alt+F4 will abort the game, but it won't display the current script line number. The Alt+X feature is designed to allow you to find where the problem is, by allowing the player to report some useful information.
Title: Re: How to disable the Debug Console?
Post by: Gilbert on Fri 10/12/2004 01:30:16
And Alt-F4 won't work with DOS compiles I think, don't know about the Linux port though.
Title: Re: How to disable the Debug Console?
Post by: Radiant on Fri 10/12/2004 23:25:32
Good point. I just use Alt-F4 a lot because it doesn't give me a dialog box to close :)
For linux, use Kill -9
Title: Re: How to disable the Debug Console?
Post by: EvilTypeGuy on Tue 04/01/2005 21:05:51
Quote from: Radiant on Fri 10/12/2004 23:25:32
Good point. I just use Alt-F4 a lot because it doesn't give me a dialog box to close :)
For linux, use Kill -9


I'm pretty sure Alt + F4 works in the Linux port :)

Alt + X definitely does, I use that all the time.