ED Forums - View Single Post - Mirage 2000C - how to export radar and rwr to second monitor
View Single Post
Old 09-09-2017, 02:35 PM   #77
Petardo
Junior Member
 
Join Date: Jul 2017
Location: UK
Posts: 7
Reputation: 0
Petardo is on a distinguished road
Default

I have issue do export the radar correctly and have managed to export RWR successfully.

Here my screen setup
Code:
_  = function(p) return p; end;
name = _('ASUS'); -- où XXXX correspond au nom du fichier sans l'extension lua
Description = 'Shkval on the left monitor,ABRIS on the right and camera on the center'
Viewports =
{
     Center =
     {
          x = 0;
          y = 0;
          width = 1920;
          height = 1200;
          viewDx = 0;
          viewDy = 0;
          aspect = 16 /10;
     }
}

-- Ka50 --
Shkval =
{
     x = 0;
     y = 1200;
     width = 1102;
     height = 870;
}
ABRIS =
{
     x = 1104;
     y = 1200;
     width = 816;
     height = 1080;
}

-- Gazelle --
TV_GAZ =
{
     x = 0;
     y = 1200;
     width = 1102;
     height = 870;
}

-- Mirage 2000 --
M2000_RDR =
{
     x = 0;
     y = 1200;
     width = 600;
     height = 600;
}
M2000_RWR =
{
     x = 1104;
     y = 1200;
     width = 300;
     height = 300;
}

UIMainView = Viewports.Center
Here my VTB init file

Code:
dofile(LockOn_Options.common_script_path.."devices_defs.lua")
--dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")

indicator_type = indicator_types.COMMON
purposes        = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW, render_purpose.SCREENSPACE_INSIDE_COCKPIT}

VTB_PAGE_0        = 0
VTB_PAGE_1        = 1
VTB_PAGE_2        = 2
VTB_PAGE_3        = 3

SRC_VTB_BASE    = 0
SRC_VTB_0        = 1
SRC_VTB_1        = 2
SRC_VTB_2        = 3
SRC_VTB_3        = 4


local my_path = LockOn_Options.script_path.."VTB/"

page_subsets = {
    [SRC_VTB_BASE]    = my_path.."VTB_base.lua",
    [SRC_VTB_0]        = my_path.."VTB_page_0.lua",
    [SRC_VTB_1]        = my_path.."VTB_page_1.lua",
    [SRC_VTB_2]        = my_path.."VTB_page_2.lua",
    [SRC_VTB_3]        = my_path.."VTB_page_3.lua",
}

----------------------
pages = {
    [VTB_PAGE_0]        = {SRC_VTB_BASE,SRC_VTB_0},
    [VTB_PAGE_1]        = {SRC_VTB_BASE,SRC_VTB_1},
    [VTB_PAGE_2]        = {SRC_VTB_BASE,SRC_VTB_2},
    [VTB_PAGE_3]        = {SRC_VTB_BASE,SRC_VTB_3},
}

init_pageID            = VTB_PAGE_0

used_render_mask = "interleave2.bmp" --default mask for TV
update_screenspace_diplacement(SelfWidth/SelfHeight,false)
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("RIGHT_MFCD")
try_find_assigned_viewport("M2000_RDR")
Here my RWR init file

Code:
dofile(LockOn_Options.common_script_path.."devices_defs.lua")
local my_path = LockOn_Options.script_path.."RWR/"

indicator_type = indicator_types.COMMON

PAGE_0        = 0

SRC_RWR_BASE    = 0
SRC_RWR_0        = 1

page_subsets = {
    [SRC_RWR_BASE]    = my_path.."RWR_base.lua",
    [SRC_RWR_0]        = my_path.."RWR_page.lua",
}

----------------------
pages = {
    [PAGE_0]        = {SRC_RWR_BASE,SRC_RWR_0},
}
init_pageID            = PAGE_0

used_render_mask = "interleave2.bmp" --default mask for TV

dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("M2000_RWR")
As said the RWR work fine aside that it is not shing exactly as in the cockpit as the circle for immediate threat is missing but all the item and the cross in the middle are visible.

As for the VTB I have mapped the key for turning it on but no joy at all. I have tried a few suggestion from this thread with no luck

How can I troubleshoot this?
Petardo is offline   Reply With Quote