derammo Posted February 21, 2020 Share Posted February 21, 2020 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 More sharing options...
yeldraw1 Posted February 21, 2020 Share Posted February 21, 2020 aspect Have you figured a way around this? cause Im having the same issue Link to comment Share on other sites More sharing options...
derammo Posted February 21, 2020 Author Share Posted February 21, 2020 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 More sharing options...
Sixpack49DCS Posted February 22, 2020 Share Posted February 22, 2020 (edited) 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 Edited February 22, 2020 by Sixpack49DCS Link to comment Share on other sites More sharing options...
Yofich Posted February 22, 2020 Share Posted February 22, 2020 same for me Link to comment Share on other sites More sharing options...
derammo Posted February 22, 2020 Author Share Posted February 22, 2020 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 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 More sharing options...
Sixpack49DCS Posted February 22, 2020 Share Posted February 22, 2020 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 More sharing options...
derammo Posted March 14, 2020 Author Share Posted March 14, 2020 Dear mods: could you please classify this as a BUG / NOT A BUG / FIXED ? Link to comment Share on other sites More sharing options...
imaner76 Posted March 19, 2020 Share Posted March 19, 2020 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: Normally, looks like this, or as three screens, below. :( I'm enjoying the most expensive free game in history. Leave me alone. :joystick::pilotfly: Link to comment Share on other sites More sharing options...
imaner76 Posted March 19, 2020 Share Posted March 19, 2020 I'm enjoying the most expensive free game in history. Leave me alone. :joystick::pilotfly: Link to comment Share on other sites More sharing options...
derammo Posted March 19, 2020 Author Share Posted March 19, 2020 ok, but that doesn't change the bug I am reporting. screen.aspect is no longer available in the Lua file. Of course it is easy to work around, but it's a bug if devs just randomly remove stuff from an API :) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now