Jump to content

2 Monitor Setup for DCS World


Recommended Posts

Hey,

 

I have a problem with my 2 Monitor Setup for DCS World. I play only the A10 in DCSW and decided to use my second monitor for the MFCDs.

 

I used this thread for the lua file:

http://forums.eagle.ru/showthread.php?t=60815&highlight=dual+monitor

 

My monitors: 1. 1600*900 (Cockpit)

2. 1280*1024 (2 MFCDs)

 

So I entered the combined one into the graphics menu: 2880*1024

But when i open the dropdown menu for the lua file, my created one isnt listed.

 

_  = function(p) return p; end;
name = _('Test');
Description = 'Two monitor configuration'
Viewports =
{
Center =
{
x = 0;
y = 0;
width = 1600;
height = 900;
viewDx = 0;
viewDy = 0;
aspect = 1.77;
}
}

LEFT_MFCD =
{
x = 1600;
y = 192;
width = 640;
height = 640;
}

RIGHT_MFCD =
{
x = 2240
y = 192;
width = 640;
height = 640;
}

UIMainView = Viewports.Center

I watched 10 times over it and i dont see any problems. I copied this file into the DCS World/Config/MonitorSetup folder. I guess that is the right one.

 

Maybe someone can watch over it and help me.:cry:

 

Regards

 

EDIT: BTW will this method disable the cockpit MFCDs? If not, is this possible with a workaround?


Edited by poschi
Link to comment
Share on other sites

Use the 2nd pre-set from this download:

 

enabling Cockpit Exports in DCS-A10

 

Thanks for the link. But i have a problem with it. I did the instructions like in the manual described but if I enter the game i have no cockpit. I can see through it to my gun, ladder, wheels etc. I also cant switch from mouselook to mouseclick. i just can look around.

 

Maybe i got something wrong with the lua config file?

 

_  = function(p) return p; end;
name = _('Export example');
Description = 'Export example';
Viewports =
-- Put your values in , and delete all exports that you don't want to use !
-- You will have to determine the area for the MP/SP GUI
{
Center =
{
   x = 0;
   y = 0;
   width = 1600;
   height = 900;
   viewDx = 0;
   viewDy = 0;
   aspect = 1.77;
    }
}

GUI=
   {
       x = 0;
       y = 0;
       width = 1600;
       height = 900;
   }    

LEFT_MFCD =
{
x = 1600;
y = 192;
width = 640;
height = 640;
}

RIGHT_MFCD =
{
x = 2240;
y = 192;
width = 640;
height = 640;
}


UIMainView = GUI

 

I am not sure for what the GUI is right now. Is this the ingame menu?

 

Regards

Link to comment
Share on other sites

First: What exact version of DCS are you using?

 

 

Second : Your lua is OK and yes, GUI is for in-game GUI - gets important when you use several screens and a Helios profile.

 

 

Third: I'm sorry - don't know why your cockpit vanished. So I took it off-line to examine it.

Use this files instead:http://www.mediafire.com/download.php?6815f7cy6dl736g

They will work as promised for DCS 1.1.1.1 and DCS:World.

Link to comment
Share on other sites

Ok same result. No cockpit. Here is a screenshot of the problem.

 

I also tried to modify the lua file with 1. MainView = Center 2. Removing the GUI. Didnt changed anything.

 

 

This is a clean 7 days old install. I am using no mods or somthing similar. This is the first modification.

Screen_120704_162104.thumb.jpg.07b3627498c5f95ad982fd6322ba83bf.jpg

Link to comment
Share on other sites

(Oh-Oh... What have I done again... ;)....)

 

This has nothing to do with your MonitorSetup.lua.

 

 

Please revert back using the backup you have made and report back.

 

(I hope you did it - as I wrote it in the read-me - and you wrote that you followed exactly my instruction...)

 

 

I double-checked with a absolute clean DCS:World 1.1.2.1 install , and my files I provided are OK and doing what they are supposed to.

 

Did you really used the 2nd pre-set ? and not the 3rd?

 

 

 

Please also tell your systems specifications CPU/GPU/RAM/Operating system.

- It could be that your system ran ot of memory/V-ram by displaying the extra MFCD's exports - and fails to display everything properly.

 

 

EDIT: I double-checked my files again, - and it works.... I'm really puzzled...

 

Here is the vanilla 1.1.2.1 A-10c/_Common folder for DCS:World 1.1.2.1 - so you can revert back even if you don't have made a backup.


Edited by PeterP

Link to comment
Share on other sites

(Oh-Oh... What have I done again... ;)....)

 

This has nothing to do with your MonitorSetup.lua.

 

 

Please revert back using the backup you have made and report back.

 

(I hope you did it - as I wrote it in the read-me - and you wrote that you followed exactly my instruction...)

 

 

I doubelcheked with a asulute clean DCS:World 1.1.2.1 install , and my files I provided are OK and doing what they are supposed to.

 

Did you really used the 2nd pre-set ? and not the 3rd?

 

 

 

Please also tell your systems specifications CPU/GPU/RAM/Operating system.

- It could be that your system ran ot of memory/V-ram by displaying the extra MFCD's exports - and fails to display everything properly.

 

 

EDIT: double-checked again, - and it works.... I'm really puzzled...

 

Got it. I made a complete rollback with my backuped files:smilewink:

 

Then i copied the files manually in the folder. Maybe something went wrong before with it. Thanks for your help. It runs like a charm now:joystick::pilotfly:

  • Like 1
Link to comment
Share on other sites

Fine!:) - :D next time double-check everything before making someone go crazy (and force him to tell the wife "No!- this is important!" ) ;) :D

 

And it is working now really like you want it?:

 

In-cockpit MFCDs disabled and exports on?

Link to comment
Share on other sites

Yep, cockpit MFCDs are off in the pit and working on the second monitor.

 

Fine!:) - :D next time double-check everything before making someone go crazy (and force him to tell the wife "No!- this is important!" ) ;) :D

 

:D:music_whistling::music_whistling:

Link to comment
Share on other sites

  • 2 weeks later...

Dual monitor noob here, but based on what I have read I managed to work my setup with the following monitors... monitor_setup.thumb.jpg.ac16508493491bd6e9b015703e169413.jpg.

 

Here is my code that I have entered...

 

 

_ = function(p) return p; end;

name = _('2 Screen');

Description = 'One monitor configuration'

Viewports =

{

Center =

{

x = 0; -- The upper left corner of the main screen start point

y = 0; -- The upper left corner of the main screen start point

width = 1920; -- Width of the "Center"-view port

height = 1080; -- Width of the "Center"-view port

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

LEFT_MFCD = --Left MFD

{

x = 1920;

y = 0;

width = 560;

height = 420;

}

 

RIGHT_MFCD = --Right MFD

{

x = 2480;

y = 0;

width = 560;

height = 420;

}

 

CDU_SCREEN = --CDU display

{

x = 3040;

y = 0;

width = 500;

height = 420;

}

 

UIMainView = Viewports.Center

what is wrong with this code that wont allow the CDU to display on my right screen? The left and right MFCD work fine with the code.


Edited by Raven68

Intel i5-9600K @ 3.7GHz

Gigabyte Z370XP SLI Mobo

G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin DDR4

GIGABYTE GeForce RTX 2070 8GB 256-Bit GDDR6(Assume the latest driver version)

Thermaltake Water 3.0 Certified Liquid Cooling System

Windows 10 Professional

Oculus Rift-S /TrackIR 5 in case VR dies

Thrustmaster HOTAS Warthog w/ Thrustmaster T-Flight Rudder Pedals

Link to comment
Share on other sites

Dual monitor noob here, but based on what I have read I managed to work my setup with the following monitors... [ATTACH]68228[/ATTACH].

 

Here is my code that I have entered...

 

 

_ = function(p) return p; end;

name = _('2 Screen');

Description = 'One monitor configuration'

Viewports =

{

Center =

{

x = 0; -- The upper left corner of the main screen start point

y = 0; -- The upper left corner of the main screen start point

width = 1920; -- Width of the "Center"-view port

height = 1080; -- Width of the "Center"-view port

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

LEFT_MFCD = --Left MFD

{

x = 1920;

y = 0;

width = 560;

height = 420;

}

 

RIGHT_MFCD = --Right MFD

{

x = 2480;

y = 0;

width = 560;

height = 420;

}

 

CDU_SCREEN = --CDU display

{

x = 3040;

y = 0;

width = 500;

height = 420;

}

 

UIMainView = Viewports.Center

what is wrong with this code that wont allow the CDU to display on my right screen? The left and right MFCD work fine with the code.

 

Did you replace the original cdu_init.lua with one that allows the export of the CDU?

Below is the code for the cdu_init.lua

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
indicator_type = indicator_types.COMMON
purposes                  = {render_purpose.GENERAL}
local x_size         = 1
local y_size         = 1
function update_screenspace_diplacement(zoom_value)
   local default_width  = 0.5 * LockOn_Options.screen.height + (64 * zoom_value)
   if default_width > LockOn_Options.screen.height then
      default_width = LockOn_Options.screen.height
   end
   
   if default_width > 0.5 * LockOn_Options.screen.width then
      default_width = 0.5 * LockOn_Options.screen.width
   end
       
   local default_height = (y_size/x_size) * default_width
   local default_y      = LockOn_Options.screen.height - default_height
   local default_x      = LockOn_Options.screen.width  - default_width
  
   dedicated_viewport           = {default_x,default_y,default_width,default_height}
   dedicated_viewport_arcade = {default_x, 0        ,default_width,default_height}
end
update_screenspace_diplacement(0)    
function set_full_viewport_coverage(viewport)
  dedicated_viewport          = {viewport.x,
                               viewport.y,
                               viewport.width,
                               viewport.height}
  dedicated_viewport_arcade = dedicated_viewport
  purposes                  = {render_purpose.GENERAL,
                               render_purpose.HUD_ONLY_VIEW,
                               render_purpose.SCREENSPACE_OUTSIDE_COCKPIT,
                               render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- set purposes to draw it always 
  render_target_always = true
end
-- try to find assigned viewport
local multimonitor_setup_name =  "Config/MonitorSetup/"..get_multimonitor_preset_name()..".lua"
local env = {}
     env.screen = LockOn_Options.screen
local f = loadfile(multimonitor_setup_name)
if      f     then
     setfenv(f,env)
     pcall(f)
     
     local vp = nil
     vp = env.CDU_SCREEN
     
     if vp ~= nil then
        dbg_print("ok we have directly assigned viewport to MFCD\n")
        set_full_viewport_coverage(vp)
     end       
end
dofile(LockOn_Options.script_path.."CDU/indicator/CDU_pages.lua")
init_pageID = id_CDU_Pages.CDU_PAGE_OFF
CDU_preinit_files_path = LockOn_Options.script_path.."CDU/Indicator/Preinit/"
page_subsets = {}
dofile(LockOn_Options.script_path.."CDU/indicator/CDU_subsets_init.lua")
----------------------
pages = {}
pages_by_mode = {}
clear_mode_table(pages_by_mode, 10, 10, 29)
function get_page_by_mode(master, L2, L3, L4)
return get_page_by_mode_global(pages_by_mode,init_pageID,master,L2,L3,L4)
end
dofile(LockOn_Options.script_path.."CDU/indicator/CDU_pages_init.lua")
use_parser  = false

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
indicator_type = indicator_types.COMMON
used_render_mask = "interleave.bmp"

Airdog

| Asus ROG Strix Z370-E Mobo | i7 8700K @ 4.7 | 32 GB DDR4@3200mhz | Gigabyte 2080Ti OC 11GB| Samsung M.2 960 Evo 250Gb and 500Gb | Win10 Pro | Hotas Warthog #02743 | Track IR 5 | Toshiba 47" 120hz LED | Acer 23" Touchscreen | HELIOS |Oculus Rift-S|

 

http://www.blackknightssquadron.com/

Link to comment
Share on other sites

Did you replace the original cdu_init.lua with one that allows the export of the CDU?

 

No I haven't. I will try it when i get home. Thanks a bunch Airdog! :)

Intel i5-9600K @ 3.7GHz

Gigabyte Z370XP SLI Mobo

G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin DDR4

GIGABYTE GeForce RTX 2070 8GB 256-Bit GDDR6(Assume the latest driver version)

Thermaltake Water 3.0 Certified Liquid Cooling System

Windows 10 Professional

Oculus Rift-S /TrackIR 5 in case VR dies

Thrustmaster HOTAS Warthog w/ Thrustmaster T-Flight Rudder Pedals

Link to comment
Share on other sites

No I haven't. I will try it when i get home. Thanks a bunch Airdog! :)

 

Worked great!! Again thanks a bunch! :thumbup:

Intel i5-9600K @ 3.7GHz

Gigabyte Z370XP SLI Mobo

G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin DDR4

GIGABYTE GeForce RTX 2070 8GB 256-Bit GDDR6(Assume the latest driver version)

Thermaltake Water 3.0 Certified Liquid Cooling System

Windows 10 Professional

Oculus Rift-S /TrackIR 5 in case VR dies

Thrustmaster HOTAS Warthog w/ Thrustmaster T-Flight Rudder Pedals

Link to comment
Share on other sites

  • 1 month later...
Did you replace the original cdu_init.lua with one that allows the export of the CDU?

Below is the code for the cdu_init.lua

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
indicator_type = indicator_types.COMMON
purposes                  = {render_purpose.GENERAL}
local x_size         = 1
local y_size         = 1
function update_screenspace_diplacement(zoom_value)
   local default_width  = 0.5 * LockOn_Options.screen.height + (64 * zoom_value)
   if default_width > LockOn_Options.screen.height then
      default_width = LockOn_Options.screen.height
   end

   if default_width > 0.5 * LockOn_Options.screen.width then
      default_width = 0.5 * LockOn_Options.screen.width
   end

   local default_height = (y_size/x_size) * default_width
   local default_y      = LockOn_Options.screen.height - default_height
   local default_x      = LockOn_Options.screen.width  - default_width

   dedicated_viewport           = {default_x,default_y,default_width,default_height}
   dedicated_viewport_arcade = {default_x, 0        ,default_width,default_height}
end
update_screenspace_diplacement(0)    
function set_full_viewport_coverage(viewport)
  dedicated_viewport          = {viewport.x,
                               viewport.y,
                               viewport.width,
                               viewport.height}
  dedicated_viewport_arcade = dedicated_viewport
  purposes                  = {render_purpose.GENERAL,
                               render_purpose.HUD_ONLY_VIEW,
                               render_purpose.SCREENSPACE_OUTSIDE_COCKPIT,
                               render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- set purposes to draw it always 
  render_target_always = true
end
-- try to find assigned viewport
local multimonitor_setup_name =  "Config/MonitorSetup/"..get_multimonitor_preset_name()..".lua"
local env = {}
     env.screen = LockOn_Options.screen
local f = loadfile(multimonitor_setup_name)
if      f     then
     setfenv(f,env)
     pcall(f)

     local vp = nil
     vp = env.CDU_SCREEN

     if vp ~= nil then
        dbg_print("ok we have directly assigned viewport to MFCD\n")
        set_full_viewport_coverage(vp)
     end       
end
dofile(LockOn_Options.script_path.."CDU/indicator/CDU_pages.lua")
init_pageID = id_CDU_Pages.CDU_PAGE_OFF
CDU_preinit_files_path = LockOn_Options.script_path.."CDU/Indicator/Preinit/"
page_subsets = {}
dofile(LockOn_Options.script_path.."CDU/indicator/CDU_subsets_init.lua")
----------------------
pages = {}
pages_by_mode = {}
clear_mode_table(pages_by_mode, 10, 10, 29)
function get_page_by_mode(master, L2, L3, L4)
return get_page_by_mode_global(pages_by_mode,init_pageID,master,L2,L3,L4)
end
dofile(LockOn_Options.script_path.."CDU/indicator/CDU_pages_init.lua")
use_parser  = false

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
indicator_type = indicator_types.COMMON
used_render_mask = "interleave.bmp"

 

Where do i find the cdu_init.lua in DCS: World?

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

Link to comment
Share on other sites

+1

 

THanks PeterP! Now all i need is a new keyboard.lua for DCSW 1.2 for hawgtouch...

 

all exports now working!

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

Link to comment
Share on other sites

Dooom your better off reading the *.xml file for hawgtouch yourself and setting the keyboard commands in the game manually in game that way you can verify they match the *.xml and that the modifiers you set in game are actually recognized by the game, otherwise the panels won't work.

 

Be aware: It is a known issue that dcsworld has problems with some modifiers example: LWIN key not recognized in game. You can verify this by checking it in game yourself when you try to set the key. You could either print the *.xml your using for hawgtouch yourself or spread it to the second monitor like i did and start the game an Alt+tab to switch back to make sure the keys and modifiers match the XML file and get recognized in the game. Also you will learn them, so you know what to use next. Good Luck. Patients is key.

 

I just modified CapLoz Helios Profile to fit 1280x1024 screen thought I would share.

LozNick_SM_v2.1Helios_1280x1024.zip


Edited by thinkr

Modded CapLoz HeliosV2.1_1280x1024.zip

 

2x 1080p 22"Monitors, Saitek X52, Saitek Combat Rudder Pedals, Trackir5, Win7Pro Pro 64Bit, Intel Q9550 @3.8Ghz, EP45-UD3L, 8GB Ram, Nvidia 560Ti 2GB, 2x 500GB Velociraptor

 

Flaming Cliffs 3

DCS:A10C,KA-50, Huey, Mi-8, WWII Euro 40+ Supporter, Mig21

Falcon 4 BMS

IL-2 Sturmovik: 1946

Take on Helicopters

Arma 2 AO + PMC + BF All Addons Series

Arma 3

EECH & EEAH

Medivac & Search and Rescue 4 Series

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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