Jump to content

Recommended Posts

Posted

Hey guys(more specifically peterp), here we go again. I've installed a fresh copy of DCS World and A-10C and I'm using the [How To] Export ALL Indicators like MFCD via ViewPorts http://forums.eagle.ru/showthread.php?t=70716 post to configure my indicators. I have the left and right MFCDs showing correctly but none of the other indicators are moving to my second monitor. I know I'm missing one simple step that I always overlook. Here are the details of my new setup.

 

Physical Monitor Setup

Primary(Center/Main) Monitor- Acer GD235HZ 1920x1080 120hz

Secondary Monitor- Hanspree HT231DPB Touchscreen 1920x1080 60hz

 

Windows Monitor Configuration

WindowsMonitorConfiguration_zps2d281c22.png

 

I have attached copies of my Monitor Setup lua and Digital Clock Indicator lua as some examples. Any help would be appreciated.

 

Thanks,

 

0utLAW

Export example.lua

DIGIT_CLK_init.lua

i7-8700k 3.70mhz|64GB DDR4 G.SKILL Ripjaw V 3200|ASUS ROG STRIX GeForce RTX 2080 8G GDDR6|AsRockZ390 Extreme4|2 Samsung 870QVO 1TB, 1 Samsung 860 QVO 1TB, 1 Samsung 860EVO 500GB|Corsair 750D|Corsair H-100i|Corsair AX750|LG 34GN850-B|Acer UT241Y|TM Cougar MFDs| Buddyfox UFC|TM Warthog HOTAS(Modified Spring/Slew Control Stick, Upgraded PCB, Stick Extension)|Saitek Combat Pedals|Corsair Nightsword|Corsair K70|TrackIR5|Custom A-10C Panels|

Posted

My DCS Options are set as follows;

 

Resolution= 3840x1080

Aspect Ratio= 3.5555555556

Monitors= Export example

 

Fullscreen is unchecked

i7-8700k 3.70mhz|64GB DDR4 G.SKILL Ripjaw V 3200|ASUS ROG STRIX GeForce RTX 2080 8G GDDR6|AsRockZ390 Extreme4|2 Samsung 870QVO 1TB, 1 Samsung 860 QVO 1TB, 1 Samsung 860EVO 500GB|Corsair 750D|Corsair H-100i|Corsair AX750|LG 34GN850-B|Acer UT241Y|TM Cougar MFDs| Buddyfox UFC|TM Warthog HOTAS(Modified Spring/Slew Control Stick, Upgraded PCB, Stick Extension)|Saitek Combat Pedals|Corsair Nightsword|Corsair K70|TrackIR5|Custom A-10C Panels|

Posted

Does anyone know if this works with the latest version of DCS World 1.2.10.30996?

 

I have also opened my DIGIT_CLK_init.lua file and pasted the following below the indicator_type = indicator_types.COMMON line.

 

I changed the line to match the name of the indicator vp = env.DIGIT_CLK

 

-- Code below is used for the rendering when no viewport has been created

purposes = {render_purpose.GENERAL, -- Rendering in 3D View

render_purpose.HUD_ONLY_VIEW, -- Rendering In HUD only View

render_purpose.SCREENSPACE_OUTSIDE_COCKPIT, -- Rendering in External View

render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- Rendering in In cockpit view but NOT in 3D cockpit

-- End of rendering configuration

 

screenspace_scale_initial = 3;

screenspace_diplacement = {0,0}

 

local x_size = 1

local y_size = 1

 

function update_screenspace_diplacement(zoom_value)

screenspace_scale = screenspace_scale_initial + zoom_value;

if screenspace_scale < 1 then

screenspace_scale = 1

end

local screen_height = 2.0;

local screen_width = screen_height * LockOn_Options.screen.aspect;

local scaled_width = SelfWidth * screenspace_scale

local scaled_height = y_size * scaled_width -- for indicator all sizes is function of width

scaled_width = x_size * scaled_width

 

screenspace_diplacement = { 0.5 * screen_width - 0.5 * scaled_width,

-0.5 * screen_height + 0.5 * scaled_height}

 

screenspace_diplacement_arcade = {screenspace_diplacement[1],

0.5 * screen_height - 0.5 * scaled_height}

 

end

 

update_screenspace_diplacement(0)

 

function set_full_viewport_coverage(viewport)

local w = LockOn_Options.screen.width

local h = LockOn_Options.screen.height

local a = LockOn_Options.screen.aspect

local x = (-1.0 + 2.0 * (viewport.x / w)) * a

local y = 1.0 - 2.0 * (viewport.y / h)

 

local width = (viewport.width / w) * a

local height = viewport.height / h

local scl_hgt_K = y_size * SelfWidth -- size always function of SelfWidth

local scl_wdt_K = x_size * SelfWidth -- size always function of SelfWidth

 

screenspace_scale_x = 2.0 * width / scl_wdt_K

screenspace_scale_y = 2.0 * height / scl_hgt_K

screenspace_diplacement = {x + width,

y - height}

 

screenspace_diplacement_arcade = screenspace_diplacement

-- The code below is used for rendering When you use viewports comments are same as above for rendering

purposes = {render_purpose.HUD_ONLY_VIEW,

--render_purpose.GENERAL, --Uncoment this line by removing the "--" to render in 3D cockpit.

render_purpose.SCREENSPACE_OUTSIDE_COCKPIT,

render_purpose.SCREENSPACE_INSIDE_COCKPIT} -- set purposes to draw it always

-- End of rendering configuration

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.DIGIT_CLK

 

if vp ~= nil then

dbg_print("ok we have directly assigned viewport to CDU\n")

set_full_viewport_coverage(vp)

end

end

i7-8700k 3.70mhz|64GB DDR4 G.SKILL Ripjaw V 3200|ASUS ROG STRIX GeForce RTX 2080 8G GDDR6|AsRockZ390 Extreme4|2 Samsung 870QVO 1TB, 1 Samsung 860 QVO 1TB, 1 Samsung 860EVO 500GB|Corsair 750D|Corsair H-100i|Corsair AX750|LG 34GN850-B|Acer UT241Y|TM Cougar MFDs| Buddyfox UFC|TM Warthog HOTAS(Modified Spring/Slew Control Stick, Upgraded PCB, Stick Extension)|Saitek Combat Pedals|Corsair Nightsword|Corsair K70|TrackIR5|Custom A-10C Panels|

Posted

Thank you guys for not responding to my post. It forced me to take 5 minutes to search for my own darn posts and I found the answer to my problem;

 

http://forums.eagle.ru/showpost.php?p=1541311&postcount=68

 

Sorry for being a spaz! :doh:

i7-8700k 3.70mhz|64GB DDR4 G.SKILL Ripjaw V 3200|ASUS ROG STRIX GeForce RTX 2080 8G GDDR6|AsRockZ390 Extreme4|2 Samsung 870QVO 1TB, 1 Samsung 860 QVO 1TB, 1 Samsung 860EVO 500GB|Corsair 750D|Corsair H-100i|Corsair AX750|LG 34GN850-B|Acer UT241Y|TM Cougar MFDs| Buddyfox UFC|TM Warthog HOTAS(Modified Spring/Slew Control Stick, Upgraded PCB, Stick Extension)|Saitek Combat Pedals|Corsair Nightsword|Corsair K70|TrackIR5|Custom A-10C Panels|

  • Recently Browsing   0 members

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