Jump to content

Recommended Posts

Posted (edited)

Guys, I have other threads on this basically looking at the Helios side, but I used to have both the CDU and the RWR indicator displayed via the viewport thing in the monitor setup. By sheer luck I got the CDU displaying

I had trouble getting them to work despite using the .lua files that I backed up. By sheer luck I got the CDU displaying, I have appended the following code to the init.lua files for the  AN_ALR69V (there is no "RWR" device quoted and the AN_ALR69V is the only device that mentions RWR)

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

Can you advise if that is the correct way to do it now, or whether it has changed? The MFCD's and the CDU appear perfectly on their three allocated screens and I have no problem with the monitorsetup.lua stuff. Even if I set it to display the  RWR indicator in the middle of the main screen nothing shows up.

Here's my camera set up .lua

_  = function(p) return p; end;
name = _('Camera+LMFCD+RMFCD_RWR6');
Description = 'Left MFCD on the left monitor,Right MFCD on the right and camera on the center'
Viewports =
{
     Center =
     {
          x = 0;
          y = 0;
          width = 2560;
          height = 1440;
          viewDx = 0;
          viewDy = 0;
          aspect = 1.78;
     }
}

LEFT_MFCD =
{
     x = 2750;
     y = 0;
     width = 610;
     height = 610;
}

RIGHT_MFCD =
{
     x = 2700;
     y = 620;
     width = 610;
     height = 630;
}

ED_A10C_RWR =
{
	x = 3500;
	y = 0;
	width = 610;
	height = 610;
}
ED_A10C_CDU =
{
     x = 3600;
     y = 1024;
     width = 800;
     height = 480;
}

UIMainView = Viewports.Center
GU_MAIN_VIEWPORT = Viewports.Center

Can any of you see where the issue is? 

Cheers

Les

Edited by lesthegrngo
Posted (edited)

Hi again - I got it working, using the AN_ALR69V_init.lua file in this thread, obviously after changing the callout in the camera lua file to match

I had actually tried the same callout (A10C_RWR) on a previous attempt but there must be something in the syntax or characters that is different because when I pasted the version from the thread in it worked straight away

Not going to complain, hope this helps someone. On to sorting the Helios bit

Les

Edited by lesthegrngo
Solved
  • Like 2
  • Thanks 1
  • lesthegrngo changed the title to CDU and RWR on viewports (Solved)
  • 7 months later...
Posted

Hi all, it's been a while as I have been busy with my Racing Rig, and finally making a dedicated PC for it.

However when I reinstalled the Flight Sim PC back on to my rig, I am no longer getting the CDU being displayed on the dedicated monitor. It looks like the call out has changed, but I can't see what it could now be. I have tried the following callouts 

ED_A10C_CDU =

 

A10C_CDU_SCREEN =

 

ED_A10C_CDU_SCREEN =

Does anyone have a working exported CDU that they can confirm the callout for?


Thanks

Les

Posted

Hi all - I must have been half asleep yesterday when I was doing this, as I didn't see that the RWR was also not showing

I changed 

ED_A10C_RWR =

to 

 

RWR_SCREEN =

and that fixed it. 

There must have been some other changes to DCS as I also was now getting the original HUD being displayed again in the 'nose view' alongside the new exported HUD

 

The original HUD is called out in the HUD-init.lua file in this line

indicator_type = indicator_types.COLLIMATOR
purposes 	 = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW}

However I replaced it with this

-- indicator_type = indicator_types.COLLIMATOR
-- purposes 	 = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW}

effectively commenting out the lines. 

If you want to see more I did this post a while back

Les

  • Like 1
  • Recently Browsing   0 members

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