Jump to content

Mirage 2000C - how to export radar and rwr to second monitor


Recommended Posts

Thanks very very much to all you kind folks providing this information, I was able to get my radar and RWR exported and working :thumbup:

 

But I did run into a small issue. In the background of the exported radar and RWR, it is displaying my center screen (I am running nVidia surround on 3 monitors for flying with a 4th for exporting to).

 

Screenshot

Screen.thumb.jpg.321018a0355bcac8b83ee674fa4ee905.jpg

 

It's annoying, but not really stopping me from playing. I'm more concerned that it's eating up FPS trying to render my center screen 3 times. Flying the Mirage does seem a little chunkier than flying the A-10. I do not have this issue with the A-10 when I export the left and right MFD's. Has anyone run into this before?

 

Thanks for any tips!

 

Here are my lua files:

 

Monitor Setup

_ = function(p) return p; end;

name = _('M-2000C');

Description = '1 triple screen for main camera, radar and RWR exported to MFCD locations'

Viewports =

{

Left =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

viewDx = -1;

viewDy = 0;

aspect = 1.777777777777778;

},

Center =

{

x = 1920;

y = 0;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 1.777777777777778;

},

Right =

{

x = 3840;

y = 0;

width = 1920;

height = 1080;

viewDx = 1;

viewDy = 0;

aspect = 1.777777777777778;

},

LEFT_MFCD =

{

x = 2100;

y = 1660;

width = 405;

height = 405;

},

 

RIGHT_MFCD =

{

x = 3270;

y = 1680;

width = 405;

height = 405;

},

}

UIMainView = Viewports.Center

LEFT_MFCD = Viewports.LEFT_MFCD

RIGHT_MFCD = Viewports.RIGHT_MFCD

RWR_init.lua

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

VTB_init.lua

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

Link to comment
Share on other sites

Are all of your 3 Surround monitors the same size and resolution? If so, since Surround makes your 3 monitors into 1 big screen, you can set your viewports as one screen (not Left, Center, Right):

 

	Viewports =
{
Center =
	{
		x = 0;
		y = 0;
		width = 5760;
		height = 1080;
		viewDx = 0;
		viewDy = 0;
		aspect = 5760/1080;
	}
}

 

Then you just need this at the bottom: UIMainView = Viewports.Center

Maybe that will help? I don't know...

 

 

EDIT:

I just noticed this in your code:

 

LEFT_MFCD = Viewports.LEFT_MFCD
RIGHT_MFCD = Viewports.RIGHT_MFCD

 

That's probably what's causing it. You are telling the game to dump the game's views into your MFCDs..


Edited by Snacko
  • Like 1

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

Woohoo, it's working now, thanks for the tips Snacko! :D

 

You were right about the 2 lines at the bottom or my monitor setup lua, they were partially causing my issues. I also had to modify the code a bit to remove the left and right MFCD sections from the viewports section.

 

In my defense, I did this before, but I missed a pesky little comma and that broke the file, so it didn't work. :doh: But I went back over it again with a fine toothed comb and fixed it.

 

Here's my lua files for anyone else that has any issues and have a similar setup to me.

 

Monitor Setup

_  = function(p) return p; end;
name = _('M-2000C');
Description = '1 triple screen for main camera, radar and RWR exported to MFCD locations'
Viewports =
{
   Left = 
   {
       x = 0;
       y = 0;
       width = 1920;
       height = 1080;
       viewDx = -1;
       viewDy = 0;
       aspect = 1.777777777777778;
   },
   Center =
   {
       x = 1920;
       y = 0;
       width = 1920;
       height = 1080;
       viewDx = 0;
       viewDy = 0;
       aspect = 1.777777777777778;
   },
   Right = 
   {
       x = 3840;
       y = 0;
       width = 1920;
       height = 1080;
       viewDx = 1;
       viewDy = 0;
       aspect = 1.777777777777778;
   }
}
   LEFT_MFCD =
   {
       x = 2100;
       y = 1660;
       width = 405;
       height = 405;
   }

   RIGHT_MFCD =
   {
       x = 3270;
       y = 1680;
       width = 405;
       height = 405;
   }

UIMainView = Viewports.Center

RWR_init.lua

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

VTB_init.lua

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

Link to comment
Share on other sites

There are several files that can be selected from within DCS game; Options; System; Monitors

 

Look in this folder:

.. DCS World\Config\MonitorSetup\

and find the file that you are using to currently export the VTB. Just change the x and y coordinates.

 

Every time you change this file you must restart the game.

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

Hello!

 

I want to export radar, rwr et some items on a 2nd monitor but, I don't understand at all what do you do.

What's the soft do you use to do that?

I try to use HELIOS (with a mirage 2000 template) but it don't work.

 

I don't need a beautiful template, juste the instrument (for the mirage 2000) like this :

 

http://forums.eagle.ru/attachment.php?attachmentid=73329&d=1352790674

 

(f15-c template for exemple)

 

Thanks a lot!

Link to comment
Share on other sites

  • 4 weeks later...

Sorry, that's wrong.

 

In your previous post you said: "because normaly when I export the VTB is placed above the cockpit."

 

So, I thought you already were exporting the VTB?? If you are exporting the VBT I thought you would have a VBT section in your lua file? That is the section with the x,y coordinates you would have to change.

 

So, I am confused. Are you sure that you are using the 1Camera.lua monitor file? And you do see the VTB viewport when you are using that?? If so, please post the entire file.

 

And post a screenshot with your VBT viewport showing..

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

Yea you're right. But since you don't have a VBT section I'm confused. Unless the 2000 doesn't need one?

 

Have you modded the game to get that VBT viewport?

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

Ok, I think I have figured this out. Since this thread is about mods to export viewports for the Mirage, I thought you had or were trying to do that. But you didn't do that at all.

 

I just did a test and removed my viewport mods, and the Mirage VTB does still work! I didn't know it had a custom viewport built into it. Every other aircraft viewport requires a section in the MonitorSetup lua file!! So that threw me off. And to me, the stupid thing is that they created that viewport, but gave you no way to move it??? I don't know what they were thinking.

 

So, if you want to move it, you do need a mod. Put the attached file in this location: \Mods\aircraft\M-2000C\Cockpit\VTB

 

And then add this code at the bottom of your 1Camera.lua file. Change the x,y,width,height.

 

M2000C_VTB =

{

x = 0;

y = 0;

width = 400;

height = 400;

}

 

Hope that works.

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

No problem. Glad it's figured out.

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

  • 2 weeks later...

Hi everybody, my problem is that the radar screen appears only in the second monitor whenever i am in any external view, but is hidden when in cockpit. I'm sure is very easy to sort, can anybody help me ? Thanks in advance

My system: i7 9700K @ 3,6 GHz, 32 Gb RAM 2400 MHz, Gigabyte GTX 1080, 240 Gb SSD, Windows 10 64 bits, HOTAS Cougar, VKB Gladiator Pro, Saitek Combat rudder pedals, Cougar MFDs, TrackIr 5.0, Wheel Stand Pro v2, Gametrix JetSeat KW-908, Oculus Rift S

Link to comment
Share on other sites

Have you bound the hot key in Controls? And used it?

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

Hello Snacko, sorry I didn't see the messages about the key bindings, now the radar is working in the second monitor while in the cockpit, as I said the solution to my problem was very easy, I just had to read carefully the forums. Thank you very much.

My system: i7 9700K @ 3,6 GHz, 32 Gb RAM 2400 MHz, Gigabyte GTX 1080, 240 Gb SSD, Windows 10 64 bits, HOTAS Cougar, VKB Gladiator Pro, Saitek Combat rudder pedals, Cougar MFDs, TrackIr 5.0, Wheel Stand Pro v2, Gametrix JetSeat KW-908, Oculus Rift S

Link to comment
Share on other sites

  • 1 month later...

I set my lua's up exactly as High did, but for some reason they only seem to go active when I'm using any external view other then in the cockpit.

Soon as I hit F1 to go back to cockpit view, they disappear.

 

Any clue whats causing that?

 

Here's my lua files for anyone else that has any issues and have a similar setup to me.

 

[/code]RWR_init.lua

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

VTB_init.lua

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

Link to comment
Share on other sites

Have you bound the hot key in the controls?

 

Sent from my SAMSUNG-SM-N910A using Tapatalk

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

Nope. That one is weird for sure.

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

  • 2 weeks later...

If you have bound a key to the VBT and it doesn't work, something else is wrong.

 

Have you reset your monitors in Windows to the one monitor that you have working? Have you removed all/any mods you have installed? Have you tried a game Repair?

 

It's pretty simple. Bind the VBT key and it should work. I have not used it for a while...

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

And you have it on in your cockpit display? I don't know then...

 

Sent from my SAMSUNG-SM-N910A using Tapatalk

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

  • 4 weeks later...

I don't know about the kneeboard.

 

Sent from my SAMSUNG-SM-N910A using Tapatalk

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

  • 3 weeks later...
  • 8 months later...

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

 

Here my screen setup

_  = 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

 

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

 

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?

Link to comment
Share on other sites

In the D/L-section is a ready-to-use JSGME-Archive.

I'd suggest, compare your config with this one...

 

I have done that, the only difference I could see was a second call to "ViewportHandling" at the end of the file which I tried already.

 

I am still stuck with the RWR showing correctly on the second screen while the radar won't show at all even after pressing the mapped key to activate the viewport. I have tried also via external view as well with no luck.

 

Also I have de-activated all mods with no luck.

Link to comment
Share on other sites

I had a look but couldn't find difference with your file.

 

After a while I realised that the radar was not even working on the aircraft itself so I have run the repair only to find out two init file in the VTB folder...

 

One had a space between init and .lua so my file was never read and I couldnt spot it because it was such a stupid invisible mistake.

 

Thanks for your help anyway, all good now

Link to comment
Share on other sites

  • Recently Browsing   0 members

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