Jump to content

Recommended Posts

Posted (edited)

I am trying to export the VTB and RWR from the 2000C on a second screen.

Main screen 2560x1440

Second screen 1920x1080 under the main one.

I manage to display the VTB and the RWR correctly but the cockpit is also displayed on each MFD.

Does anyone have an idea to remove the cockpit?

 

Note: This configuration works for the Harrier.

 

_ = function(p) return p; end;

name = _('MFD_AV8B');

Description = '1 écran et 2MFCD'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1440;

viewDx = 0;

viewDy = 0;

aspect = 16/9;

},

 

LEFT_MFCD =

{

x = 30;

y = 1810;

width = 710;

height = 710;

},

 

RIGHT_MFCD =

{

x = 1180;

y = 1810;

width = 710;

height = 710;

},

}

 

UIMainView = Viewports.Center

LEFT_MFCD = Viewports.LEFT_MFCD

RIGHT_MFCD = Viewports.RIGHT_MFCD

 

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)

try_find_assigned_viewport("LEFT_MFCD")

 

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("RIGHT_MFCD")

 

114.jpg

Edited by lal_fox
Posted

lal_fox

 

I'm pretty sure you don't need these two lines;

 

LEFT_MFCD = Viewports.LEFT_MFCD

RIGHT_MFCD = Viewports.RIGHT_MFCD

 

at the bottom. Just leave: UIMainView = Viewports.Center

____________________________________________________________________

 

_ = function(p) return p; end;

name = _('MFD_AV8B');

Description = '1 écran et 2MFCD'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1440;

viewDx = 0;

viewDy = 0;

aspect = 16/9;

},

 

LEFT_MFCD =

{

x = 30;

y = 1810;

width = 710;

height = 710;

},

 

RIGHT_MFCD =

{

x = 1180;

y = 1810;

width = 710;

height = 710;

},

}

 

UIMainView = Viewports.Center

LEFT_MFCD = Viewports.LEFT_MFCD

RIGHT_MFCD = Viewports.RIGHT_MFCD

[sIGPIC][/sIGPIC]

i7 10700K OC 5.1GHZ / 500GB SSD & 1TB M:2 & 4TB HDD / MSI Gaming MB / GTX 1080 / 32GB RAM / Win 10 / TrackIR 4 Pro / CH Pedals / TM Warthog

Posted

Thanks for the answer but when I delete these two lines, nothing is displayed on my second screen.

There must be a syntax error in my files but I do not see which one.

Posted

Here are my settings for the F18, I hope it can help you

 

_ = function(p) return p; end;

name = _('4Ecrans Ts+3MFD');

Description = '4Ecrans Ts+3MFD'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 5840;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 5.4074074074074;

}

}

 

GUI =

{

x = 1960;

y = 0;

width = 1920;

height = 1080;

}

UIMainView = GUI

 

LEFT_MFCD = { x = 5840 + 0; y = 0; width = 640; height = 640; }

CENTER_MFCD = { x = 5840 + 640; y = 440; width = 640; height = 640; }

RIGHT_MFCD = { x = 5840 + 1280; y = 0; width = 640; height = 640; }

Posted (edited)

@Quantem,

 

Wow, I've never seen that format before very interesting. I'll have to check that out.

 

@lal_fox,

 

Here is my Mirage export. I only export the VTB but should help. I hope.

 

Make sure your .init file(s) are pointing to the correct .Lua and that the names match.

 

_ = function(p) return p; end;
name = _('Mirage');
Description = 'M2000C';
Viewports =
{
    Center =
    {
         x = 0;
         y = 0;
         width  = 2560;
         height = 1080;
         viewDx = 0;
         viewDy = 0;
         aspect = 2.3703703703704;
    }
}

GUI=
{
x = 0;
y = 0;
width = 2560;
height = 1080;
}

-- M2000C

M2000C_VTB =
{
x = 3202;
y = 238;
width = 423;
height = 423;
}

UIMainView = GUI

Edited by Sarge55

[sIGPIC][/sIGPIC]

i7 10700K OC 5.1GHZ / 500GB SSD & 1TB M:2 & 4TB HDD / MSI Gaming MB / GTX 1080 / 32GB RAM / Win 10 / TrackIR 4 Pro / CH Pedals / TM Warthog

Posted

Thank you for your answers, they helped me a lot.

Everything works well now.

 

_ = function(p) return p; end;

name = _('MFD_AV8B');

Description = '1 écran et 2MFCD'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1440;

viewDx = 0;

viewDy = 0;

aspect = 2560/1440;

 

GUI =

{

x = 0;

y = 0;

width = 2560;

height = 1440;

}

}

}

 

LEFT_MFCD =

{

x = 30;

y = 1810;

width = 710;

height = 710;

}

 

RIGHT_MFCD =

{

x = 1180;

y = 1810;

width = 710;

height = 710;

}

 

 

UIMainView = Viewports.Center

  • Recently Browsing   0 members

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