Here is my setup to get it working:
my monitor file:
_ = function(p) return p; end;
name = _('Francois');
Description = 'Left MFCD ,Right MFCD, UFC, AMCD, DED, EHSI on the lower monitor'
Viewports =
{
Center =
{
x = 0;
y = 0;
width = 5120;
height = 1440;
viewDx = 0;
viewDy = 0;
aspect = 5120/1440;
}
}
LEFT_MFCD =
{
x = 5120;
y = 5;
width = 482;
height = 482;
}
RIGHT_MFCD =
{
x = 7198;
y = 5;
width = 482;
height = 482;
}
CENTER_MFCD =
{
x = 6080;
y = 440;
width = 640;
height = 640;
}
DED =
{
x = 6210;
y = 0;
width = 380;
height = 125;
}
RWR =
{
x = 6280;
y = 220;
width = 240;
height = 240;
}
CDU =
{
x = 6210;
y = 0;
width = 380;
height = 290;
}
AN_ALR69V =
{
x = 6280;
y = 300;
width = 240;
height = 240;
}
EHSI =
{
x = 6260;
y = 480;
width = 280;
height = 280;
}
NS430 =
{
x = 6080;
y = 0;
width = 640;
height = 300;
}
UIMainView = Viewports.Center
GU_MAIN_VIEWPORT = Viewports.Center
Then you have to go to the scripts directory for every plane in my case the A-10CII, F-16, F-18 and NS430 for my L39
and inside the RWR_ALR56_init.LUA file I added the lines:
if not USE_LCD_MFD then
--ViewportHandling
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
update_screenspace_diplacement(1, true, 0)
try_find_assigned_viewport("AN_ALR69V")
end
I did the same for the DED_init.lua, AN_ALR69V_init.lua, CDU_init.lua, and NS430_init.lua replacing the name with the proper one.
The EHSI is already setup by default.
Hope this helps you out !