Jump to content

Recommended Posts

Posted (edited)

Hello folks. DCS new guy, only a few days in. however I am a long time programmer, and fluent in Lua.

 

 

For the life of me, I am stuck trying to get some instruments assigned to viewports, on my 2 monitor set up.

 

 

My issue is NOT the monitor multiple monitor config or positioning. I tailored the MonitorSetup script, and that is working fine.

 

 

My problem is mapping the instruments/displays to the viewports.

 

 

Specifics:

I'm using the F-5E to try things out.

Ive created an named a viewport (in the monitor script) for the RWR, and I've tailored the "AN_ALR87_init.lua" script per the sticky thread

" [How To] Export ALL Indicators like MFCD via ViewPorts".

 

 

Result:

My viewports show on the second monitor in expected size & position, but they paint the 3d world exactly the same as the main view port. I can't get them to paint the instrument/data !!

 

 

I think I may be missing a step in the "export.lua" (which I have not modified).

 

 

Anyone have a suggestion ?

 

 

Thanks.

 

PajLzpMppHgAAAAASUVORK5CYII=

C:\Users\StarVoyager\iCloudDrive\DCS Stuff\viewports_sml.pngPajLzpMppHgAAAAASUVORK5CYII=

Edited by Cheyenne56
Posted

Still at this, with no joy.

 

 

I am using this thread as guidance:

https://forums.eagle.ru/showthread.php?t=191502

 

 

Does any have a currently working export of the F-5E Radar or RWR ?

 

 

 

This is the code I have added to the AN_ALR87_init file (per the thread from airdog in 2010):

 

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

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

indicator_type = indicator_types.COMMON purposes = {render_purpose.GENERAL}

try_find_assigned_viewport("F5E_RWR_SCREEN")

  • Thanks 1
Posted (edited)

Eureka !

 

 

Got it working, through slow careful trouble-shooting.

Apparently, there was some syntax issue in the MonitorConfig script I wrote clean.

 

 

I got success by copying the sample "LMFCD+Camera+RMFCD.lua" and making the position adjustments for my unusual monitor arrangements (3440x1440 on top of a 1920x1080). Then adjusting the RIGHT_MFD to the F-5E RWR_SCREEN.

 

Happy to share my script if anyone is having trouble with 3440 ultrawide HD or an F-5E with Ikaurs.

 

BTW I have improved the Ikuras F-5 profile with some bugs fixed and placed the TACAN and Warning panel all on one screen.

Edited by Cheyenne56
  • Recently Browsing   0 members

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