Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, Quad, PeWi), 488 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Automatically Show F11 Panel #434453
12/19/13 01:07
12/19/13 01:07
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline OP
Member
CanadianDavid  Offline OP
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
I don't know if it's a bug in my code, but I notice sometimes that if I do not start the F11 debug panel immediately after starting my game, it will not show up (although I can hear the beep() sound). Is there an easy way to automatically show this panel on startup?

Re: Automatically Show F11 Panel [Re: CanadianDavid] #434466
12/19/13 08:02
12/19/13 08:02
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Open the include folder of your GStudio installation, then open default.c. There you will find def_debug() which is the function in question to show the debug panel.

Your problem may be related to other things, for example when you press Alt+Tab to leave your game, (edit a shader, check your e-mails or whatever) then click your game window again, the engine will think that you are still pressing Alt. As a result, when pressing F11 only the following code will be executed:

Code:
void def_debug() 
{
    beep();
    if(key_alt) 
    { 
        diag_status(); 
        return; 
    }
    ...
}



"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Automatically Show F11 Panel [Re: Superku] #434475
12/19/13 09:16
12/19/13 09:16
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline OP
Member
CanadianDavid  Offline OP
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
You're right, it is due to alt-tabbing out of the window! Pressing alt again restores its functionality. Thanks Superku!


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1