Jump to content

Recommended Posts

Posted

Hi

I'm trying tio export the TV of the SA342M (Viviane) on my second screen . Still not found it. I'm using this the try to have it, but not work yet. Did someone had more succes?

try_find_assigned_viewport("LEFT_MFCD")
 
Posted

In TV/Indicator/init.lua, right? Are you using LEFT_MFCD in your monitor setup as the viewport name in your multi-monitor config? I believe that you added the correct line of code to export the TV.

Posted

Got it!  I just forgot 1 line. The correct lines to add are those 

dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("SA342_TV")

 

I named it SA342_TV, so in can have a bigger screen as the MFCD, specially with the AH64 where i have the TEDAC in the center of the screen.

Works perfectly, with the RWR on the right.

  • Like 1
Posted (edited)

No put this at the end of the TV/Indicator/init.lua file.

For the name you can use LEFT_MFCD. 

And the same for the RWR

dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("SA342_RWR")

to add in the RWR/Indicator/init.lua file

My monitor setup is as follows

_  = function(p) return p; end;
name = _('TEDAC+Camera+RMFCD');
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 = 16/9;
     }
}

LEFT_MFCD =
{
     x = 1920;
     y = 0;
     width = 560;
     height = 560;
}

TEDAC =
{
     x = 2480;
     y = 490;
     width = 560;
     height = 560;
}

RIGHT_MFCD =
{
     x = 3040;
     y = 0;
     width = 560;
     height = 560;
}

VCM =
{
     x = 1920;
     y = 0;
     width = 560;
     height = 560;
}

SA342_TV =
{
     x = 1980;
     y = 0;
     width = 1000;
     height = 789;
}

SA342_RWR =
{
     x = 3020;
     y = 0;
     width = 560;
     height = 560;
}
UIMainView = Viewports.Center
GU_MAIN_VIEWPORT = Viewports.Center

 

Edited by grim_reaper68
  • Thanks 1
Posted

Something strange I noticed is that i need to put the x position to 1980 instead of normaly 1920 to have the TV on the right screen. With 1920 I had a part of the TV on the main screen. So for the RWR too, with 3020 instead of 3040 (my screen setup is 3600*1080, 1920*1080 for the main screen and 1680*1050 for the second one). 

  • Like 1
Posted

Yeah, same here, the TV does not render proportionately tho. It seems a little squished  but the RWR is fine. So I had weird numbers in the monitor config.

							SA342_TV =
						{
							 x = 60;
							 y = 2160+100;
							 width = 663;
							 height = 563;

						}
						SA342_RWR =
						{
							 x = 768+ 90;
							 y = 2160+120;
							 width = 663;
							 height = 663;
						}

 

  • Like 1

4930K @ 4.5, 32g ram, TitanPascal

  • 9 months later...
  • Recently Browsing   0 members

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