hreich Posted December 26, 2015 Posted December 26, 2015 (edited) Hi...i just spent 2 hours reading through forums and topics about exporting data to second monitor. But for the love of God i can't figure how to export radar and rwr for mirage 2000c ,and i don't have so much time and my kids wouldn't allow me to spend another hour trying to figure this out...I am using these JGSME files to export data for A-10C and Ka--50 to my second monitor (pad2). Then i use touch server ipad app - so i can get some sort of working abris/shkval display cockpit for ka-50 and working MFCDs and CDU for a-10. These files i am using with JGSME are here for you to check: https://app.box.com/s/uzv3btt6266u6iej9znh0402h9e0sxs9 How can I add another section in those files so i can have export from mirage 2000c to my second monitor. Configuration i use is: main screen 1920*1080 - on the left and extraction monitor on the right - same resolution. Edited December 26, 2015 by hreich [sIGPIC][/sIGPIC] Pilot from Croatia
FSFIan Posted December 26, 2015 Posted December 26, 2015 This post describes how to export additional indicators to external monitors. For the Mirage, the files you want are Mods\aircraft\M-2000C\Cockpit\VTB\VTB_init.lua for the radar and Mods\aircraft\M-2000C\Cockpit\RWR\RWR_init.lua for the RWR. 2 DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
Deezle Posted December 27, 2015 Posted December 27, 2015 Ian;2616583']This post describes how to export additional indicators to external monitors. For the Mirage, the files you want are Mods\aircraft\M-2000C\Cockpit\VTB\VTB_init.lua for the radar and Mods\aircraft\M-2000C\Cockpit\RWR\RWR_init.lua for the RWR. Thanks, works great :thumbup: Intel 9600K@4.7GHz, Asus Z390, 64GB DDR4, EVGA RTX 3070, Custom Water Cooling, 970 EVO 1TB NVMe 34" UltraWide 3440x1440 Curved Monitor, 21" Touch Screen MFD monitor, TIR5 My Pit Build, Moza AB9 FFB w/WH Grip, TMWH Throttle, MFG Crosswinds W/Combat Pedals/Damper, Custom A-10C panels, Custom Helo Collective, SimShaker with Transducer
Mr_Burns Posted December 27, 2015 Posted December 27, 2015 I cant get it to display following the intructions above: dofile(LockOn_Options.common_script_path.."devices_defs.lua") indicator_type = indicator_types.COMMON --purposes = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW} try_find_assigned_viewport("Mirage_Radar") I tried putting thr try_find prompt at the top and here in the middle - this stops the Radar working in the cockpit. I tried putting it at the end and that leaves the Radar in the cockpit working. I then have this: _ = function(p) return p; end; name = _('Mirage2000C'); Description = 'Setup for Mirage Virtual Cockpit Radar Exports.' Viewports = { Center = { x = 0; y = 0; width = 2048; height = 1152; viewDx = 0; viewDy = 0; aspect = 1.7; } } Mirage_Radar = { x = 600; y = 1305; width = 800; height = 800; } UIMainView = Viewports.Center And my cockpit resolution in game as 2048x2304 but it will not display. Any other ideas? Thanks
Deezle Posted December 27, 2015 Posted December 27, 2015 (edited) Seems like the line you added has some extra stuff. Try this at the very end of the file. dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") try_find_assigned_viewport("Mirage_Radar") Edited December 27, 2015 by Deezle 1 Intel 9600K@4.7GHz, Asus Z390, 64GB DDR4, EVGA RTX 3070, Custom Water Cooling, 970 EVO 1TB NVMe 34" UltraWide 3440x1440 Curved Monitor, 21" Touch Screen MFD monitor, TIR5 My Pit Build, Moza AB9 FFB w/WH Grip, TMWH Throttle, MFG Crosswinds W/Combat Pedals/Damper, Custom A-10C panels, Custom Helo Collective, SimShaker with Transducer
Mr_Burns Posted December 27, 2015 Posted December 27, 2015 Thank you, that did it - rep inbound good man!!
hreich Posted December 27, 2015 Author Posted December 27, 2015 (edited) Thank you ..it worked for me but i had to change this line dofile(LockOn_Options.common_script_path.."Viewpor tHandling.lua") try_find_assigned_viewport("Mirage_Radar") to dofile(LockOn_Options.common_script_path.."Viewporthandling.lua") But now i have problem with shkval screen - it looks like in this picture Edited December 27, 2015 by hreich [sIGPIC][/sIGPIC] Pilot from Croatia
shaz56 Posted December 27, 2015 Posted December 27, 2015 (edited) Seems like the line you added has some extra stuff. Try this at the very end of the file. being a bit of a noob i'm confused, i presume when you say put at the end of the file you mean the "lua" file. exactly where in the file, any chance someone can show the complete file\files. thanks. Edited December 27, 2015 by shaz56
hreich Posted December 27, 2015 Author Posted December 27, 2015 You have to put for example - this in file for Radar - in mirage that is dofile(LockOn_Options.common_script_path.."Viewpor tHandling.lua") try_find_assigned_viewport("Mirage_Radar") the files you want are Mods\aircraft\M-2000C\Cockpit\VTB\VTB_init.lua And after that you need to have modified monitor.lua file (in folder config/MonitorSetup in dcs world) and add the part for exporting radar: --////////////////////////////////////// -- Mirage 2000 = --////////////////////////////////////// Mirage_Radar = { x = 1921; y = 0; width = 800; height = 800; } [sIGPIC][/sIGPIC] Pilot from Croatia
SirBunker Posted December 27, 2015 Posted December 27, 2015 Thanks guys for the scripts, I now have working viewports too. One problem though, I use these on a single screen as PiP views, is there any way to script a dark background for the radar screen?
shaz56 Posted December 27, 2015 Posted December 27, 2015 thanks hreich, I understand you have to insert the new lines, but I need to know where exactly to insert and does the original 'dofile' line stay or go in the lua file. Sorry but us older nubs can be a bit slow, LOL. This is why I asked for the whole picture not just a snapshot. I have the A10C MFCD's and the F15C's radar working on a fourth screen but Bazram seem to have done it differently, thanks again.
Greekbull Posted December 27, 2015 Posted December 27, 2015 Going to work on exporting today...does anyone know the labels of the other digital displays on the main cockpit and if those are exportable? Was thinking of taking a Hi Res screen shot of the main panel and cutting out holes for the radar, RWR and stores management to run on my helios monitor for the time being until someone who knows a lot more about helios than me actually builds a profile :D AMD Ryzen 9 7950X3D | ASUS Crosshair Hero X670E | 64GB G Skill Trident Z DDR5 6000 | Nvidia RTX 4090 FE| Samsung EVO Plus 6 TB M.2 PCIe SSDs | TM Hornet Stick/WinWing Hornet Throttle and MIP | VPForce Rhino FFB Base | TM TPR Rudder Pedals W/Damper | Varjo Aero/Pimax Crystal | NeoEngress NACES Seat VFA-25 Fist of the Fleet Carrier Strike Group One(CSG-1) Discord
hreich Posted December 27, 2015 Author Posted December 27, 2015 (edited) thanks hreich, I understand you have to insert the new lines, but I need to know where exactly to insert and does the original 'dofile' line stay or go in the lua file. Sorry but us older nubs can be a bit slow, LOL. This is why I asked for the whole picture not just a snapshot. I have the A10C MFCD's and the F15C's radar working on a fourth screen but Bazram seem to have done it differently, thanks again. I am also new in this export thing myself..I just managed to get my export working today by following this post http://forums.eagle.ru/showpost.php?p=2133064&postcount=2 but i edited files for mirage - file you need to edit for radar is Mods\aircraft\M-2000C\Cockpit\VTB\VTB_init.lua - in there i added 2 lines at the end of file dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") try_find_assigned_viewport("Mirage_Radar") and edited my monitor profile file which is here DCS WORLD\Config\MonitorSetup and added these lines at the end --////////////////////////////////////// -- Mirage 2000 = --////////////////////////////////////// Mirage_Radar = { x = 1921; y = 0; width = 800; height = 800; } Mirage_RWR = { x = 2721; y = 0; width = 200; height = 200; } UIMainView = Viewports.Center ------------------------------------------------------------------------------------------------------- These is the whole file: "_ = function(p) return p; end; name = _('All Aircraft Export HR'); Description = 'A-10, Ka-50, M-2000C'; Viewports = -- Put your values in , and delete all exports that you don't want to use ! --[[ List of Exports: ---------------------- Eagle Dynamics A-10C = ---------------------- MFCD_init.lua ED_A10C_LEFT_MFCD ED_A10C_RIGHT_MFCD CDU_init.lua ED_A10C_CDU ---------------------- Eagle Dynamics Ka-50 = ---------------------- ABRIS_init.lua ED_KA50_ABRIS SHKVAL_init.lua ED_KA50_Shkval UV_26_init.lua ED_KA50_UV26 PVI_init.lua ED_KA50_PVI --]] { Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1.7777777777777777777777777778; } } GUI= { x = 0; y = 0; width = 1920; height = 1080; } UIMainView = GUI --////////////////////////////////////// -- Eagle Dynamics A-10C = --////////////////////////////////////// ED_A10C_LEFT_MFCD = { x = 1921; y = 0; width = 300; height = 300; } ED_A10C_RIGHT_MFCD = { x = 2221; y = 0; width = 300; height = 300; } CDU_EXPORT = { x = 2520; y = 0; width = 280; height = 180; } ED_A10C_CDU = { x = 2523; y = 0; width = 280; height = 180; } --////////////////////////////////////// -- Eagle Dynamics Ka-50 = --////////////////////////////////////// ED_KA50_Shkval = { x = 1921; y = 0; width = 400; height = 300; } ED_KA50_ABRIS = { x = 2321; y = 0; width = 290; height = 400; } ED_KA50_UV26 = { x = 2611; y = 0; width = 50; height = 60; } ED_KA50_PVI = { x = 2661; y = 0; width = 220; height = 75; } --////////////////////////////////////// -- Eagle Dynamics UH-1H = --////////////////////////////////////// ED_Kneeboard = { x = 1921; y = 0; width = 500; height = 800; } --////////////////////////////////////// -- Mirage 2000 = --////////////////////////////////////// Mirage_Radar = { x = 1921; y = 0; width = 800; height = 800; } Mirage_RWR = { x = 2721; y = 0; width = 200; height = 200; } UIMainView = Viewports.Center " ---------------------------------------------------------------- Third file is here: DCSWORLD\Scripts\Aircrafts\_Common\Cockpit ---> ViewportHandling.lua which is " -- positioning on screen in HUD Only view function update_screenspace_diplacement(aspect,is_left,zoom_value) local aspect = aspect or 1 local zoom_value = zoom_value or 0 local default_width = 0.5 * LockOn_Options.screen.height + (64 * zoom_value) if default_width > LockOn_Options.screen.height then default_width = LockOn_Options.screen.height end if default_width > 0.5 * LockOn_Options.screen.width then default_width = 0.5 * LockOn_Options.screen.width end local default_height = default_width / aspect local default_y = LockOn_Options.screen.height - default_height local default_x = LockOn_Options.screen.width - default_width if is_left then default_x = 0 end dedicated_viewport = {default_x,default_y,default_width,default_height} dedicated_viewport_arcade = {default_x, 0 ,default_width,default_height} end function set_full_viewport_coverage(viewport) dedicated_viewport = {viewport.x, viewport.y, viewport.width, viewport.height} dedicated_viewport_arcade = dedicated_viewport purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW, render_purpose.SCREENSPACE_OUTSIDE_COCKPIT, render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- set purposes to draw it always render_target_always = true end -- try to find assigned viewport function try_find_assigned_viewport(exactly_name,abstract_name) local multimonitor_setup_name = "Config/MonitorSetup/"..get_multimonitor_preset_name()..".lua" local f = loadfile(multimonitor_setup_name) if f then local env = {screen = LockOn_Options.screen} setfenv(f,env) pcall(f) local target_env = env[exactly_name] if not target_env and abstract_name then target_env = env[abstract_name] end if target_env then set_full_viewport_coverage(target_env) end end end" Edited December 27, 2015 by hreich [sIGPIC][/sIGPIC] Pilot from Croatia
Greekbull Posted December 27, 2015 Posted December 27, 2015 Ok I'm having issues...I'm really green with this but have been able to get it working with the A-10C and F-15C in helios... When I go to the DCSWORLD\Scripts\Aircrafts\_Common\Cockpit ---> ViewportHandling.lua I'm not seeing any file named Viewport handling in 2.0 or 1.5. Do I need to make it? I'm using a 3840x2160 main monitor and a 1920x1080 touchscreen for my instruments. Here's what I have for the files... Monitor setup specific to the M-2000: _ = function(p) return p; end; name = _('M-2000 working night'); Description = 'Right MFCD on the right and camera on the center' --TOTAL DEL VIEWPORT Viewports = { Center = { x = 0; y = 0; width = 3840; height = 2160; viewDx = 0; viewDy = 0; aspect = 16/9; } } --////////////////////////////////////// -- Mirage 2000 = --////////////////////////////////////// Mirage_Radar = { x = 1690; y = 2626; width = 430 ; height = 430; } Mirage_RWR = { x = 2215; y = 2211 ; width = 250; height = 250; } UIMainView = Viewports.Center My VTB_init.lau file: dofile(LockOn_Options.common_script_path.."devices_defs.lua") indicator_type = indicator_types.COMMON --purposes = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW} VTB_PAGE_0 = 0 VTB_PAGE_1 = 1 VTB_PAGE_2 = 2 SRC_VTB_BASE = 0 SRC_VTB_0 = 1 SRC_VTB_1 = 2 SRC_VTB_2 = 3 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", } ---------------------- 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}, } init_pageID = VTB_PAGE_0 used_render_mask = "interleave2.bmp" --default mask for TV dofile(LockOn_Options.common_script_path.."Viewpor tHandling.lua") try_find_assigned_viewport("Mirage_Radar") My RWR_init.lua 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.."Viewpor tHandling.lua") try_find_assigned_viewport("Mirage_RWR") Anything you guys see me missing? Is that third file needing to be created? Any help will be hugely appreciated!!! Thanks! AMD Ryzen 9 7950X3D | ASUS Crosshair Hero X670E | 64GB G Skill Trident Z DDR5 6000 | Nvidia RTX 4090 FE| Samsung EVO Plus 6 TB M.2 PCIe SSDs | TM Hornet Stick/WinWing Hornet Throttle and MIP | VPForce Rhino FFB Base | TM TPR Rudder Pedals W/Damper | Varjo Aero/Pimax Crystal | NeoEngress NACES Seat VFA-25 Fist of the Fleet Carrier Strike Group One(CSG-1) Discord
Mr_Burns Posted December 28, 2015 Posted December 28, 2015 (edited) You made the same mistake I did, remove the space ViewportHandling.lua is all one word. No need for a third file. Edited December 28, 2015 by Mr_Burns
Greekbull Posted December 28, 2015 Posted December 28, 2015 You made the same mistake I did, remove the space ViewportHandling.lua is all one word. No need for a third file. Thank You very much!!! That solved all of my problems. I was able to get a lot more stuff extracted. Here's a link to the thread: http://forums.eagle.ru/showthread.php?t=156943 Hopefully some more of you are Helios users and would like to pitch in to get a good profile going. Right now mine will just display all of the exports. But no switches or side panels. AMD Ryzen 9 7950X3D | ASUS Crosshair Hero X670E | 64GB G Skill Trident Z DDR5 6000 | Nvidia RTX 4090 FE| Samsung EVO Plus 6 TB M.2 PCIe SSDs | TM Hornet Stick/WinWing Hornet Throttle and MIP | VPForce Rhino FFB Base | TM TPR Rudder Pedals W/Damper | Varjo Aero/Pimax Crystal | NeoEngress NACES Seat VFA-25 Fist of the Fleet Carrier Strike Group One(CSG-1) Discord
Cougar133 Posted January 16, 2016 Posted January 16, 2016 i'm working on exports views ... love it ! :p [sIGPIC][/sIGPIC] https://www.facebook.com/RSDvirtuel/ Ryzen 7950X / Z670E - 32Gb DDR5 6000CAS36 - 4070TI - ReverbG2 - Hotas Cougar FSSBR1
hreich Posted January 16, 2016 Author Posted January 16, 2016 Guys now i have problem exporting F-15c radar and rwr...I don't see needen files in FC3 folder - like i did for mirage: Mods\aircraft\M-2000C\Cockpit\VTB\VTB_init.lua - in there i added 2 lines at the end of file dofile(LockOn_Options.common_script_path.."Viewpor tHandling.lua") try_find_assigned_viewport("Mirage_Radar") Where are needed files for F-15c? [sIGPIC][/sIGPIC] Pilot from Croatia
FSFIan Posted January 16, 2016 Posted January 16, 2016 The F-15C is a FC3 aircraft, so you won't find separate indicator files. Try exporting LEFT_MFCD and RIGHT_MFCD and see what you get. DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
hreich Posted January 16, 2016 Author Posted January 16, 2016 Ian;2645941']The F-15C is a FC3 aircraft, so you won't find separate indicator files. Try exporting LEFT_MFCD and RIGHT_MFCD and see what you get.h Ok i got radar working with left right mfd....is it possible to get rwr and weapon selection mfd exported [sIGPIC][/sIGPIC] Pilot from Croatia
Lobinjaevel Posted January 16, 2016 Posted January 16, 2016 i'm working on exports views ... Cougar, would you mind sharing your .lua? Cheers! Robin
Cougar133 Posted January 16, 2016 Posted January 16, 2016 Yup !! _ = function(p) return p; end; name = _('m2000C'); Description = 'VTB Export' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1.77777; } } M2000_VTB = { x = 2000; y = 0; width = 800; height = 768; } M2000_RWR = { x = 590; y = 1550; width = 230; height = 230; } M2000_COM = { x = 1290; y = 1500; width = 65; height = 50; } M2000_PCA = { x = 50; y = 1500; width = 320; height = 35; } M2000_PCAUR = { x = 50; y = 1500; width = 320; height = 35; } M2000_FUEL = { x = 1320; y = 1210; width = 40; height = 35; } M2000_FLR = { x = 50; y = 1200; width = 40; height = 30; } M2000_CHF = { x = 50; y = 1240; width = 40; height = 30; } M2000_PCNBR = { x = 560; y = 1790; width = 280; height = 30; } M2000_PCNUR = { x = 560; y = 1815; width = 300; height = 30; } M2000_PPA = { x = 320; y = 1210; width = 60; height = 60; } UIMainView = Viewports.Center 1 [sIGPIC][/sIGPIC] https://www.facebook.com/RSDvirtuel/ Ryzen 7950X / Z670E - 32Gb DDR5 6000CAS36 - 4070TI - ReverbG2 - Hotas Cougar FSSBR1
CHRISXTR3M3 Posted January 25, 2016 Posted January 25, 2016 i'm working on exports views ... love it ! :p Is this the M2k-5? User Files for AV8-B, X55
Recommended Posts