The Bunny Apache Export modifications stopped working with the latest update (1/27/23).The display control folders (EUFD,KU,TEDAC) have been moved to the main DCSWorld\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays folder. To each folder you must add the following lines to the ends of the X_init.lua files as follows:
to the "DCSWorld\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\KU\KU_init.lua" file add
--ViewportHandling
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("AH64_KU")
to the "DCSWorld\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\EUFD\EUFD_cpg_init.lua" file add
--ViewportHandling
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("AH64_CPG_EUFD")
to the "DCSWorld\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\EUFD\EUFD_cpg_init.lua" file add
--ViewportHandling
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("AH64_CPG_EUFD")
to the "DCSWorld\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\EUFD\EUFD_plt_init.lua" file add
--ViewportHandling
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
try_find_assigned_viewport("AH64_PLT_EUFD")
My "\DCSWorld\Config\MonitorSetup\AH64D.lua" looks like this
--Monitor setup file
_ = function(p) return p; end;
name = _('AH64D');
Description = 'Cockpit, left and right MPCDs'
Viewports =
{
Center =
{
x = 696.0;
y = 1600.0;
width = 5120;
height = 1440;
viewDx = 0;
viewDy = 0;
aspect = 3.555555555555556;
}
}
LEFT_MFCD =
{
x = 3923;
y = 707;
width = 761;
height = 761;
}
RIGHT_MFCD =
{x = 4970; y = 707;width = 761;height = 761;}
AH64_CPG_EUFD =
{...
AH64_PLT_EUFD =
{...
AH64_KU =
{...
TEDAC =
{...
}
UIMainView = Viewports.Center
GU_MAIN_VIEWPORT = Viewports.Center
The TEDAC and MFCD exports do not require any init.lua file modifications
Hope this helps!