Gamestudio Links
Zorro Links
Newest Posts
Trouble getting data with IB Gateway
by richs. 07/16/20 13:04
Futures with IB
by jbhunter. 07/16/20 01:08
A9
by 3run. 07/15/20 19:07
Maximum Value
by AndrewAMD. 07/15/20 12:50
What are you working on?
by NeoDumont. 07/14/20 23:06
Engine window and DPI scaling
by Dooley. 07/14/20 20:27
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
8 registered members (3run, AndrewAMD, Quad, richs, kvm, onoff, Michael_Schwarz, 20BN), 383 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Estripa, nowater, dasanc, DavidFdez, TraderKevin
18478 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Issues with Full Screen #479971
05/10/20 15:39
05/10/20 15:39
Joined: May 2005
Posts: 747
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 747
Chicago, IL
I have a few players who are unable to get my game to run in full screen.

It should be detecting the current resolution of the monitor, and automatically setting that as the game's resolution, then switching to full screen mode.

It works on my system, and every other system I've tested it on. Also, the majority of other players have no problems.

I guess the first question I have is whether anyone else has encountered a similar problem, and if there are known causes and solutions for this kind of thing?

Re: Issues with Full Screen [Re: Dooley] #479974
05/10/20 20:29
05/10/20 20:29
Joined: Feb 2013
Posts: 122
Maysville, Ga
Evo Offline
Member
Evo  Offline
Member

Joined: Feb 2013
Posts: 122
Maysville, Ga
I'm not too sure what the issue is, but after you check the monitor resolution with sys_metrics(0) and sys_metrics(1), run some code to see if it's a compatible size for 3dgamestudio to render it into fullscreen. It if doesn't match one of those modes, set it to fullscreen window mode instead by making it a borderless window.

Code
video_set( game_resolution_x, game_resolution_y, 0, 2 );
video_window( vector(0.1,0.1,0), vector(sys_metrics(0),sys_metrics(1),0), 1, "Fullscreen Window");

Not sure if this helps, but based on what you've described, that's the only idea I have as to why fullscreen won't work for certain users. You could also try setting screen_size.x and screen_size.y to see if it corrects the issue.

Re: Issues with Full Screen [Re: Dooley] #479975
05/11/20 05:10
05/11/20 05:10
Joined: May 2005
Posts: 747
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 747
Chicago, IL
Thanks,
Yeah, it's hard to know what's happening exactly. What you described is basically what I'm doing. I recommended using the full screen resolution with windowed mode (the game has no border by default) but they have not responded to that suggestion yet.

I'm wondering if there are certain monitors or configurations out there that might prevent it from going to fullscreen...

Re: Issues with Full Screen [Re: Dooley] #480255
05/28/20 15:53
05/28/20 15:53
Joined: May 2005
Posts: 747
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 747
Chicago, IL
Ah! I think I may have it. From the manual: "When video_set is called several times within the same frame, it can fail when the OS is busy with rebuilding the window while it is resized. In this case, video_set returns 0. Just call it again in the next frame with the same parameters."

It's like I can't even understand the manual. I swear I've read this page 10 times, and I never saw this!

Re: Issues with Full Screen [Re: Dooley] #480257
05/28/20 17:33
05/28/20 17:33
Joined: May 2009
Posts: 5,276
Caucasus
3run Online
Senior Expert
3run  Online
Senior Expert

Joined: May 2009
Posts: 5,276
Caucasus
Originally Posted by Dooley
It's like I can't even understand the manual. I swear I've read this page 10 times, and I never saw this!
That's how I feel too when reading manual grin


Looking for free stuff?? Take a look here: http://badcom.at.ua

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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