How to disable the Debug Console?

Started by Ubel, Thu 09/12/2004 16:31:23

Previous topic - Next topic

Ubel

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.

Rui 'Trovatore' Pires

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.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

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.

Radiant

Isn't it true that Alt+F4 works as an additional abort key in any case?

Ubel

Thanks guys!Ã,  :)
That really helped.

Pumaman

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.

Gilbert

And Alt-F4 won't work with DOS compiles I think, don't know about the Linux port though.

Radiant

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

EvilTypeGuy

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.

SMF spam blocked by CleanTalk