Fullscreen Trouble?

Something else for Armagetron? Goody!
Post Reply
User avatar
AshitakA
Average Program
Posts: 77
Joined: Thu Jan 17, 2008 3:37 pm

Fullscreen Trouble?

Post by AshitakA »

There was a problem with the fullscreen toggle. It was possible to play in the window size mode, but not in fullscreen.

The solution here was to change two settings:

Ingame menu:
System Setup -> Display Settings -> Screen Mode: Use SDL OpenGL: On

On windows:
Right click on the armagetronad.exe -> properties -> compatibility: disable desktop composition (check)

I hope it will help in the case.
To be or not to be – that is the question:... (William Shakespeare)
User avatar
Plee
On Lightcycle Grid
Posts: 16
Joined: Sat Nov 10, 2012 11:08 am

Re: Fullscreen Trouble?

Post by Plee »

Anybody any idea about how to solve this on a mac?


Armagetron only allows me to toggle once, if i try toggling from window to fullscreen again, my tron crashes. It's annoying af because I can't multitask at all.
Image
Harryclaus
Posts: 1
Joined: Wed Nov 24, 2021 6:49 pm

Re: Fullscreen Trouble?

Post by Harryclaus »

I am also want to know about this.
User avatar
Z-Man
God & Project Admin
Posts: 11614
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Fullscreen Trouble?

Post by Z-Man »

Is it still a problem with the new builds? Most recent ones are
From 0.2.9: https://download.armagetronad.org/blog/ ... pha_z2630/
From 0.4: https://download.armagetronad.org/blog/ ... pha_z5255/
User avatar
Monkey
Match Winner
Posts: 788
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Re: Fullscreen Trouble?

Post by Monkey »

Yes, there is still issues with full screen/window mode toggling. The bug I have (on 0.4 only, 0.2.9 is fine for me) is related to switching between full screen and windowed mode. To change mode, I now have to press the appropriate key several times, or hold it down for a while. It seems quite random as to whether the mode toggles properly or not and it does it for both ways. There is some flickering when pressing the key. This has been the case for approximately several months.

While I'm at it, there is another bug:
Sometimes, when trying to enter a password in the "Authenticate" menu (or after typing "/login Monkey@forums"), the password asterisks don't show and the password can't be entered. Moving the cursor up/down one item and back makes it suddenly work as it should again. This also is random as to when it happens. This bug has been around for a very long time (possibly even years I think).

As usual, any help is appreciated.
Playing since December 2006
User avatar
aP|Nelg
Match Winner
Posts: 622
Joined: Wed Oct 22, 2014 10:22 pm
Contact:

Re: Fullscreen Trouble?

Post by aP|Nelg »

Monkey wrote: Sun Dec 05, 2021 3:57 pm While I'm at it, there is another bug:
Sometimes, when trying to enter a password in the "Authenticate" menu (or after typing "/login Monkey@forums"), the password asterisks don't show and the password can't be entered. Moving the cursor up/down one item and back makes it suddenly work as it should again. This also is random as to when it happens. This bug has been around for a very long time (possibly even years I think).
Coincidentally, this commit indirectly fixes that bug. It's because the login box called a function to set the menu item which did not properly alert the item itself that it has been selected, so it did not know to accept your typing input.
User avatar
Monkey
Match Winner
Posts: 788
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Re: Fullscreen Trouble?

Post by Monkey »

Oh nice, I'll look forward to that not happening any more, thanks for fixing that!
Playing since December 2006
User avatar
Z-Man
God & Project Admin
Posts: 11614
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Fullscreen Trouble?

Post by Z-Man »

Monkey: Your problems likely come from the code changes I made so that the macOS version works more smoothly... we did a lot of extra state switching, and macOS is very, very expliclt and shows a playful animation for every change. So that probably broke something on the real BSD side, I'll get into it sometime. But these changes, in addition to the totally different way we do the macOS builds now, made me hope that at least the Mac side of the problem might have evaporated.
User avatar
Monkey
Match Winner
Posts: 788
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Re: Fullscreen Trouble?

Post by Monkey »

@Z-Man
Thanks for the explanation and I look forward to an eventual fix :)
Playing since December 2006
User avatar
Monkey
Match Winner
Posts: 788
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Re: Fullscreen Trouble?

Post by Monkey »

So, it seems that the original bug of not being able to switch cleanly between full screen and windowed mode on 0.4 has been fixed a long time ago...nice work there to whoever fixed it!

Unfortunately, I have another full screen bug on 0.4 on OpenBSD:
It seems to be related to SYSTEM SETUP -> DISPLAY SETTINGS -> SCREEN MODE -> ADVANCED ->KEEP WINDOW ACTIVE in combination with full screen mode:

My window manager (CWM) can Alt+Tab between programs/apps, similar to on MS Windows. When I Alt+tab from windowed Armagetronad to another program/app or vice versa, it works fine. However, when I Alt+Tab from full screen Armagetronad, it does one of two things, depending on the setting for KEEP WINDOW ACTIVE. These are as follows:

1) KEEP WINDOW ACTIVE: OFF - My screen seems to be locked/crashed in another app, until i press the key to go to windowed mode, which puts me back in Armagetronad windowed mode, as normal. I can then carry on as normal, with Alt+Tab, my mouse, etc.
2) KEEP WINDOW ACTIVE: ON - My screen seems to be locked/crashed in another app. Pressing the key to go to windowed mode appears to have no effect. I can not carry on as normal with Alt+Tab, my mouse, etc. I have to kill the Armagetronad process to get back to normality.

Also note that:
1) SYSTEM SETUP -> DISPLAY SETTINGS -> SCREEN MODE -> ADVANCED -> GRAB MOUSE is set to OFF for all attempts above.
2) This doesn't happen with other games, such as SuperTuxKart etc, so I'm assuming that it's an Armagetronad issue.
3) This is not new, it has been happening for quite some time, I just didn't get round to reporting it.

I hope what I have written makes sense.
Playing since December 2006
User avatar
Z-Man
God & Project Admin
Posts: 11614
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Fullscreen Trouble?

Post by Z-Man »

Monkey wrote: Sat Aug 24, 2024 12:15 am 1) KEEP WINDOW ACTIVE: OFF - My screen seems to be locked/crashed in another app, until i press the key to go to windowed mode, which puts me back in Armagetronad windowed mode, as normal. I can then carry on as normal, with Alt+Tab, my mouse, etc.
I can sort of reproduce that on my VM, but really with cwm only, not xfce; for me, however, clearly the Armagetron fullscreen window sticks around in the background and can be fully controlled by my keyboard input. Maybe for you, too, the difference is just that your other applications are also occupying the entire screen?
The KEEP WINDOW ACTIVE: ON behavior is the same for me as with OFF.

On xfce, the Armagetron window gets minimized if I alt-tab away, and input focus switches to the other app.

Hmm, not sure what to do here, I'll mostly have to look at the source. SDL has various events, we used to actively listen to the one triggered when focus was lost and minimize the window on our own. I don't know what we're doing now and what we are supposed to be doing, I think we stopped the explicit minimization.
User avatar
Lucifer
Project Developer
Posts: 8667
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Re: Fullscreen Trouble?

Post by Lucifer »

Can you tell us if these other games/apps that work fine also use SDL?

I find the behavior you're describing to be normal, but I haven't tried to do what you're doing in like 15 years. I happen to know that fullscreen vs windowed modes has changed in the meantime.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Monkey
Match Winner
Posts: 788
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Re: Fullscreen Trouble?

Post by Monkey »

The other games I have tried do seem to use SDL2, although they use other libraries too for various things
For example, supertuxkart:

- OpenAL (recommended: openal-soft-devel)
- Ogg (libogg-dev)
- Vorbis (libvorbis-dev)
- Freetype (libfreetype6-dev)
- Harfbuzz (libharfbuzz-dev)
- libcurl (libcurl-devel)
- libbluetooth (bluez-devel)
- openssl (openssl-dev)
- libpng (libpng-devel)
- zlib (zlib-devel)
- jpeg (libjpeg-turbo-devel)
- SDL2 (libsdl2-devel)

In this case, looking at the other libs, I'd assume that SDL2 is being used for window/screen switching
Playing since December 2006
User avatar
Lucifer
Project Developer
Posts: 8667
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Re: Fullscreen Trouble?

Post by Lucifer »

It's probably something we're doing with window flags. How those are handled has changed not just in SDL2, but across SDL2 versions. We only use SDL2 for windowing and to get a GL context, and for sound, but that won't affect fullscreen vs windowed.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Monkey
Match Winner
Posts: 788
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Re: Fullscreen Trouble?

Post by Monkey »

I've been playing Chocolate Doom recently and it does the same thing as Arma. It also uses SDL. There may be an issue/bug with SDL then. Strange though how some games do it and others don't.
Playing since December 2006
Post Reply