ED Forums - View Single Post - Kneeboard Builder (windows app)
View Single Post
Old 08-29-2014, 05:40 AM   #9
AlaskanGrizzly
Member
 
AlaskanGrizzly's Avatar
 
Join Date: Dec 2010
Location: United States
Posts: 425
Default

I will be working on improving my program to incorporate what I have learned from this post:

Quote:
Originally Posted by Alex O'kean View Post
Kneeboard already have functionality for per unit separation

see part of Scripts\Aircrafts\_Common\Cockpit\KNEEBOARD\indicator\init.lua

Code:

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
it means that itry to find images for unit in three folders :
inside active terrain folder
Bazar\Terrain\Kneeboard
for example for P-51D it will try to scan

Bazar\Terrain\Kneeboard\P-51D folder

inside self kneeboard folder

Scripts\Aircrafts\_Common\Cockpit\KNEEBOARD\indicator\CUSTOM\P-51D

and inside user dir

C:\Users\<USER>\Saved Games\DCS\KNEEBOARD\P-51D

also it try to find pages inside mission with same pattern

<MIZ_FILE_ROOT>/KNEEBOARD/<UNIT_NAME>/IMAGES/
AlaskanGrizzly is offline   Reply With Quote