raymondabel Posted April 1, 2019 Posted April 1, 2019 Thanks for the tutorial...worked the first time I fired it up!!! Cougar MFD's are on the way from Amazon.com WOOT!!! is there a way to turn off in cockpit MFCDs on the top screen (main cockpit screnn) and keep only the MFCDs on the second screen to stay turn on? Using A-10c
kellmat74 Posted April 13, 2019 Posted April 13, 2019 Simple Center Viewport, Left and Right MFD Config still not working I would love if someone could help me figure out why this lua is not working. Based on many posts above, here is what I have loaded in my MonitorSetup folder: _ = function(p) return p; end; name = _('LRMFCDCamera'); Description = 'Left MFCD on the left monitor, Right MFCD on the right and camera on the center' Viewports = { Center = { x = 0; y = 0; width = 2560; height = 1080; viewDx = 0; viewDy = 0; aspect = 2560/1080; }, } LEFT_MFCD = { x = 480; y = 1080; width = 600; height = 600; aspect = 1024/600; } RIGHT_MFCD = { x = 1536; y = 1080; width = 600; height = 600; aspect = 1024/600; } UIMainView = Viewports.Center GU_MAIN_VIEWPORT = Viewports.Center Here is how I have my displays configured in Windows 10: I've also selected my lua config file in the display setup with DCS and set the dimensions to 2560 x 1680. The Main Screen is 2560 x 1080 and the two MFDs are android tablets at 1024 x 600 each. Here is how the Main Menus Appears: Here is what the main screen looks like in sim: Here is my overall setup: Any assistance would be much appreciated. Thanks
kellmat74 Posted April 14, 2019 Posted April 14, 2019 Well, I figured it out. Apparently I didn't understand my own equipment. All I had to do was touch the MFD displays and then DCS recognized them. They were already showing the desktop and my mouse could move into them, but I never did that while DCS was running. I actually accidentally touch one while I was in the simulation and the two MFDs that were at the bottom of my Center Viewer jumped onto the tablets! Of course I had to tweak the alignment once I finally got them on the MFDs, but that was easy. I had no idea that I had to touch the screens to get DCS to recognize them. By the way I was using Deskspace on Kindle Fires if anyone runs into this again.
Badass1982 Posted April 16, 2019 Posted April 16, 2019 OK I'm new to LUA scripting but I've read up on this thread and I'm still struggling. What I'm trying to achieve is to create a viewport for my knee board on my second monitor (atm the f14 but preferably most aircraft). My 1st monitor is a UWS 3440 x 1440 monitor and my second is a dell 2048 x 1152 resolution monitor Total combined resolution is 5488 x 2592 and if im not mistaken the aspect should be 2.1172839506172 I'm realy struggling to get my monitor config file setup up correctly if any of you bright sparks can help it would be much appreciated included the lua code i have tried so far. thanks in advance. _ = function(p) return p; end; name = _('KNEEBOARDTEST1'); Description = 'One main monitor + Kneeboard on second' Viewports = { Center = { x = 0; y = 0; width = 3440; height = 1440; viewDx = 0; viewDy = 0; aspect = 3440/1440; } KNEEBOARD = { x = 300; y = 300; width = 300; height = 300; } UIMainView = Viewports.Center GUI = { x = 3440; y = 0; width = 3440; height = 1440; } GU_MAIN_VIEWPORT = Viewports.Center
raymondabel Posted April 16, 2019 Posted April 16, 2019 really not sur KNEEBOARD = { x = 300; y = 300; width = 300; height = 300; } works..
raymondabel Posted April 16, 2019 Posted April 16, 2019 _ = function(p) return p; end; name = _('Ikarus'); Description = 'Ikarus' ; Viewports = { Center = { x = 0; y = 0; width = screen.width; --1920 height = 1080; viewDx = 0; viewDy = 0; aspect = screen.aspect; } } LEFT_MFCD = { x = 65; y = 1205; width = 450; height = 450; } RIGHT_MFCD = { x = 1405; y = 1205; width = 450; height = 450; } RWR_SCREEN = { x = 509; y = 1171; width = 300; height = 300; } CDU_SCREEN = { x = 1170; y = 1700; width = 425; height = 425; } UIMainView = Viewports.Center
Badass1982 Posted April 16, 2019 Posted April 16, 2019 You don't have any of those set up to display the knee board on another monitor though do you. THAT's what I'm trying to achieve.
raymondabel Posted April 16, 2019 Posted April 16, 2019 You don't have any of those set up to display the knee board on another monitor though do you. THAT's what I'm trying to achieve. ok.. the only way I found to modify kneedorrd position is : https://forums.eagle.ru/showthread.php?t=129341&highlight=KneeboardBuilder hope that help
Badass1982 Posted April 16, 2019 Posted April 16, 2019 (edited) Yep tried that also, I don't believe this allows you to move the KneeBoard to a second monitor, just to move it around the single display. I will include some screenshots of what my displays are doing right now, I'm pretty sure I have the viewports messed up somewhere.... Edited April 16, 2019 by Badass1982
raymondabel Posted April 16, 2019 Posted April 16, 2019 Yep tried that also, I don't believe this allows you to move the KneeBoard to a second monitor, just to move it around the single display. I will include some screenshots of what my displays are doing right now, I'm pretty sure I have the viewports messed up somewhere.... it does option profile modify choose your planes save
Badass1982 Posted April 17, 2019 Posted April 17, 2019 So this is the best I managed to get it set up, I've tried everything I can think of to get the kneeboard moved over to the left of my second screen but no it just wants to stay there. Still it works though.
hansangb Posted April 17, 2019 Posted April 17, 2019 Using the kneeboard builder or using your monitor LUA? 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
mkiii Posted April 19, 2019 Posted April 19, 2019 (edited) Edit MODS\new_Kneeboard\Scripts\Aircrafts\_Common\Cockpit\ViewportHandling.lua Look around about line 32 and edit this:- dedicated_viewport = {default_x,default_y,default_width,default_height} to read this:- dedicated_viewport = {0,0,550,800} This will make the Kneeboard appear on the top left corner of whatever viewport or multi monitor setup you have. Alter your X,Y position accordingly if you want it elsewhere. Increase the second number to be greater than the width of your main monitor. Try to keep the Aspect ratio of the size similar to this, or use the default_width & default_height variables. Obviously, the actual position depends on how your monitors are setup in Windows & your monitor.lua settings. I use up to 4 monitors arranged horizontally, with either 1,2,3 as 3d screens, with 2 as GUI, and 4 as an MFD export, or 1 as space for kneepad & Control Indicator, 2 as 3D screen/GUI, 4 as blank (possibly a web page or PDF guide here), and 4 as before - with MFDs and instrument exports. Edited April 19, 2019 by mkiii correction
raymondabel Posted April 20, 2019 Posted April 20, 2019 Edit MODS\new_Kneeboard\Scripts\Aircrafts\_Common\Cockpit\ViewportHandling.lua Look around about line 32 and edit this:- dedicated_viewport = {default_x,default_y,default_width,default_height} to read this:- dedicated_viewport = {0,0,550,800} This will make the Kneeboard appear on the top left corner of whatever viewport or multi monitor setup you have. Alter your X,Y position accordingly if you want it elsewhere. Increase the second number to be greater than the width of your main monitor. Try to keep the Aspect ratio of the size similar to this, or use the default_width & default_height variables. Obviously, the actual position depends on how your monitors are setup in Windows & your monitor.lua settings. I use up to 4 monitors arranged horizontally, with either 1,2,3 as 3d screens, with 2 as GUI, and 4 as an MFD export, or 1 as space for kneepad & Control Indicator, 2 as 3D screen/GUI, 4 as blank (possibly a web page or PDF guide here), and 4 as before - with MFDs and instrument exports. Great thanks !!
98abaile Posted May 14, 2019 Posted May 14, 2019 (edited) Is it still not possible to export mfds to monitors to the left of my primary screen (i.e. negative coordinates)? I really don't want Windows to treat my left monitor as the primary Edited May 14, 2019 by 98abaile
hansangb Posted May 14, 2019 Posted May 14, 2019 It's just X and Y coordinate. So if you should be able to specify the UIMainView to the center view. Or Also, you can just tell Windows that the middle (or the right) monitor is your Primary. It's a logical designation. See https://forums.eagle.ru/showpost.php?p=2616874&postcount=799 for more info. PS: But I do recall a thread where someone said that the MFD's can't be on the left. But I'm not sure. 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
ehlw1993 Posted August 5, 2019 Posted August 5, 2019 (edited) Guys, can you please help me? I've got two 8" screens (resolution of 1024x768 ) and my main screen (1920x1080). Screens are set up next to each other. lua.script is as follows: -------------------------------------------------------- _ = function(p) return p; end; name = _('HSBMFD1'); Description = '1 Screen and L-R MultiMFD' Viewports = { Center = { x = 0; y = 0; width = 3968; height = 1080; viewDx = 0; viewDy = 0; aspect = 3.7; }, LEFT_MFCD = { x = 1920; y = 0; width = 525; height = 525; }, RIGHT_MFCD = { x = 3443; y = 0; width = 525; height = 525; }, } UIMainView = Viewports.Center LEFT_MFCD = Viewports.LEFT_MFCD RIGHT_MFCD = Viewports.RIGHT_MFCD ---------------------------------------------------- My DCS settings are: Resolution 3968x1080 Aspect ratio (automatically changed) When I've "full screen" ON I can't see the right part of the screen with mission editor, campaign etc... When I've "full screen" OFF the screen is all stretched out and hard to read. What am I doing wrong? Edited August 5, 2019 by ehlw1993
zippoa Posted August 5, 2019 Posted August 5, 2019 Here is how it works on my PC. I have 1920*1200 + 1024*768 + 1024*768. Two small monitors in Windows setup are located right in bottom in one line from main monitor _ = function(p) return p; end; name = _('MY_MFCD'); Description = 'Left MFCD on the left monitor,Right MFCD on the right and camera on the center' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1200; viewDx = 0; viewDy = 0; aspect = 1920 / 1200; } } LEFT_MFCD = { x = 2086; y = 470; width = 700; height = 700; } RIGHT_MFCD = { x = 3110; y = 470; width = 700; height = 700; } F14_HSD = { x = 2086; y = 470; width = 700; height = 700; } F14_VDI= { x = 3110; y = 470; width = 700; height = 700; } UIMainView = Viewports.Center GU_MAIN_VIEWPORT = Viewports.Center --LEFT_MFCD = Viewports.LEFT_MFCD --RIGHT_MFCD = Viewports.RIGHT_MFCD In options menu in DCS choose resolution 3968*1200. It should be last in list. Also choose aspect ratio about 3.3333 In your case, you should only change vertical resolution 1200 to 1080. When my DCS loads, image is squeezed on center screen, so I press Alt+Enter or just click with mouse on my mfcd and image goes normal
zippoa Posted August 5, 2019 Posted August 5, 2019 Also man, your settings are totally incorrect _ = function(p) return p; end; name = _('HSBMFD1'); Description = '1 Screen and L-R MultiMFD' Viewports = { Center = { x = 0; y = 0; width = 3968; height = 1080; viewDx = 0; viewDy = 0; aspect = 3.7; }, LEFT_MFCD = { x = 1920; y = 0; width = 525; height = 525; }, RIGHT_MFCD = { x = 3443; y = 0; width = 525; height = 525; }, } UIMainView = Viewports.Center LEFT_MFCD = Viewports.LEFT_MFCD RIGHT_MFCD = Viewports.RIGHT_MFCD Here you say DCS that your mains screen has resolution 3968*1080. But yours must be 1920*1080
zippoa Posted August 5, 2019 Posted August 5, 2019 For you it should be this _ = function(p) return p; end; name = _('MY_MFCD'); Description = 'Left MFCD on the left monitor,Right MFCD on the right and camera on the center' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1920 / 1080; } } LEFT_MFCD = { x = 2086; y = 470; width = 700; height = 700; } RIGHT_MFCD = { x = 3110; y = 470; width = 700; height = 700; } F14_HSD = { x = 2086; y = 470; width = 700; height = 700; } F14_VDI= { x = 3110; y = 470; width = 700; height = 700; } UIMainView = Viewports.Center GU_MAIN_VIEWPORT = Viewports.Center --LEFT_MFCD = Viewports.LEFT_MFCD --RIGHT_MFCD = Viewports.RIGHT_MFCD
ehlw1993 Posted August 5, 2019 Posted August 5, 2019 Got it already!! Thnx Working MFD's now, so much better. Used my standard notepad, now used notepad++ and it works
Biga42 Posted August 20, 2019 Posted August 20, 2019 (edited) zippoa can you help me, pls? I have 3 monitors, at the left and right side a 1024*768 resolution monitors, and at center a 2560*1080 ultrawide monitor. If choose inside DCS a LMPCD automatic placement it works correct. But if a choose LMPCD + Camera + RMPCD the lmpcd and RMPCD bleeds to the center monitor. The resolution I choose was 4608*1080 and aspect ratio 4,266666. Here is my display settings: thanks Edited August 20, 2019 by Biga42
hansangb Posted August 20, 2019 Posted August 20, 2019 zippoa can you help me, pls? I have 3 monitors, at the left and right side a 1024*768 resolution monitors, and at center a 2560*1080 ultrawide monitor. If choose inside DCS a LMPCD automatic placement it works correct. But if a choose LMPCD + Camera + RMPCD the lmpcd and RMPCD bleeds to the center monitor. The resolution I choose was 4608*1080 and aspect ratio 4,266666. Here is my display settings: thanks It's easier if you line up the displays in Windows because DCS uses X and Y coordinates that start from the top left corner. You can keep your setting as is, so long as you specify the correct Y axis for your middle monitor. This has the step by step instructions I wrote a while ago. If you still need help, just post the LUA file that you are using. https://forums.eagle.ru/showpost.php?p=2616874&postcount=799 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
Recommended Posts