Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher Not Working Properly: Game Window Resizing Issue #10

Open
magge-faf opened this issue May 7, 2024 · 4 comments
Open

Launcher Not Working Properly: Game Window Resizing Issue #10

magge-faf opened this issue May 7, 2024 · 4 comments

Comments

@magge-faf
Copy link

When attempting to start the game via FAF, the game window gets resized to a very tiny size and appears in the top left corner of the screen. I heard it from several people and can confirm it by my own testing.

@ageekhere
Copy link
Owner

Lets check a few things (make sure you are using 1.0.6.0)
Check what the screen width and height values return
1.after the following code

else
{ ;//manually set monitor resolution size
	gResolutionWidth := 1920 ;2560, 3840 ;//Sets the width resolution, for 1080p use (1920), for 1440p use (2560), for 4k use (3840) or use a custom value
	gResolutionHeight := 1080  ;1440, 2160 ;//Sets the height resolution
}

add the message box to print the screen width and height
MsgBox, width %gResolutionWidth% height %gResolutionHeight%

  1. A manual fix can be In the launcher under settings deselect "Auto set game window size when in windowed mode (Supported Games: SC,FA,FAF,LOUD Default 1920x1080)"
  2. Then under main.ahk find the line
{ ;//manually set monitor resolution size
	gResolutionWidth := 1920 ;2560, 3840 ;//Sets the width resolution, for 1080p use (1920), for 1440p use (2560), for 4k use (3840) or use a custom value
	gResolutionHeight := 1080  ;1440, 2160 ;//Sets the height resolution
}

Change 1920 and 1080 to your screen resolution

My guess is the way i am auto detecting the screen monitor size could not always return the correct value depending on monitor layout.

I will investigate this issue and see if i can find a fix

@ageekhere
Copy link
Owner

ageekhere commented May 8, 2024

Try this as a simple fix
replace

if(gAutoSetMonitorArg = 1)
{
	SysGet, primMon, Monitor ;//Get the current primary monitor that is active
	if(primMonRight != 0 || primMonBottom !="")
		gResolutionWidth := primMonRight ; //set width resolution
	else if(primMonLeft != 0 || primMonBottom !="")
		gResolutionWidth := % primMonLeft
	else 
		gResolutionWidth := %A_ScreenWidth%

	if(primMonBottom != 0 || primMonBottom !="")
		gResolutionHeight := primMonBottom ; //set width resolution
	else if(primMonTop != 0 || primMonBottom !="")
		gResolutionHeight := primMonTop
	else 
		gResolutionHeight := %A_ScreenHeight%
	
	;//if the value is negative change it to positive number
	if(gResolutionWidth < 0)
	{
		gResolutionWidth := (-1 * gResolutionWidth)
	}
	if(gResolutionHeight < 0)
	{
		gResolutionHeight := (-1 * gResolutionHeight)
	}	
}

With

if(gAutoSetMonitorArg = 1)
{
	gResolutionWidth := A_ScreenWidth
	gResolutionHeight := A_ScreenHeight
}

@magge-faf
Copy link
Author

I have replaced the stuff, and unticked the "Auto set game window size", but I have still the same behavior for my 1440p, but it works with 1080p.

I could swear it was working last version, when I tested it for the Borderless-Guide on FAF.

Changing monitor default resolution to make it work is not a suitable solution IMO. Many people using 1440p by default nowadays. Some even 4k.

By my experience, your target audience are very non-tech-savvy people. In the best case, this tool should work out of the box with one or two clicks, because your average user will be overwhelmed when they have to change anything.

You could even pull the default installation paths into the tool automatically for most of the game-paths, so users do not have to do it manually. It adds another layer of potential complication.

@ageekhere
Copy link
Owner

ageekhere commented May 8, 2024

if you re enable Auto set game window size
and replace if(gAutoSetMonitorArg = 1)
with

if(gAutoSetMonitorArg = 1)
{
	gResolutionWidth := A_ScreenWidth
	gResolutionHeight := A_ScreenHeight
}

Does that fix the issue?

"Changing monitor default resolution to make it work is not a suitable solution IMO. Many people using 1440p by default nowadays. Some even 4k."
Yeah it should be auto detecting so users do not need to manually change anything, will see where is bug is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants