grim_reaper68 Posted June 24, 2023 Posted June 24, 2023 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")
Chump Posted June 25, 2023 Posted June 25, 2023 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.
grim_reaper68 Posted June 25, 2023 Author Posted June 25, 2023 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. 1
skypickle Posted June 27, 2023 Posted June 27, 2023 thank you for working this out but where do i put these? in monitor config.lua i am using? 1 4930K @ 4.5, 32g ram, TitanPascal
grim_reaper68 Posted June 27, 2023 Author Posted June 27, 2023 (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 June 27, 2023 by grim_reaper68 1
grim_reaper68 Posted July 1, 2023 Author Posted July 1, 2023 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). 1
skypickle Posted July 5, 2023 Posted July 5, 2023 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; } 1 4930K @ 4.5, 32g ram, TitanPascal
grim_reaper68 Posted July 5, 2023 Author Posted July 5, 2023 Hi the aspect ratio for the TV is 1.26, so for 663 width you need to have 526 height. So the reticle will be round as in the Heli. 1
Recommended Posts