Jump to content

Recommended Posts

Posted

I originally posted this in the Huey section last night, but after rethinking it, perhaps the MOD section is more fitting?

 

As shown in the attached photo, I have a kneeboard over my center console in the Huey, I have no idea why its there or how to get rid of it? I have a few MODS, some or one of which are Peter P's that I installed a couple years ago for other modules, But I just recently installed the Huey but I did NOT install any MODS for it specifically.

 

Most of my MODS that I installed in the last year or 2 have been via the Generic Mod Enabler, I installed Peter P's in manually. Im stating this because Im wondering if there is a possibility any of the manually installed MODS might cause this as I disabled all MODS in Generic Mod Enabler, but it wont go away.

Does anyone know what file I could look into to disable this kneeboard? Thanks

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Posted

Hi Fakum,

 

A good place to start looking for changes to the kneeboard is its init file (C:\Program Files\Eagle Dynamics\DCS World\Scripts\Aircrafts\_Common\Cockpit\KNEEBOARD\indicator\init.lua). Compare what you find in there to the unmodified variant, which is in the spoiler below.

 

 

 

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
indicator_type       = indicator_types.COMMON
----------------------
local aircraft = get_aircraft_type() or ""
local HUD_only_on_start = true
if  aircraft == 'A-10C' or aircraft == 'Ka-50' then
HUD_only_on_start = false
end


init_pageID     = 1

if HUD_only_on_start then 
purposes 	 	 		   = {100,render_purpose.HUD_ONLY_VIEW} --100 as guard to switch off general in cockpit rendering , cause purposes cannot be empty
else
purposes 	 	 		   = {100} --100 as guard to switch off general in cockpit rendering , cause purposes cannot be empty
end
--subset ids
BASE    = 1
OVERLAY = 2
MAP     = 3
OBJECTS = 4
OVERLAY2 = 5

page_subsets  =
{
[bASE]    = LockOn_Options.common_script_path.."KNEEBOARD/indicator/base_page.lua",
[OVERLAY] = LockOn_Options.common_script_path.."KNEEBOARD/indicator/overlay_page.lua",
[OBJECTS] = LockOn_Options.common_script_path.."KNEEBOARD/indicator/objects_page.lua",
[OVERLAY2] = LockOn_Options.common_script_path.."KNEEBOARD/indicator/overlay2_page.lua",
}
pages = 
{
{BASE,MAP,OVERLAY,OVERLAY2},
}

GetSelf():Add_Map_Page(MAP,LockOn_Options.common_script_path.."KNEEBOARD/indicator/map_page.lua")

custom_images = {}

lfs = require("lfs")
number_of_additional_pages = 0
function scan_path(path)
if not path then 
	return
end
for file in lfs.dir(path) do
	if file ~= "." and
	   file ~= ".." and 
	   file ~= ".svn" and 
	   file ~= "_svn"  then        
	   local fn = path.."/"..file
	   local attr = lfs.attributes (fn)
	   
	   local ext = string.sub(file,  -4) 
	   if attr.mode	 ~= "directory" then
		  if '.lua' == ext then
			  page_subsets[#page_subsets  + 1] = fn;
			  
			  local idx = #pages + 1 
			  pages[idx]				   = {BASE,#page_subsets,OVERLAY2}
			  number_of_additional_pages  = number_of_additional_pages + 1 
			  if string.sub(file,1,-5) == "1" then 
				 default_page =  idx
			  end
		  elseif '.dds' == ext or
		         '.bmp' == ext or
				 '.jpg' == ext or
				 '.png' == ext or
				 '.tga' == ext then
				custom_images[#custom_images  + 1] = fn --they will generates from C++
				number_of_additional_pages  	   = number_of_additional_pages + 1
		  end
	   end
	end
end
end

--custom pages located in unit cockpit folder 
scan_path(LockOn_Options.script_path.."KNEEBOARD/pages")

local terrain_path = get_terrain_related_data("KNEEBOARD")
local common_path  = LockOn_Options.common_script_path.."KNEEBOARD/indicator/CUSTOM"
local user_path    = lfs.writedir().."KNEEBOARD"
local unit_name    = get_aircraft_type()

if unit_name ~= nil then
scan_path(terrain_path..'/'..unit_name)
scan_path(common_path ..'/'..unit_name)
scan_path(user_path ..'/'..unit_name)
end

scan_path(terrain_path)
scan_path(common_path)
scan_path(user_path)


specific_element_id =
{
STEERPOINT = 0,  
RED_ZONE   = 1,
SELF_MARK  = 2,
}

specific_element_names = {}
specific_element_names[specific_element_id.STEERPOINT] = "el_steerpoint"
specific_element_names[specific_element_id.RED_ZONE]   = "el_red_zone"
specific_element_names[specific_element_id.SELF_MARK]  = "el_self_mark_point"

function get_template(name)
return OBJECTS
end

function get_specific_element_name_by_id(id)
return specific_element_names[id] or "el_steerpoint"
end

if is_left == nil then
  is_left =  false
end

update_screenspace_diplacement(SelfWidth/SelfHeight,is_left)
dedicated_viewport_arcade = dedicated_viewport

 

 

UltraMFCD 3.0 in the works.

 

https://ultramfcd.com

Posted

Thanks for the feedback, I will review tonight and respond. Thanks again!

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Posted

Well,, Im no coder, but I did a Notepad++ comparison of the .lua file you provided, and the one I have, and there are quite a bit of differences, but there was one particulal line in my .lua that was significantly short compared to the one you provided. I went with my insticts and changed what was once only this:

 

“purposes = {render_purpose.GENERAL}”

 

 

To This:

 

 

“if HUD_only_on_start then

purposes = {100,render_purpose.HUD_ONLY_VIEW} --100 as guard to switch off general in cockpit rendering , cause purposes cannot be empty

else

purposes = {100} --100 as guard to switch off general in cockpit rendering , cause purposes cannot be empty

end”

 

 

Now just doing a quick check, the kneeboard is now gone (as desired) I don’t know if I caused any more problems? Was this an appropriate change? Thanks

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Posted

Well I do have a few old mods installed, so thats going to have an impact. I really appreciate the direction, I wouldn't have found it with out your help. Many thanks!

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Posted

Thank you,,,

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

  • Recently Browsing   0 members

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