skypickle Posted February 5, 2023 Share Posted February 5, 2023 Which lua file defines the hud only view? Can I modify it so it only removes mfds? 4930K @ 4.5, 32g ram, TitanPascal Link to comment Share on other sites More sharing options...
Scott-S6 Posted February 6, 2023 Share Posted February 6, 2023 Go into the lua for the MFCDs for your aircraft, in the purposes line remove render_purpose.HUD_ONLY_VIEW Link to comment Share on other sites More sharing options...
skypickle Posted February 7, 2023 Author Share Posted February 7, 2023 There are a lot of instances of that. For example just for the Apache C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\AI\PrestonAI_indicator_noVR.lua (1 hit) Line 4: purposes = {render_purpose.HUD_ONLY_VIEW, C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\AI\PrestonAI_indicator_VR.lua (1 hit) Line 4: purposes = {render_purpose.GENERAL_AFTER_POSTEFFECTS, render_purpose.HUD_ONLY_VIEW_AFTER_POSTEFFECTS, render_purpose.AUXILLARY_SIGHT} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Cameras\MAP\MAP_CAM_init.lua (1 hit) Line 10: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Cameras\PNVS\PNVS_CAM_init.lua (1 hit) Line 9: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Cameras\TADS\TADS_CAM_init.lua (1 hit) Line 9: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\ControlsIndicator\ControlsIndicator.lua (1 hit) Line 4: purposes = {render_purpose.SCREENSPACE_INSIDE_COCKPIT,render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\BRU\BRU_cpg_init.lua (1 hit) Line 18: purposes = render_purpose.SCREENSPACE_INSIDE_COCKPIT --{render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\BRU\BRU_plt_init.lua (1 hit) Line 18: purposes = render_purpose.SCREENSPACE_INSIDE_COCKPIT --{render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\HMD\indicator\HMD_init.lua (1 hit) Line 27: purposes = { render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW } C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\MFD\indicator\LCD\MFD_LCD.lua (1 hit) Line 6: purposes = { render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW } C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\MFD\indicator\MFD_init.lua (1 hit) Line 17: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} so for example in the file C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\MFD\indicator\LCD\mfd.lua I commented out line 4 giving 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 } pages = {{1}} init_pageID = 1 function declareMFD(left) local viewport = make_viewport(1,left) dedicated_viewport = viewport dedicated_viewport_arcade = viewport if left then page_subsets = {LockOn_Options.script_path.."Displays/MFD/indicator/LCD/page_plt_left.lua"} try_find_assigned_viewport("LEFT_MFCD") else try_find_assigned_viewport("RIGHT_MFCD") page_subsets = {LockOn_Options.script_path.."Displays/MFD/indicator/LCD/page_plt_right.lua"} end end And it works! Now if I go to HUD only view I can use the mfd panels on my desktop and not be blinded by the ones in game Thank you. 4930K @ 4.5, 32g ram, TitanPascal Link to comment Share on other sites More sharing options...
MadKreator Posted February 7, 2023 Share Posted February 7, 2023 59 minutes ago, skypickle said: There are a lot of instances of that. For example just for the Apache C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\AI\PrestonAI_indicator_noVR.lua (1 hit) Line 4: purposes = {render_purpose.HUD_ONLY_VIEW, C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\AI\PrestonAI_indicator_VR.lua (1 hit) Line 4: purposes = {render_purpose.GENERAL_AFTER_POSTEFFECTS, render_purpose.HUD_ONLY_VIEW_AFTER_POSTEFFECTS, render_purpose.AUXILLARY_SIGHT} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Cameras\MAP\MAP_CAM_init.lua (1 hit) Line 10: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Cameras\PNVS\PNVS_CAM_init.lua (1 hit) Line 9: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Cameras\TADS\TADS_CAM_init.lua (1 hit) Line 9: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\ControlsIndicator\ControlsIndicator.lua (1 hit) Line 4: purposes = {render_purpose.SCREENSPACE_INSIDE_COCKPIT,render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\BRU\BRU_cpg_init.lua (1 hit) Line 18: purposes = render_purpose.SCREENSPACE_INSIDE_COCKPIT --{render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\BRU\BRU_plt_init.lua (1 hit) Line 18: purposes = render_purpose.SCREENSPACE_INSIDE_COCKPIT --{render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\HMD\indicator\HMD_init.lua (1 hit) Line 27: purposes = { render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW } C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\MFD\indicator\LCD\MFD_LCD.lua (1 hit) Line 6: purposes = { render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW } C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\MFD\indicator\MFD_init.lua (1 hit) Line 17: --purposes = {render_purpose.GENERAL, render_purpose.HUD_ONLY_VIEW} so for example in the file C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\MFD\indicator\LCD\mfd.lua I commented out line 4 giving 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 } pages = {{1}} init_pageID = 1 function declareMFD(left) local viewport = make_viewport(1,left) dedicated_viewport = viewport dedicated_viewport_arcade = viewport if left then page_subsets = {LockOn_Options.script_path.."Displays/MFD/indicator/LCD/page_plt_left.lua"} try_find_assigned_viewport("LEFT_MFCD") else try_find_assigned_viewport("RIGHT_MFCD") page_subsets = {LockOn_Options.script_path.."Displays/MFD/indicator/LCD/page_plt_right.lua"} end end And it works! Now if I go to HUD only view I can use the mfd panels on my desktop and not be blinded by the ones in game Thank you. Does it break IC doing it in individual aircraft? I do similar to remove the on screen mfd’s in the viewporthandling.lua.. it will do it for all aircraft but breaks ic right away in MP Intel i7 13700k, ASUS rog strix z790A, 64gigs G.Skill Trident DDR5 @6400Mhz, Nvidia RTX 4080FE, 2x 2TB Samsung M.2 NVME, 2x 1TB Samsung SSD, Corsair RM1000x, Corsair h100i 240mm cooler, Lian Li LanCool 3, VKB Gunfighter Ultimate, VKB STECS , MFG Crosswinds, Track IR5, 48” LG UltraGear OLED & HP 24” touchscreen for Helios, Streamdeck XL, DCS-UFC App, Corsair Virtuoso RGB Headphones Link to comment Share on other sites More sharing options...
Recommended Posts