Jump to content

Recommended Posts

Posted

Before the new cockpit I had given the A10C custom MFCD names so I could configure my monitor.lua for different aircraft.

 

So previously I had modified the MFCD_init.lua file, changing the lines somewhere near the viewporthandling code below

 

LEFT_MFCD to A10C_LEFT_MFCD

and

RIGHT_MFCD to A10C_RIGHT_MFCD

 

I think I've done it correctly to the new MFCD_Init.lua file but it still seems to reading it as LEFT_MFCD and so on.

 

I did it this way as I was unable to change the export of the Su25 schival camera.

 

Just wondered if anyone else has solved this.

Thanks

Posted

Working without any problems here with new cockpit.

My controls & seat

 

Main controls: , BRD-N v4 Flightstick (Kreml C5 controller), TM Warthog Throttle (Kreml F3 controller), BRD-F2 Restyling Bf-109 Pedals w. damper, TrackIR5, Gametrix KW-908 (integrated into RAV4 seat)

Stick grips:

Thrustmaster Warthog

Thrustmaster Cougar (x2)

Thrustmaster F-16 FLCS

BRD KG13

 

Standby controls:

BRD-M2 Mi-8 Pedals (Ruddermaster controller)

BRD-N v3 Flightstick w. exch. grip upgrade (Kreml C5 controller)

Thrustmaster Cougar Throttle

Pilot seat

 

 

Posted
Did you change the names of the MFCDs in the MFCD.init file?
yes. also in BAKE\init.lua

My controls & seat

 

Main controls: , BRD-N v4 Flightstick (Kreml C5 controller), TM Warthog Throttle (Kreml F3 controller), BRD-F2 Restyling Bf-109 Pedals w. damper, TrackIR5, Gametrix KW-908 (integrated into RAV4 seat)

Stick grips:

Thrustmaster Warthog

Thrustmaster Cougar (x2)

Thrustmaster F-16 FLCS

BRD KG13

 

Standby controls:

BRD-M2 Mi-8 Pedals (Ruddermaster controller)

BRD-N v3 Flightstick w. exch. grip upgrade (Kreml C5 controller)

Thrustmaster Cougar Throttle

Pilot seat

 

 

Posted

I don't know what the new USE_BAKED lines are in the new file

 

This is the start of the old file

 

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
dofile(LockOn_Options.script_path.."materials.lua")
dofile(LockOn_Options.script_path.."config.lua")
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")

function GetScale() 
return 1
end
dofile(LockOn_Options.script_path.."MFCD/indicator/MFCD_sizes.lua")

if LockOn_Options.flight.easy_radar then 
  render_target_always = true
  purposes 	 = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW,render_purpose.SCREENSPACE_OUTSIDE_COCKPIT}
else
  render_target_always = false
  purposes 	 = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW}
end

indicator_type 	 = indicator_types.COMMON
used_render_mask = "interleave.dds"

update_screenspace_diplacement(1.0,disposition == 'L')	

if disposition == 'L' then
try_find_assigned_viewport("A10C_LEFT_MFCD")
else 
try_find_assigned_viewport("A10C_RIGHT_MFCD")
end

 

And the new one

 

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
dofile(LockOn_Options.script_path.."materials.lua")
dofile(LockOn_Options.script_path.."config.lua")


local USE_BAKED = true


function GetScale() 
return 1
end
dofile(LockOn_Options.script_path.."MFCD/indicator/MFCD_sizes.lua")

render_target_always = LockOn_Options.flight.easy_radar 



if USE_BAKED then
purposes 	 	 = {100} -- avoid direct call


else

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

update_screenspace_diplacement(1.0,disposition == 'L')	

if disposition == 'L' then
	try_find_assigned_viewport("A10C_LEFT_MFCD")
else 
	try_find_assigned_viewport("A10C_RIGHT_MFCD")
end

if LockOn_Options.flight.easy_radar then 
   purposes 	 = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW,render_purpose.SCREENSPACE_OUTSIDE_COCKPIT}
else

   purposes 	 = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW}
end
end


indicator_type 	 = indicator_types.COMMON
used_render_mask = "interleave.dds"

 

And my monitor config file

 

_ = function(p) return p; end;
name = _('1440+1080+1080');
Description = 'THREE monitor configuration';
Viewports =
{
Center =
{
x = 0;
y = 0;
width = 2560;
height = 1440;
viewDx = 0;
viewDy = 0;
aspect = 1.77777778;
}
}

--/////////////////////////////////////
--A10C
--/////////////////////////////////////

A10C_LEFT_MFCD =
{
x = 4490;
y = 350;
width = 825;
height = 825;
}

A10C_RIGHT_MFCD =
{
x = 5570;
y = 350;
width = 825;
height = 825;
}

--///////////////////////////////////////
--AV8BNA Harrier
--///////////////////////////////////////

AV8_LEFT_MFCD =
{
x = 4490;
y = 350;
width = 825;
height = 825;
}

AV8_RIGHT_MFCD =
{
x = 5570;
y = 350;
width = 825;
height = 825;
}

--///////////////////////////////////////
--F14
--///////////////////////////////////////

F14_VDI =
{
x = 4490;
y = 350;
width = 825;
height = 825;
}

F14_HSD =
{
x = 5570;
y = 350;
width = 825;
height = 825;
}

F14_TID =
{
x = 2560;
y = 380;
width = 1100;
height = 1080;
}

F14_RWR =
{
x = 3660;
y = 360;
width = 820;
height = 820;
}

--///////////////////////////////////////
--F18 Hornet
--///////////////////////////////////////

F18_LEFT_MFCD =
{
x = 4490;
y = 350;
width = 825;
height = 825;
}

F18_RIGHT_MFCD =
{
x = 5570;
y = 350;
width = 825;
height = 825;
}

F18_CENTER_MFCD =
{
x = 2560;
y = 360;
width = 1080;
height = 1080;
}

--///////////////////////////////////////
--Flaming Cliffs
--///////////////////////////////////////

LEFT_MFCD =
{
x = 4490;
y = 350;
width = 825;
height = 825;
}

RIGHT_MFCD =
{
x = 2560;
y = 350;
width = 1720;
height = 1080;
}

--///////////////////////////////////////
--Ka-50
--///////////////////////////////////////

Shkval = 
{
x = 2560;
y = 380;
width = 1100;
height = 1080;
}

ABRIS = 
{
x = 3660;
y = 360;
width = 820;
height = 1080;
}

--///////////////////////////////////////
--M-2000C Mirage
--///////////////////////////////////////

VTB = --Radar
{
x = 4490;
y = 350;
width = 825;
height = 825;
}

M2K_RWR =
{
x = 5570;
y = 350;
width = 825;
height = 825;
}

--///////////////////////////////////////
--SA342 Gazelle
--///////////////////////////////////////

SA342_TV =
{
x = 2660;
y = 360;
width = 1280;
height = 1080;
}

--///////////////////////////////////////
--AJS37 Viggen
--///////////////////////////////////////

VIGGEN_RADAR =
{
x = 2650;
y = 380;
width = 960;
height = 960;
}

--///////////////////////////////////////
--UH-1H Huey
--///////////////////////////////////////

CARGO_CAM =
{
x = 2650;
y = 380;
width = 960;
height = 960;
}

--///////////////////////////////////////
--Combined Arms
--///////////////////////////////////////

GU_MAIN_VIEWPORT =
{
x = 0;
y = 0;
width = 2560;
height = 1440;
}

UIMainView = Viewports.Center

Posted

The files that need viewport variables are:

 

Mods\aircraft\A-10C\Cockpit\Scripts\MFCD\indicator\BAKE\init.lua

Mods\aircraft\A-10C\Cockpit\Scripts\MFCD\indicator\MFCD_init.lua

 

Replace all occurences of LEFT_MFCD and RIGHT_MFCD in both.

 

I also replaced the variables in Mods\aircraft\A-10C\Cockpit\Scripts\TGP\TGP_render_init.lua

My controls & seat

 

Main controls: , BRD-N v4 Flightstick (Kreml C5 controller), TM Warthog Throttle (Kreml F3 controller), BRD-F2 Restyling Bf-109 Pedals w. damper, TrackIR5, Gametrix KW-908 (integrated into RAV4 seat)

Stick grips:

Thrustmaster Warthog

Thrustmaster Cougar (x2)

Thrustmaster F-16 FLCS

BRD KG13

 

Standby controls:

BRD-M2 Mi-8 Pedals (Ruddermaster controller)

BRD-N v3 Flightstick w. exch. grip upgrade (Kreml C5 controller)

Thrustmaster Cougar Throttle

Pilot seat

 

 

Posted
The files that need viewport variables are:

 

Mods\aircraft\A-10C\Cockpit\Scripts\MFCD\indicator\BAKE\init.lua

Mods\aircraft\A-10C\Cockpit\Scripts\MFCD\indicator\MFCD_init.lua

 

Replace all occurences of LEFT_MFCD and RIGHT_MFCD in both.

 

I also replaced the variables in Mods\aircraft\A-10C\Cockpit\Scripts\TGP\TGP_render_init.lua

 

Lovely, Thanks very much! :thumbup:

 

Seems to work now after editing the BAKE file, now if they can fix the MFCD export brightness issue it'll be sweet.

 

Also, as you seem to know what you're doing, the MFCD screens seem to pause while in external view of the A10C, but don't in some other aircraft, is there a way to change that you know of?

Posted

I've been battling with F-16 MFDs but I haven't managed to get them to decent brightness.

Exports brightness has been an ongoing problem in DCS for other modules too. In fact, older A-10 cockpit exports were the most readable ones. Now everything seems to have "realism" overlays like pixels which are just INFURIATING.

 

Viewports pausing in external view can't be fixed in .lua from what I can gather. :(

My controls & seat

 

Main controls: , BRD-N v4 Flightstick (Kreml C5 controller), TM Warthog Throttle (Kreml F3 controller), BRD-F2 Restyling Bf-109 Pedals w. damper, TrackIR5, Gametrix KW-908 (integrated into RAV4 seat)

Stick grips:

Thrustmaster Warthog

Thrustmaster Cougar (x2)

Thrustmaster F-16 FLCS

BRD KG13

 

Standby controls:

BRD-M2 Mi-8 Pedals (Ruddermaster controller)

BRD-N v3 Flightstick w. exch. grip upgrade (Kreml C5 controller)

Thrustmaster Cougar Throttle

Pilot seat

 

 

Posted

 

Viewports pausing in external view can't be fixed in .lua from what I can gather. :(

 

That's a shame.

 

I really appreciate your help sorting out the A10C MFCD, thanks again.

  • Recently Browsing   0 members

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