Jump to content

Recommended Posts

Posted

This config works for the Mi-8.

_  = function(p) return p; end;
name = _('center bottom');
Description = 'All Moduls.'

Viewports = {
   Center = 
   {
       x = 0;
       y = 0;
       width = 1920;
       height = 1200;
       viewDx = 0;
       viewDy = 0;
       aspect = 1.6;
   },
   Bottom = 
   {
       x = 0;
       y = 1200;
       width = 1920;
       height = 1080;
       viewDx = 0;
       viewDy = -1;
       aspect = 1.7777777777777777777777777777778;
   }
}

UIMainView = Viewports.Center

At this config the game crashes when I start the Mi-8.

-- for create a extra viewport insert following lines on bottom of correlate file.
--
-- dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
-- try_find_assigned_viewport("<Viewport_Name>")
--
-- for example: A-10 RWR, Init File "...\Eagle Dynamics\DCS World\Mods\aircraft\A-10C\Cockpit\Scripts\AN_ALR69V\indicator\AN_ALR69V_init.lua"
-- dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")
-- try_find_assigned_viewport("RWR_SCREEN")

_  = function(p) return p; end;
name = _('All Moduls with Display');
Description = 'All Moduls with Display export.'


function default_setup()
   Viewports =
   {
       Center =
       {
           x = 0;
           y = 0;
           width = 1920; --screen.width;
           height = 1200; --screen.height;
           viewDx = 0;
           viewDy = 0;
           aspect = 1.6; --screen.aspect;
       }
   }
   
   -- SHKVAL
   LEFT_MFCD = 
   {
       x = 100;
       y = 1300;
       width = 810;
       height = 810;
       viewDx = 0;
       viewDy = 0;
       aspect = 1;
   }

   -- ABRIS
   RIGHT_MFCD = 
   {
       x = 1000;
       y = 1300;
       width = 810;
       height = 810;
       viewDx = 0;
       viewDy = 0;
       aspect = 1;
   }

   Gui =
   {
       x = 0;
       y = 0;
       width = 1920;
       height = 1200;
   }

UIMainView = Gui           
end

default_setup()
UIMainView = Viewports.Center

function reconfigure_for_unit(unit_type)

   if unit_type == 'Ka-50' then

       Viewports = {
           Center = 
           {
               x = 0;
               y = 0;
               width = 1920;
               height = 1200;
               viewDx = 0;
               viewDy = 0;
               aspect = 1.6;
           }
       }

       -- SHKVAL
       LEFT_MFCD = 
       {
           x = 730;
           y = 1500;
           width = 520;
           height = 390;
           viewDx = 1;
           viewDy = 0;
           aspect = 1.3333333333333333333333333333;
       }

       -- ABRIS
       RIGHT_MFCD = 
       {
           x = 1250;
           y = 1550;
           width = 455;
           height = 697;
           viewDx = 1;
           viewDy = 0;
           aspect = 0.6528;
       }

   elseif unit_type == 'Mi-8MT' then
       
       Viewports = {
           Center = 
           {
               x = 0;
               y = 0;
               width = 1920;
               height = 1200;
               viewDx = 0;
               viewDy = 0;
               aspect = 1.6;
           },
           Bottom = 
           {
               x = 0;
               y = 1200;
               width = 1920;
               height = 1080;
               viewDx = 0;
               viewDy = -1;
               aspect = 1.7777777777777777777777777777778;
           }
       }
       
   elseif unit_type == 'A-10C' then
       Viewports = {
           Center = 
           {
               x = 0;
               y = 0;
               width = 1920;
               height = 1200;
               viewDx = 0;
               viewDy = 0;
               aspect = 1.6;
           }
       }

       LEFT_MFCD = 
       {
           x = 37;
           y = 1237;
           width = 498;
           height = 496;
           viewDx = 1;
           viewDy = 0;
           aspect = 1;
       }

       RIGHT_MFCD = 
       {
           x = 1400;
           y = 1237;
           width = 498;
           height = 496;
           viewDx = 1;
           viewDy = 0;
           aspect = 1;
       }

       -- "...\Eagle Dynamics\DCS World\Mods\aircraft\A-10C\Cockpit\Scripts\AN_ALR69V\indicator\AN_ALR69V_init.lua"
       RWR_SCREEN =
       {
           x = 572;
           y = 1180;
           width = 187;
           height = 187;
       }

   elseif unit_type == 'Su-25T' then
       Viewports = {
           Center = 
           {
               x = 0;
               y = 0;
               width = 1920;
               height = 1200;
               viewDx = 0;
               viewDy = 0;
               aspect = 1.6;
           }
       }

       -- SHKVAL
       LEFT_MFCD = 
       {
           x = 1133;
           y = 1200;
           width = 779;
           height = 779;
           viewDx = 1;
           viewDy = 0;
           aspect = 1;
       }
   
   else    
       default_setup()
   end
end

 

All other parts of the configuration are OK.

Mi-8-crash-3-Logs.zip

Simpit Software by SDA "SIMPIT DEVELOPER ASSOCIATION"

  • DCS ExportScript
  • D.A.C. DCS to Arcaze Communicator
  • Ikarus a new Virtual Cockpit Software

Deutscher Forums Thread

English Forums Thread

 

Hard/Software: AMD Ryzen 7 1800X, 32 GiB RAM, extra SSD for Windows 10 and DCS World, AMD Vega Frontier Edition with 16 GiB VRAM

  • Recently Browsing   0 members

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