Jump to content

How does hud only view work?


skypickle

Recommended Posts

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

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

  • Recently Browsing   0 members

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