Jump to content

Recommended Posts

Posted

Just wanted to share with everyone a MonitorSetup file I came up with, based on others as well the automatic default ones and then giving them my own spin on it.

 

I'm quite happy with this file and a bit chumped up about it, if I'm beeing honest. :D

 

It's setup to work with two screens (it will also work with one, but output will be the same as the 1 Screen default file), it will display 3d graphics on 1st monitor and then it will take your second monitor and it will place the 3 MFDs (if your plane has them) acording to the following:

 

- Left MFCD top left corner, with spacing for cougar MFDs and screen size adjusted for you monitor size and resolution.

 

- Right MFCD top right corner, with spacing for cougar MFDs and screen size adjusted for you monitor size and resolution.

 

- Center MFCD monitor center bottom, with spacing for cougar MFDs and screen size adjusted for you monitor size and resolution.

 

It only requires two things, that you set your DCS resolution acording your screens that you want to use. And that you make a small edit in the file where you will input your screen diagonal size in Inches.

 

And here is the Lua code for everyone who wants to give it a go:

 

 

--This MonitorSetup file will work as a Simple one Monitor setup, if you only have one screen.

--But if you have 2, it will automatically place the 3 MFCD exports on the second one. Left MFCD will be placed on top Left,

--Right MFCD on top Right and Center MFCD will be placed on on bottom middle of the screen. The Script will leave spacing for your cougar MFDs as well.

--All you have to do, is edit Line 13, acording to the instructions on it, set your DCS Resolution, to the combined resolution of your displays, acording

--to your windows placement. And select "Auto Screens" as your screen config file, within DCS.

 

_ = function(p) return p; end;

name = _('Auto Screens');

Description = '1 Screen simple, or 2 with exports: automatic placement.'

 

if displays and #displays > 1 then

 

monitorsize = 20.2; --replace this number (20.2) with the size in inches, of the monitor to where you intend to export your displays to.

pixelrate = math.sqrt((displays[2].width * displays[2].width) + (displays[2].height * displays[2].height)) / (25.4 * monitorsize);

 

--Bellow is an alternate formula to the one Above, if you wish to try the one bellow, comment out line 14 and uncomment lines 18 and 19.

 

--pixelrate = displays[2].height / (((monitorsize * (math.sqrt (((displays[2].width/displays[2].height) * (displays[2].width/displays[2].height)) + 1)))

--/ (((displays[2].width/displays[2].height) * (displays[2].width/displays[2].height)) + 1))* 25.4);

 

mfdbezel = 16.6 * pixelrate;

mfdscreen = 108 * pixelrate;

 

 

primary =

{

x = displays[1].x - screen.x,

y = displays[1].y - screen.y,

width = displays[1].width,

height = displays[1].height,

aspect = displays[1].width/displays[1].height;

viewDx = 0;

viewDy = 0;

}

 

LEFT_MFCD =

{

x = displays[2].x - screen.x + mfdbezel,

y = displays[2].y - screen.y + mfdbezel,

width = mfdscreen,

height = mfdscreen,

}

 

RIGHT_MFCD =

{

x = displays[2].x - screen.x + displays[2].width - (mfdscreen + mfdbezel),

y = displays[2].y - screen.y + mfdbezel,

width = mfdscreen,

height = mfdscreen,

}

 

CENTER_MFCD =

{

x = displays[2].x - screen.x + (displays[2].width / 2) - (mfdscreen / 2),

y = displays[2].y - screen.y + displays[2].height - (mfdscreen + mfdbezel),

width = mfdscreen,

height = mfdscreen,

}

else

primary =

{

x = screen.width;

y = 0;

width = screen.width;

height = screen.height;

viewDx = 0;

viewDy = 0;

aspect = screen.aspect

}

end

 

UIMainView = primary

GU_MAIN_VIEWPORT = primary

Viewports = {UIMainView}

 

 

Small disclaimer, I don't actually own the Cougar MFDs, so measurements where taken from layouts avaiable online.

  • Recently Browsing   0 members

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