Jump to content

[ADDED]Here how to specifically and indipendently export the JF-17 MFDs


Recommended Posts

Posted (edited)

re posting here because I can't change the title of my original thread.

 

If you are already exporting the hornet mfds, and want to export those of the JF-17 differently, within the same monitorsetup file, here is what you need to do:

 

------------------------------------

 

Ok, I managed to export the MFDS from my monitorsetup file, so that they have a different placement and sizing than the hornet or harriers MFDs.. to do so I modified these three files in Mods\aircraft\JF-17\Cockpit\Scripts\MFCD

 

'LEFT_MFCD' in MFCD_init_LEFT.lua

'CENTER_MFCD' in MFCD_init_CENTER.lua

'RIGHT_MFCD' in MFCD_init_RIGHT.lua

 

example from the first file :

 

dofile(LockOn_Options.script_path.."MFCD/MFCD_pageID_defs.lua")

mfcd_id = MFCD.LMFCD

 

dofile(LockOn_Options.script_path.."MFCD/MFCD_init_COMMON.lua")

 

-- debugGUI = true

 

init_pageID = PAGE_ID.PAGE_ID_EFIS

 

 

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

 

-- MFCD position in HUD only view

-- MFCD_set_screenspace_displacement(3/4, -1, 0.8)

local w = LockOn_Options.screen.width;

local h = LockOn_Options.screen.height;

 

local hud_only_view_position = best_fit_rect(0, h * (1 - 50/120), w/3 , h * 50/120, Viewport_Align.left, Viewport_Align.vcenter, MFCD_aspect)

dedicated_viewport = hud_only_view_position

dedicated_viewport_arcade = hud_only_view_position

 

-- render_purpose.GENERAL

-- try_find_assigned_viewport('LEFTJ_MFCD')

 

local default_viewport = find_viewport('LEFTJ_MFCD')

if default_viewport then

dedicated_viewport = {default_viewport.x, default_viewport.y, default_viewport.width, default_viewport.height}

dedicated_viewport_arcade = {default_viewport.x, default_viewport.y, default_viewport.width, default_viewport.height}

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

render_target_always = true

end

in red, the lines I modified and in bold the letter I added (J, for JF17)

 

I did the same for the RIGHT and CENTER file, adding a J in those two lines.

 

then, in my monitorsetup file, I added 3 new entries for those

 

LEFTJ_MFCD =

{

x = 3958.0;

y = 290.0;

width = 396;

height = 560;

}

 

RIGHTJ_MFCD =

{

x = 5227.0;

y = 290.0;

width = 396;

height = 560;

}

 

CENTERJ_MFCD =

{

x = 4590.0;

y = 480.0;

width = 396;

height = 560;

}

for reference, here are the original exports of my hornet and harrier mfds, so you can see the difference.

 

I had to change the size (proportions) and placement a bit

 

LEFT_MFCD =

{

x = 3953.0;

y = 248.0;

width = 406;

height = 406;

}

RIGHT_MFCD =

{

x = 5222.0;

y = 248.0;

width = 406;

height = 406;

}

CENTER_MFCD =

{

x = 4585.0;

y = 438.0;

width = 406;

height = 406;

}

as you can see, this is a compromise, given that they are below my thrustmaster MFDs, and also for the center one, there is my A-10C UFC. but it kinda works.

 

850632BC-BEF6-4AEE-9CF5-A1DCEDDCBFDD_zps6sol05ot.jpg

Edited by L0op8ack

[sIGPIC]https://forums.eagle.ru/signaturepics/sigpic70550_3.gif[/sIGPIC]

Asus Z390-H - SSD M.2 EVO 970 - Intel I9 @5.0ghz - 32gb DDR4 4000 - EVGA 3090 - Cougar FSSB + Virpil WRBRD + Hornet Stick - Thrustmaster TPR Pedal + WinWing MIP + Orion + TO and CO pannels - Track IR5

Posted

It would be a lot simpler if they did the same as for the KA-50 Shkval and ABRIS, and just added a second name like this, so it works either way. If you add a Shkval entry, it uses that, otherwise it just uses the Left MFCD entry:-

 

 

"try_find_assigned_viewport("Shkval","LEFT_MFCD")"

Posted (edited)
It would be a lot simpler if they did the same as for the KA-50 Shkval and ABRIS, and just added a second name like this, so it works either way. If you add a Shkval entry, it uses that, otherwise it just uses the Left MFCD entry:-

 

 

"try_find_assigned_viewport("Shkval","LEFT_MFCD")"

 

added:

 

 

try_find_assigned_viewport('JF17_LEFT_MFCD', 'LEFT_MFCD')

try_find_assigned_viewport('JF17_CENTER_MFCD', 'CENTER_MFCD')

try_find_assigned_viewport('JF17_RIGHT_MFCD', 'RIGHT_MFCD')

 

 

Available in next update.

 

 

:)

Edited by L0op8ack
Posted (edited)

Thanks L0op8pack. I'm really looking forward to this.

 

I'm not sure if this is possible within the DCS framework, but this feature would be even better if there was a way to split the exports between the primary and secondary portions of the MFCD. This way we could move the secondary data to a spot just below the Thrustmaster MFD bezel without cutting off any display (or cut the secondary data altogether if we don't have room).

 

For example

 

try_find_assigned_viewport('JF17_LEFT_MFCD1',JF17_LEFT_MFCD','LEFT_MFCD')

try_find_assigned_viewport('JF17_LEFT_MFCD2')

Edited by Home Fries
Posted

Splitting the displays will allow for more flexibility as TM Cougar are the most available MFDs on the market.

 

The alignment of the menu options doesn't completely line up due to the differences in the TM Cougar frame vs the actual plane MFDs but it's tolerable. The Gain and Sym rocker switches are not present in the JF17. Thank you very much for this post Immel, I managed to get the MFDs working well. Bombing runs are more fun now!

Posted

We implemented the MFCD as whole one piece as RL.

I dont think it's doable so far, maybe later, not sure, it reqiure heavy re-code MFCD implement.

Posted

Once that gets sorted out I will look at purchasing.

 

I don't think there is a larger MFD version available, just the TM Cougars.?

[sIGPIC][/sIGPIC]

i7 10700K OC 5.1GHZ / 500GB SSD & 1TB M:2 & 4TB HDD / MSI Gaming MB / GTX 1080 / 32GB RAM / Win 10 / TrackIR 4 Pro / CH Pedals / TM Warthog

  • 2 weeks later...
Posted

I don't what happened, but before the patch I had MFCDs on second screen, after the patch I don't. Hornet still working, but JF MFCD are missing. Any idea?

Posted

ok solved i try this and it semms to work

 

local default_viewport = find_viewport("JF17_RIGHT_MFCD", "RIGHT_MFCD")

if default_viewport then

dedicated_viewport = {default_viewport.x, default_viewport.y, default_viewport.width, default_viewport.height}

dedicated_viewport_arcade = {default_viewport.x, default_viewport.y, default_viewport.width, default_viewport.height}

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

render_target_always = true

end

 

try_find_assigned_viewport("RIGHT_MFCD")

  • 2 months later...
  • 5 months later...
Posted (edited)
Does anyone have the actual dimensions for the jf17 mfds im trying to build a custom mfd.

should be 20.3 cm (8.0 in) wide and 30.5 cm (12.0 in)

 

source:https://en.wikipedia.org/wiki/CAC/PAC_JF-17_Thunder

Edited by yuck32

[sIGPIC][/sIGPIC]

  • 10 months later...
Posted

Really interesting, but since you're going to edit .lua files inside your installation folder, I'm little bit worried about integrity check.

It's this solution working on multiplayer or it's detected as "tainted client" by server?

Thanks 😉

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

  • Recently Browsing   0 members

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