Jump to content

Multi-monitor MFCD export setup since IC integration


Recommended Posts

Posted

I like to move my exported displays around depending on the aircraft I'm in.

 

So since they removed the ability to change names of the MFDs in order to do that, we need a new way to do it.

I found this in the default config file for the 3 monitor setup

 

--[[
also you can use "displays" table  to perfectly match you configuration .
it is generated by DCS automatically.
displays table is contains information about all currently attached displays 

for example my setup is :

displays = 
{
	[1] = 
	{
		x = 0,   -- note : x == 0 and y == 0 is always mark primary windows display 
		y = 0,
		width  = 1920,
		height = 1200
	},
	[2] = 
	{
		x = -1440,   -- mark that secondary display is on left side of primary display
		y = 0,
		width  = 1440,
		height = 900
	},
	...  for all displays 
}

screen table also contain x, y members which mark top left corner of DCS window 

note about fullscreen :  directx  doesn't allow fullscreen applications with resolutions more than primary display can handle,
so multimonitor presets in DCS will fall back to windowed mode if fullscreen initialization failed  ( this info also will be printed to dcs.log)

for reconfigure viewports setup for each unit type independently you can declare here function 

function  reconfigure_for_unit(unit_type)   --unit type is string with unit name
	if unit_type == "A-10C" then
          
		Viewports  = ... define new Viewports table 
		-- also you can define cockpit displays viewports here 
		RIGHT_MFCD = ... define new RIGHT_MFCD  viewport 
		  
	else 
	    Viewports = ... define default for others 
		RIGHT_MFCD = nil  -- remove for others 
	end
end

--]]


 

I'd like to use the reconfigure for unit type part and came up with this

 

_ = function(p) return p; end;
name = _('Jordiecam');
Description = 'Jordie';

function  reconfigure_for_unit(unit_type)   --unit type is string with unit name
	if unit_type == "A-10C" then
          
		Viewports  = 
		
		{
			Center =
				{
					x = 0;
					y = 0;
					width = 2560;
					height = 1440;
					viewDx = 0;
					viewDy = 0;
					aspect = 2560/1440;
				}
		}


			LEFT_MFCD =
				{
					x = 4490;
					y = 360;
					width = 825;
					height = 825;
				}

			RIGHT_MFCD =
				{
					x = 5570;
					y = 360;
					width = 825;
					height = 825;
				}
		  
	else 
	    Viewports = 
		
		{
			Center =
				{
					x = 0;
					y = 0;
					width = 2560;
					height = 1440;
					viewDx = 0;
					viewDy = 0;
					aspect = 2560/1440;
				}
		}


			LEFT_MFCD =
				{
					x = 4090;
					y = 360;
					width = 825;
					height = 825;
				}

			RIGHT_MFCD =
				{
					x = 5170;
					y = 360;
					width = 825;
					height = 825;
				}
	end
end


UIMainView = Viewports.Center

 

But it isn't even showing up as a selectable config. I'm obviously doing something wrong.

 

Does anybody know how it works please?
 

Posted (edited)

Check the DCS.log (Saved Games/DCS/Logs) - it should show you the error it is bombing out on (which means its not selectable in-game).

Edited by Thermal
  • Recently Browsing   0 members

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