Jump to content

[How To] Export ALL Indicators like MFCD via ViewPorts


icemaker

Recommended Posts

Ok just found another item not working...

 

 

Thanks very much for posting this and passing on the info that Hellfrog has worked out.

 

Would you mind posting some of your other configs?

 

So far I have the MFD's working ( they worked right off the bat ) however following your directions I have got the RWR and digital clock to display.

 

However having copied the other files exactly the same I cannot get the CMSP,CMSC or any of the UHF radio frequencys to show up???

 

So close but yet so far!!! Any assistance gratefully received!

Techlabs Chameleon Watercooled Gaming PC - Intel Core i7 6700K @ 4.7GHz : Samsung 950 Pro 256GB SSD, Samsung 500 gig SSD, Seagate 1TB 7200RPM Drive : MSI GeForce GTX 1080 "Founders Edition" 8192MB : 800W '80 Plus Gold' Modular Power Supply : 32GB (2x16GB) DDR4 PC4-25600C16 3200MHz : Occulus Rift S : TM Warthog : MFG Crosswind V2 : Win 10 64. PointCTRL.

Link to comment
Share on other sites

I left those other 3 as they were in 1109. So i would suggest using the 1109 method for the items that are not working for you. Should just be a cut and paste job into the init.lua of each export.

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

I can get all my displays working post 1.1.10 patch...all except one: the UHF Repeater doesn't sho up. I wonder if someone could please post their working post patch 1.1.10 UHF Repeater.init file so I can use it? Thank you very much.

 

apoll

 

I used some of these files:

http://forums.eagle.ru/showpost.php?p=1256947&postcount=144

(Thank You, Gunnergolly!)

 

Only removed a couple of duplicates from the beginning of the script

(dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua"))

Link to comment
Share on other sites

 

So far I have the MFD's working ( they worked right off the bat ) however following your directions I have got the RWR and digital clock to display.

 

However having copied the other files exactly the same I cannot get the CMSP,CMSC or any of the UHF radio frequencys to show up???

 

So close but yet so far!!! Any assistance gratefully received!

 

Read a couple of pages of this very thread, starting from this message:

http://forums.eagle.ru/showpost.php?p=1254646&postcount=116

 

You'll find out the right way.

 

Read this message as well:

http://forums.eagle.ru/showpost.php?p=1256947&postcount=144

Link to comment
Share on other sites

Ok just found another item not working...the RWR. To get it exported you have to do it the same way that HellfrogC6 explained in the blackshark2 thread. All credit for this goes to him as I just copied what he did in the BS2 over to A10 and it worked...so here we go:

 

Open up file

x:\Program Files\Eagle Dynamics\DCS A-10C\Scripts\Aircrafts\A-10C\Cockpit\AN_ALR69V\indicator\AN_ALR69V.lua

 

Add the lines highlighted in red below. The line that has the RWR_SCREEN in quotes is what you put into your monitorsetup .lua. It can actually be named anything provided it is the same in your monitorsetup .lua

 

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
[color=red]dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")[/color]
indicator_type = indicator_types.COMMON
[color=red]purposes      = {render_purpose.GENERAL}[/color]
[color=red]try_find_assigned_viewport("RWR_SCREEN")[/color]
----------------------
rwr_symbols_bound = 0.027   -- coeff to limit indication on RWR when symbol can't be place on RWR entirely
-------PAGE IDs-------
id_Page =
{
PAGE_OFF  = 0,
PAGE_MAIN  = 1,
PAGE_BIT  = 2
}
id_pagesubset =
{
COMMON   = 0,
MAIN   = 1,
BIT    = 2,
}
page_subsets = {}
page_subsets[id_pagesubset.COMMON] = LockOn_Options.script_path.."AN_ALR69V/Indicator/AN_ALR69V_COMMON_page.lua"
page_subsets[id_pagesubset.MAIN] = LockOn_Options.script_path.."AN_ALR69V/Indicator/AN_ALR69V_MAIN_page.lua"
page_subsets[id_pagesubset.BIT]     = LockOn_Options.script_path.."AN_ALR69V/Indicator/AN_ALR69V_BIT_page.lua"
----------------------
pages = {}
pages[id_Page.PAGE_OFF]  = {}
pages[id_Page.PAGE_MAIN] = {id_pagesubset.COMMON, id_pagesubset.MAIN}
pages[id_Page.PAGE_BIT]  = {id_pagesubset.COMMON, id_pagesubset.BIT}
init_pageID  = id_Page.PAGE_OFF
use_parser  = false
--- master modes
A10C_ALR69V_OFF     = 0 
A10C_ALR69V_MAIN       = 1 
A10C_ALR69V_BIT        = 2
------------------------------------
pages_by_mode                 = {}
clear_mode_table(pages_by_mode, 2, 0, 0)
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
pages_by_mode[A10C_ALR69V_OFF][0][0][0]   = id_Page.PAGE_OFF
pages_by_mode[A10C_ALR69V_MAIN][0][0][0]  = id_Page.PAGE_MAIN
pages_by_mode[A10C_ALR69V_BIT][0][0][0]   = id_Page.PAGE_BIT
opacity_sensitive_materials = 
{
"font_RWR",
"INDICATION_RWR"
}

 

My monitorsetup Lua

_ = function(p) return p; end;
name = _('Airdogs Pit');
Description = 'Indicators configured with Easy Monitor Setup'
Viewports =
{
Center =
{
 x = 0;
 y = 0;
 width = 1920;
 height = 1080;
 viewDx = 0;
 viewDy = 0;
 aspect = 1.77777777777778;
}
}
RIGHT_MFCD =
{
 x = 1890;
 y = 1143;
 width = 860;
 height = 430;
}
LEFT_MFCD =
{
 x = -830;
 y = 1143;
 width = 860;
 height = 430;
}
UHF_REPEATER =
{
 x = 415;
 y = 1782;
 width = 140;
 height = 20;
}
DIGIT_CLOCK =
{
 x = 113;
 y = 1891;
 width = 200;
 height = 100;
}
RWR_SCREEN =
{
 x = 252;
 y = 1354;
 width = 300;
 height = 150;
}
CMSP =
{
 x = 1775;
 y = 1637;
 width = 600;
 height = 75;
}
CMSC =
{
 x = 752;
 y = 1379;
 width = 420;
 height = 65;
}
UIMainView = Viewports.Center

 

"Add the lines highlighted in red below. The line that has the RWR_SCREEN in quotes is what you put into your monitorsetup .lua. It can actually be named anything provided it is the same in your monitorsetup .lua"

 

I have no clue right now what this means, sorry,, but apparently since my multi monitor config does not work (and I dont use Helios or any other software) now with 1.1.1.0, I have to try and fix it.

I did NOT see the LINE that you say to put in, in your monitorsetup.lua? I know its me, but please elaborate for me,, thanks you


Edited by Fakum

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

"Add the lines highlighted in red below. The line that has the RWR_SCREEN in quotes is what you put into your monitorsetup .lua. It can actually be named anything provided it is the same in your monitorsetup .lua"

 

I have no clue right now what this means, sorry,, but apparently since my multi monitor config does not work (and I dont use Helios or any other software) now with 1.1.1.0, I have to try and fix it.

I did NOT see the LINE that you say to put in, in your monitorsetup.lua? I know its me, but please elaborate for me,, thanks you

 

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
[color=red]dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")[/color]
indicator_type = indicator_types.COMMON
[color=red]purposes      = {render_purpose.GENERAL}[/color]
[color=red]try_find_assigned_viewport("[b][color=royalblue]RWR_SCREEN[/color][/b]")[/color]

 

Ok what you see above in Bold/Blue text can be anything you want to name it. But whatever you name it has to be named the same in you monitor .lua

I have Bolded and Blued the RWR_SCREEN in my monitor .lua below....so those 2 just have to be named the same....get it now?

 

_ = function(p) return p; end;
name = _('Airdogs Pit');
Description = 'Indicators configured with Easy Monitor Setup'
Viewports =
{
Center =
{
 x = 0;
 y = 0;
 width = 1920;
 height = 1080;
 viewDx = 0;
 viewDy = 0;
 aspect = 1.77777777777778;
}
}
RIGHT_MFCD =
{
 x = 1890;
 y = 1143;
 width = 860;
 height = 430;
}
LEFT_MFCD =
{
 x = -830;
 y = 1143;
 width = 860;
 height = 430;
}
UHF_REPEATER =
{
 x = 415;
 y = 1782;
 width = 140;
 height = 20;
}
DIGIT_CLOCK =
{
 x = 113;
 y = 1891;
 width = 200;
 height = 100;
}
[color=royalblue][b]RWR_SCREEN[/b][/color] =
{
 x = 252;
 y = 1354;
 width = 300;
 height = 150;
}
CMSP =
{
 x = 1775;
 y = 1637;
 width = 600;
 height = 75;
}
CMSC =
{
 x = 745;
 y = 1379;
 width = 450;
 height = 65;
}
UIMainView = Viewports.Center

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

Yes,,, makes sense now,, thanks you,,, Now am I in the right place to resolve this if Im not using Helios? Not intending to hyjack a thread, but I have absolutly nothing except the desktop showing up on my 2nd monitor? Heres my Monitor.lua

 

_ = function(p) return p; end;

name = _('Guages');

Description = 'Guages'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1600;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

LEFT_MFCD =

{

x = 2555;

y = 285;

width = 590;

height = 590;

}

RIGHT_MFCD =

{

x = 3131;

y = 285;

width = 590;

height = 590;

}

RWR_SCREEN =

{

x = 3027;

y = 27;

width = 218;

height = 218;

}

UIMainView = Viewports.Center

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

Yes,,, makes sense now,, thanks you,,, Now am I in the right place to resolve this if Im not using Helios? Not intending to hyjack a thread, but I have absolutly nothing except the desktop showing up on my 2nd monitor? Heres my Monitor.lua

 

_ = function(p) return p; end;

name = _('Guages');

Description = 'Guages'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1600;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

LEFT_MFCD =

{

x = 2555;

y = 285;

width = 590;

height = 590;

}

RIGHT_MFCD =

{

x = 3131;

y = 285;

width = 590;

height = 590;

}

RWR_SCREEN =

{

x = 3027;

y = 27;

width = 218;

height = 218;

}

UIMainView = Viewports.Center

 

Are you unchecking fullscreen mode in the A10 graphic option page? What do you have set for resoulution on the same page?

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

Full screen = unchecked

Resolution = 3712x1600

(just like it was setup for ver 9)

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

Read a couple of pages of this very thread, starting from this message:

http://forums.eagle.ru/showpost.php?p=1254646&postcount=116

 

You'll find out the right way.

 

Read this message as well:

http://forums.eagle.ru/showpost.php?p=1256947&postcount=144

 

That's great, many thanks for yours and air dogs help, much appreciated! Will try this tomorrow, cheers.

Techlabs Chameleon Watercooled Gaming PC - Intel Core i7 6700K @ 4.7GHz : Samsung 950 Pro 256GB SSD, Samsung 500 gig SSD, Seagate 1TB 7200RPM Drive : MSI GeForce GTX 1080 "Founders Edition" 8192MB : 800W '80 Plus Gold' Modular Power Supply : 32GB (2x16GB) DDR4 PC4-25600C16 3200MHz : Occulus Rift S : TM Warthog : MFG Crosswind V2 : Win 10 64. PointCTRL.

Link to comment
Share on other sites

Airdog

 

Any chance you could post up all your .lua files please.

 

I have done a fresh install of 1.1.10 & have noticed a few differences in the .lua's & just want to compare mine against someone who has it working.

 

I was hoping to copy & paste old 1.1.09 files in but not sure that is a wise move.

 

Cheers

 

Barra

Link to comment
Share on other sites

Airdog

 

Any chance you could post up all your .lua files please.

 

I have done a fresh install of 1.1.10 & have noticed a few differences in the .lua's & just want to compare mine against someone who has it working.

 

I was hoping to copy & paste old 1.1.09 files in but not sure that is a wise move.

 

Cheers

 

Barra

I've attached a zip file with the modifies .lua files.

I did not include the MFD lua because they were not modded at all by me. I did not include the UHF repeater because I can't figure out which one I modified but it is the same as 1109.

The only files I had to redo for 1110 were:

RWR(AN_ALR69V_init.lua)

ViewportHandling.lua I modded to get rid of the incockpit displays

Everything else worked as they did in 1109.

The CMSC text had to be resized a bit but not much.

I included my monitor .lua also...set up for two 1920x1080 configured in a top/bottom config

LuaFiles.zip

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

Well after last night and quite a bit of this morning I have finally got everything back to where it was before the latest patches!!!

 

Please, please ED dont mess with these again I dont think my heart could take it.

 

Thanks again to all those that take the time to post their findings and offer assistance to us mere mortals :thumbup:

 

Oh and in case anyone has the same setup as me I include my monitor config.

 

I run : Total of 4 monitors - 3 x 24"s in eyefinity at 5040x1050 and the fourth 23" touchscreen at 1920x1080. Although I use the fourth below the middle trio I have it in windows on the right. (if you see what I mean )

 

I now have all exports correctly aligned and run it with Loz's profile in HELIOS on teh fourth monitor. ( Just got to figure out how to get the radios working again )

 

Cheers

 

_ = function(p) return p; end;

name = _('HELIOS');

Description = 'HELIOS setup'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 5040;

height = 1050;

viewDx = 0;

viewDy = 0;

aspect = 5.04;

}

}

 

RIGHT_MFCD =

{

x = 6524;

y = 66;

width = 370;

height = 370;

}

 

LEFT_MFCD =

{

x = 5105;

y = 64;

width = 370;

height = 370;

}

 

CMSC_SCREEN =

{

x = 5895;

y = 150;

width = 220;

height = 55;

}

 

CMSP_SCREEN =

{

x = 6115;

y = 185;

width = 270;

height = 70;

}

 

RWR_SCREEN =

{

x = 5586;

y = 141;

width = 200;

height = 200;

}

 

DIGIT_CLOCK =

{

x = 5565;

y = 837;

width = 100;

height = 100;

}

 

UHF_FREQUENCY_STATUS =

{

x = 5680;

y = 564;

width = 120;

height = 35;

}

 

UHF_PRESET_CHANNEL =

{

x = 5790;

y = 480;

width = 30;

height = 30;

}

 

UHF_REPEATER =

{

x = 5720;

y = 720;

width = 100;

height = 25;

}

 

UIMainView = Viewports.Center

Techlabs Chameleon Watercooled Gaming PC - Intel Core i7 6700K @ 4.7GHz : Samsung 950 Pro 256GB SSD, Samsung 500 gig SSD, Seagate 1TB 7200RPM Drive : MSI GeForce GTX 1080 "Founders Edition" 8192MB : 800W '80 Plus Gold' Modular Power Supply : 32GB (2x16GB) DDR4 PC4-25600C16 3200MHz : Occulus Rift S : TM Warthog : MFG Crosswind V2 : Win 10 64. PointCTRL.

Link to comment
Share on other sites

Rat

Any chance of getting your .luas for:

 

UHF_FREQUENCY_STATUS

UHF_PRESET_CHANNEL

UHF_REPEATER

 

I did a fresh install of 1.1.10 & the above only have about 2 lines in them which doesnt seem right, not sure if i should copy/paste from 1.1.09?


Edited by Barrakooda
Link to comment
Share on other sites

Rat

Any chance of getting your .luas for:

 

UHF_FREQUENCY_STATUS

UHF_PRESET_CHANNEL

UHF_REPEATER

 

I did a fresh install of 1.1.10 & the above only have about 2 lines in them which doesnt seem right, not sure if i should copy/paste from 1.1.09?

 

No Problem, please see attached.

 

Hope they work for you! I do know that the changes make no sense what so ever to me. I had the 2 mfd's work straight off, a couple of otehrs just needed the extra code adding and the last 3 or 4 needed the coordiantes moving radically and a major resizing of the exports... weird!

 

Hopefully these are what you need.

 

UHF_FREQUENCY_STATUS ( This file is actually freq_status_init. not to be confused with FREQ_STATUS_page )

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

purposes = {render_purpose.GENERAL}

screenspace_scale_initial = 3;

screenspace_diplacement = {0,0}

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

 

if vp ~= nil then

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

set_full_viewport_coverage(vp)

end

end

 

 

 

 

UHF_PRESET_CHANNEL

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

purposes = {render_purpose.GENERAL}

screenspace_scale_initial = 3;

screenspace_diplacement = {0,0}

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

 

if vp ~= nil then

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

set_full_viewport_coverage(vp)

 

 

 

UHF_REPEATER

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

purposes = {render_purpose.GENERAL}

screenspace_scale_initial = 3;

screenspace_diplacement = {0,0}

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

 

if vp ~= nil then

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

set_full_viewport_coverage(vp)

end

end

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/indicators.lua")

indicator = indicators.REPEATER

 

 

Techlabs Chameleon Watercooled Gaming PC - Intel Core i7 6700K @ 4.7GHz : Samsung 950 Pro 256GB SSD, Samsung 500 gig SSD, Seagate 1TB 7200RPM Drive : MSI GeForce GTX 1080 "Founders Edition" 8192MB : 800W '80 Plus Gold' Modular Power Supply : 32GB (2x16GB) DDR4 PC4-25600C16 3200MHz : Occulus Rift S : TM Warthog : MFG Crosswind V2 : Win 10 64. PointCTRL.

Link to comment
Share on other sites

Thanks Ratcatcher

 

Below is what came with a fresh install of 1.1.10 & i have not modified them

 

freq_status_int

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/indicators.lua")

indicator = indicators.FREQUENCY_STATUS

 

preset_channel_int

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/indicators.lua")

indicator = indicators.PRESET_CHANNEL

 

repeater_int

 

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/common_init.lua")

dofile(LockOn_Options.script_path.."UHF_Radio/indicator/indicators.lua")

indicator = indicators.REPEATER

 

Got it all running now after a bit of copy/paste :)

 

Had to resize CSMC

 

Thanks for the help


Edited by Barrakooda
Link to comment
Share on other sites

Thanks Ratcatcher

Got it all running now after a bit of copy/paste :)

 

Had to resize CSMC

 

Thanks for the help

 

Hey barra, great to hear! It really is worth it when it all works. In fact doing all this has reminded me of the feeling I had in the early days of gaming when I spent more time getting the game to work rather actually playing the damn thing, lol :doh:

Techlabs Chameleon Watercooled Gaming PC - Intel Core i7 6700K @ 4.7GHz : Samsung 950 Pro 256GB SSD, Samsung 500 gig SSD, Seagate 1TB 7200RPM Drive : MSI GeForce GTX 1080 "Founders Edition" 8192MB : 800W '80 Plus Gold' Modular Power Supply : 32GB (2x16GB) DDR4 PC4-25600C16 3200MHz : Occulus Rift S : TM Warthog : MFG Crosswind V2 : Win 10 64. PointCTRL.

Link to comment
Share on other sites

LOL I hear you Rat

 

Just curious is it possible to set the default brightness of images being exported?

 

Good question as I had noticed one display considerably brighter than another... unfortunately I have no idea, sorry. Not sure if the in game display can be adjusted and if that is mirrored in the external?

Techlabs Chameleon Watercooled Gaming PC - Intel Core i7 6700K @ 4.7GHz : Samsung 950 Pro 256GB SSD, Samsung 500 gig SSD, Seagate 1TB 7200RPM Drive : MSI GeForce GTX 1080 "Founders Edition" 8192MB : 800W '80 Plus Gold' Modular Power Supply : 32GB (2x16GB) DDR4 PC4-25600C16 3200MHz : Occulus Rift S : TM Warthog : MFG Crosswind V2 : Win 10 64. PointCTRL.

Link to comment
Share on other sites

  • 2 weeks later...

Guys I'm a n00b when it gets to lua editing, actually, n00b will be an insult to n00bs is where I'm at.

 

I applied some of the edits here to get the CDU to show up on my second monitor, sofar nadda.

 

What am I missing here?

 

Version 1.1.0.9

 

 

mfd.lua

 

 

_ = function(p) return p; end;

name = _('mfd');

Description = 'Left MFCD on the left monitor,Right MFCD on the right and camera on the center'

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 1.7;

}

}

 

LEFT_MFCD =

{

x = 1980;

y = 430;

width = 400;

height = 400;

}

 

RIGHT_MFCD =

{

x = 3050;

y = 430;

width = 400;

height = 400;

}

 

CDU_SCREEN =

{

x = 1980;

y = 0;

width = 426;

height = 324;

}

UIMainView = Viewports.Center

 

 

CDU_init.lua

 

 

dofile(LockOn_Options.common_script_path.."devices_defs.lua")

 

indicator_type = indicator_types.COMMON

 

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

purposes = {--render_purpose.GENERAL,

render_purpose.HUD_ONLY_VIEW,

render_purpose.SCREENSPACE_OUTSIDE_COCKPIT,

render_purpose.SCREENSPACE_INSIDE_COCKPIT}

 

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

used_render_mask = "interleave.bmp"

 

 

 

PS EDIT It works, had a brainfart moment and was actually on 0.8 and not 0.9. ugraded to 1.0 now and apart from having had to recalculate my aspect everything now works 100%


Edited by RogueRunner

With the price of ammunition these days do not expect a warning shot.

Link to comment
Share on other sites

Hello. I wondered in anyone can help. I'm trying to export the cdu display to my second monitor, but I'm getting some wierd results.

 

I follow the above instructions to export the display, by altering the init.lua file and adding the CDU to my moniter config file and all I end up with is the CDU text exported to the top left of my main monitor like a second HUD.

 

2xfayol8cadembdklhfrcockpitwip.png

 

I have attached a zip fil;e containing the relevent lua files if anyone has got time to have a look and hopefully tell me where I've gone wrong..

 

Thanks in advance

display config files.zip

Link to comment
Share on other sites

I think I know what I've done wrong. Totally cocked up the cdu init file.. I'll check it again and edit my post if needs be. Sorry

 

EDIT: OK, I didn't realise the code changed between the first post in this thread and the latest patch coming out. Got the CDU exported ok now, now hopefully I can figure out the rest.


Edited by Seaeye
Link to comment
Share on other sites

Thanks for the tutorial! I tried to put a digital clock on my 2nd rightmost monitor just below my Left MFD. However it appears on the upper right at the 0,0 position. Here is the text from my .lua file to see where i screwed up. Thanks for any help.

 

_ = function(p) return p; end;

name = _('Left Monitor 2 x mfd');

Description = 'Two monitor configuration';

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 2560;

height = 1600;

viewDx = 0;

viewDy = 0;

aspect = 1.6;

}

}

LEFT_MFCD =

{

x = 2560;

y = 0;

width = 840;

height = 840;

}

RIGHT_MFCD =

{

x = 3640;

y = 0;

width = 840;

height = 840;

}

 

DIG_CLOCK =

{

x = 2560;

y = 840;

width = 170;

height = 170;

}

UIMainView = Viewports.Center

EVGA X58 FTW3 | i7-960 3.2GHz | 6Gb DDR3 1600Mhz | GTX 680 4Gb | Win 7 64 |TM HOTAS Warthog | Combat Rudder Pedals | TrackIR 5 | TM MFD Cougar set | Logithech G35 Headset

Link to comment
Share on other sites

just saw Seaeye's post just before me......i should've read that before I posted. I'll give it a try. Thanks Seaeye for the info.

EVGA X58 FTW3 | i7-960 3.2GHz | 6Gb DDR3 1600Mhz | GTX 680 4Gb | Win 7 64 |TM HOTAS Warthog | Combat Rudder Pedals | TrackIR 5 | TM MFD Cougar set | Logithech G35 Headset

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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