Jump to content

SA342 Gazelle M - TV export to MFD?


Recommended Posts

Hi Guys,

 

 

I need some help. I've got two new LCD screens which displays my MFD's. They are both working with every module I own, EXCEPT the Gazelle. Anyone know how I can get the TV view from the SA342 M to one of my LCDs monitors?

 

 

_ = function(p) return p; end;

name = _('Andrei MFCD');

Description = 'Left MFCD on the left monitor,Right MFCD on the right and camera on the center'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1440;

viewDx = 0;

viewDy = 0;

aspect = 1.77777777778;

}

}

 

LEFT_MFCD =

{

x = 2735;

y = 740;

width = 700;

height = 693;

}

 

RIGHT_MFCD =

{

x = 2215;

y = 1107;

width = 328;

height = 328;

}

 

 

 

UIMainView = Viewports.Center

 

 

Thanks!

Andrei MFD.lua


Edited by Skebengwa
Link to comment
Share on other sites

  • 1 month later...

Hi Skebengwa, you have everything here :

https://forums.eagle.ru/showthread.php?t=166354

 

In C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\SA342\Cockpit\TV\Indicator\init.lua you need to add at the bottom of the file:

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

try_find_assigned_viewport("SA342_TV")

 

 

Then in the code you show, after the block of the "RIGHT_MFCD" you need to add the block for the TV :

SA342_TV =

{

x = 3441;

y = 120;

width = 440;

height = 510;

}

 

You (re)start DCS, and TADAAAA

 

Enjoy you export ;)

My DCS contributions:
- My mods/skins: here
- My server/missions scripts: there
- My Discord bot:
this place
If you want to thank me buying a coffee☕/beer🍺, feel free:
https://www.buymeacoffee.com/Astazou

Link to comment
Share on other sites

  • 5 months later...

When you say:

 

"add at the bottom of the file:

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

try_find_assigned_viewport("SA342_TV")"

 

Can you be more specific? Like after: "UIMainView = Viewports.Center

GU_MAIN_VIEWPORT = Viewports.Center"?

[SIGPIC][/SIGPIC]
Link to comment
Share on other sites

  • 1 month later...

Not in the Monitor config file!

 

 

You need to edit the init.lua file

 

Astazou has listed to add those 2 lines, which essentially export a name for the TV screen so you can use it in your monitor config file. Many modules can have various instruments exported in this way - it's a shame that there is no built in method to do so after so long. :/

 

 

Be aware that any update will overwrite this edit, so it is best to use a mod manager such as JsGme or OvGme.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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