St3v3f Posted March 18, 2016 Posted March 18, 2016 So I have just started using a second screen for exporting MFDs etc. My main screen has a resolution of 1920x1080, the new screen comes with 1440x900 and is aligned on the right side in windows. My MonitorSetup.lua for the Huey looks contains just the main screen: Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1920 / 1080; } However there are several things being displayed on the 2nd screen which shouldn't be, namely the autopilot and weapons display, crew status, cargo camera and cargo indicator. Now the thing is: How do I get those back on the main screen? I've searched the forums and found out that I need to change the init.luas, but I can't figure out what to change and what values to use. Can somebody please help me? I am wondering why this is even necessary. This isn't an uncommon setup, so why do you need to edit configuration files instead of the module figuring this out by itself? Any help is appreciated:helpsmilie: aka: Baron [sIGPIC][/sIGPIC]
hansangb Posted March 18, 2016 Posted March 18, 2016 (edited) What is the resolution set in the game options? And the above is the entirety of your monitorsetup lua file? And finally, in Windows monitor setup, the 1920/1080 monitor is on the left as Monitor 1, correct? And how is your second monitor aligned? At the top of the screen or bottom of the screen. This is why I'm asking: http://forums.eagle.ru/showpost.php?p=2616874&postcount=799 Edited March 18, 2016 by hansangb hsb HW Spec in Spoiler --- i7-10700K Direct-To-Die/OC'ed to 5.1GHz, MSI Z490 MB, 32GB DDR4 3200MHz, EVGA 2080 Ti FTW3, NVMe+SSD, Win 10 x64 Pro, MFG, Warthog, TM MFDs, Komodo Huey set, Rverbe G1
St3v3f Posted March 18, 2016 Author Posted March 18, 2016 The entire MonitorSetup.lua is this:-- for example: A-10 RWR, Init File "...\Eagle Dynamics\DCS World\Mods\aircraft\A-10C\Cockpit\Scripts\AN_ALR69V\indicator\AN_ALR69V_init.lua" -- dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") -- try_find_assigned_viewport("RWR_SCREEN") _ = function(p) return p; end; name = _('Baron'); Description = 'All Moduls with Display export.' local mainPosX = 0 local mainPosY = 0 local mainWidth = 1920 local mainHeight = 1080 local mfdScreenPosX = 1920 local mfdScreenPosY = 84 local mfdSize = 422 local lMfdDisplacementX = mfdScreenPosX + 125 local lMfdDisplacementY = mfdScreenPosY + 346 local rMfdDisplacementX = mfdScreenPosX + 892 local rMfdDisplacementY = mfdScreenPosY + 347 local rwrsize = 180 local rwrDisplacementX = mfdScreenPosX + 631 local rwrDisplacementY = mfdScreenPosY + 301 function default_setup() Viewports = { Center = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; viewDx = 0; viewDy = 0; aspect = mainWidth / mainHeight; } } Gui = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; aspect = mainWidth / mainHeight; } end default_setup() UIMainView = Gui function reconfigure_for_unit(unit_type) if unit_type == 'Ka-50' then Viewports = { Center = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; viewDx = 0; viewDy = 0; aspect = mainWidth / mainHeight; } } -- SHKVAL LEFT_MFCD = { x = rMfdDisplacementX; y = rMfdDisplacementY + mfdSize * 0.125; width = mfdSize; height = mfdSize * 0.75; viewDx = 0; viewDy = 0; aspect = 1.3333333333333333333333333333; } -- ABRIS RIGHT_MFCD = { x = lMfdDisplacementX + mfdSize * 0.125; y = lMfdDisplacementY; width = mfdSize * 0.75; height = mfdSize; viewDx = 0; viewDy = 0; aspect = 0.75; }--[[ PVI = { x = 1920; y = 84; width = 300; height = 300; viewDx = 0; viewDy = 0; aspect = 1; }--]] elseif unit_type == 'A-10C' then Viewports = { Center = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; viewDx = 0; viewDy = 0; aspect = mainWidth / mainHeight; } } LEFT_MFCD = { x = lMfdDisplacementX; y = lMfdDisplacementY; width = mfdSize; height = mfdSize; aspect = 1; } RIGHT_MFCD = { x = rMfdDisplacementX; y = rMfdDisplacementY; width = mfdSize; height = mfdSize; aspect = 1; } RWR_SCREEN = { x = rwrDisplacementX; y = rwrDisplacementY; width = rwrsize; height = rwrsize; } elseif unit_type == 'Su-25T' then Viewports = { Center = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; viewDx = 0; viewDy = 0; aspect = mainWidth / mainHeight; } } -- SHKVAL LEFT_MFCD = { x = rMfdDisplacementX; y = rMfdDisplacementY + mfdSize * 0.125; width = mfdSize; height = mfdSize * 0.75; viewDx = 0; viewDy = 0; aspect = 1.3333333333333333333333333333; } --Generic, AC has left MFD elseif unit_type == 'F-15C' then Viewports = { Center = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; viewDx = 0; viewDy = 0; aspect = mainWidth / mainHeight; } } RIGHT_MFCD = { x = rMfdDisplacementX; y = rMfdDisplacementY; width = mfdSize; height = mfdSize; viewDx = 0; viewDy = 0; aspect = 1; } --Generic, AC has right MFD elseif unit_type == 'A-10A' or unit_type == 'MiG-29A' or unit_type == 'MiG-29S' or unit_type == 'MiG-29G' or unit_type == 'Su-27' or unit_type == 'Su-33' then Viewports = { Center = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; viewDx = 0; viewDy = 0; aspect = mainWidth / mainHeight; } } RIGHT_MFCD = { x = rMfdDisplacementX; y = rMfdDisplacementY; width = mfdSize; height = mfdSize; viewDx = 0; viewDy = 0; aspect = 1; } --Generic, 2 MFDs elseif unit_type == 'MiG-21Bis' then Viewports = { Center = { x = mainPosX; y = mainPosY; width = mainWidth; height = mainHeight; viewDx = 0; viewDy = 0; aspect = mainWidth / mainHeight; } } LEFT_MFCD = { x = lMfdDisplacementX; y = lMfdDisplacementY; width = mfdSize; height = mfdSize; viewDx = 0; viewDy = 0; aspect = 1; } RIGHT_MFCD = { x = rMfdDisplacementX; y = rMfdDisplacementY; width = mfdSize; height = mfdSize; viewDx = 0; viewDy = 0; aspect = 1; } else default_setup() end end The FullHD screen is set as main screen in windows, screen two is aligned on the right, slightly lower at x=1920 y=84. Resolution ingame is 3360x1080 aka: Baron [sIGPIC][/sIGPIC]
Recommended Posts