Jump to content

2.5.6 changes semantics of screen.aspect


derammo

Recommended Posts

In 2.5.5 and before, if you set an aspect ratio in the graphics settings UI, this value is provided in screen.aspect in the MonitorSetup lua scripts.

 

In 2.5.6, screen.aspect is just set based on the size of screen (i.e. width/height) and does not consult the value in the UI.

 

Therefore, monitor setup lua scripts that rely on getting the UI-configured value in this way will start having unexpected aspect ratios, since the meaning of this value was apparently silently changed. I am suggesting this is a bug. It takes me an insane amount of time to test this, so I did not confirm this repeatedly.

Link to comment
Share on other sites

Have you figured a way around this? cause Im having the same issue

 

We just stopped using the value from the UI and hard coded the aspect ratio in the Lua. Somehow you are figuring out the Width and Height of the main viewport in your Lua, so just divide those two to get the aspect ratio, and don't rely on the UI value.

Link to comment
Share on other sites

Same problem 3 monitor in operation together 1920x2616

 

The entry of the screen.aspect in the MonitorSetup.lua has no effect

 

name = _('A-10C');

Description = '24+15+10'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 1,7777777777778

The garfik is compressed to the first monitor

s!Ag2aQ83teSb8meA1UpFwq3gA1j4Djw?e=UytMqe


Edited by Sixpack49DCS
Link to comment
Share on other sites

Same problem 3 monitor in operation together 1920x2616

 

The entry of the screen.aspect in the MonitorSetup.lua has no effect

 

name = _('A-10C');

Description = '24+15+10'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 1,7777777777778

The garfik is compressed to the first monitor

s!Ag2aQ83teSb8meA1UpFwq3gA1j4Djw?e=UytMqe

 

You have a comma in your aspect ratio instead of a decimal point. So your aspect ratio ends up being 1.

 

Test in Lua interpreter:

 

Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> a = 1,5
> print (a)
1
> a = 1.5
> print(a)
1.5
>

Link to comment
Share on other sites

You have a comma in your aspect ratio instead of a decimal point. So your aspect ratio ends up being 1.

 

Test in Lua interpreter:

 

Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> a = 1,5
> print (a)
1
> a = 1.5
> print(a)
1.5
>

 

 

Thanks for the info

It's sometimes the little things white a punk instead of a comma

It's back, the picture is OK

Super

Link to comment
Share on other sites

  • 3 weeks later...

I wanted to play this today but I can not get the aspect ratio to change from this widend view. It used to be perfect, I can't play like this any idea? :cry:

 

res%20help.jpg?psid=1&width=1014&height=888

 

Normally, looks like this, or as three screens, below. :(

 

a115fd57-9264-4789-81e2-71151d3af878.jpg?psid=1&width=1578&height=888

 

IMG_20191104_211918.jpg?psid=1&width=1578&height=888

I'm enjoying the most expensive free game in history. Leave me alone. :joystick::pilotfly:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...