Skebengwa Posted August 30, 2018 Posted August 30, 2018 (edited) 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 August 30, 2018 by Skebengwa
astazou Posted October 3, 2018 Posted October 3, 2018 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
todd022 Posted March 6, 2019 Posted March 6, 2019 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]
mkiii Posted May 3, 2019 Posted May 3, 2019 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.
Recommended Posts