Jump to content

Apache Display Export Guide


Bunny Clark

Recommended Posts

You need to be very careful with your syntax.  It can help if you use an editor like Sublime Text (or others) that are aware of the language you are using, and can help with coloring the syntax to help spot issues.

image.png

You are missing two "=" on those last two exports, and one of your curly braces is backwards.

Link to comment
Share on other sites

Yes. 

16 hours ago, Floyd1212 said:

and the one that shows up as an eligible monitor profile is working now?

 

I'll get sublime today and try it out. I'm nowhere near being a coder, I'm just trying to get stuff to work ; )

Honestly, though, is that what would prevent a file from even being listed?

Processor AMD Ryzen 7 5800X 3.80 GHz; 80.0 GB DDR4 3200 (2 x 32; 2 x 8); nVidia RTX4090 24GB RAM; 2TB Samsung 980 NVmA; 2TB HDD; 1TB SSD (System); MoBo MSI X-570 A Pro; PSU: Corsair RM1000X
3 x ASUS 27" 2560 x 1440 75fps monitors, stitched/surround for DCS
1 x ViewSonic 27" Touchscreen (Viewsonic 3420)
Link to comment
Share on other sites

Yes.  When you correct those three errors, it shows up in the list.

When DCS starts up, it sees those files in the folder and reads them.  It gets to the mistakes towards the end of your file, which invalidates the whole thing, and it just skips the file and keeps going.

You don't need Sublime Text to make the changes required, I was merely suggesting it if you think you will be doing a lot of .lua editing in the future.

Link to comment
Share on other sites

1 hour ago, Floyd1212 said:

You don't need Sublime Text to make the changes required, I was merely suggesting it if you think you will be doing a lot of .lua editing in the future.

As long as I'm playing DCS, I'm likely going to be editing .lua files, lol. Can't be a bad tool to have around.

  • Like 1
Processor AMD Ryzen 7 5800X 3.80 GHz; 80.0 GB DDR4 3200 (2 x 32; 2 x 8); nVidia RTX4090 24GB RAM; 2TB Samsung 980 NVmA; 2TB HDD; 1TB SSD (System); MoBo MSI X-570 A Pro; PSU: Corsair RM1000X
3 x ASUS 27" 2560 x 1440 75fps monitors, stitched/surround for DCS
1 x ViewSonic 27" Touchscreen (Viewsonic 3420)
Link to comment
Share on other sites

OK, I made the corrections and the file is recognized.

Thanks very much for yours and Bunny's assistance. I truly appreciate it.

At this point it's simply a question of getting the outputs to the correct x,y parts of the screen, but I think I can handle that.

  • Like 1
Processor AMD Ryzen 7 5800X 3.80 GHz; 80.0 GB DDR4 3200 (2 x 32; 2 x 8); nVidia RTX4090 24GB RAM; 2TB Samsung 980 NVmA; 2TB HDD; 1TB SSD (System); MoBo MSI X-570 A Pro; PSU: Corsair RM1000X
3 x ASUS 27" 2560 x 1440 75fps monitors, stitched/surround for DCS
1 x ViewSonic 27" Touchscreen (Viewsonic 3420)
Link to comment
Share on other sites

vor 23 Stunden schrieb Derbroomaster:

Yes. 

 

I'll get sublime today and try it out. I'm nowhere near being a coder, I'm just trying to get stuff to work ; )

Honestly, though, is that what would prevent a file from even being listed?

Yes, DCS makes a check on config.lua files before it adds them, so any syntax errors do not crash the game itself.

If it does not show in the list 99% chance there is a syntax error.

  • Thanks 2

Shagrat

 

- Flying Sims since 1984 -:pilotfly:

Win 10 | i5 10600K@4.1GHz | 64GB | GeForce RTX 3090 - Asus VG34VQL1B  | TrackIR5 | Simshaker & Jetseat | VPForce Rhino Base & VIRPIL T50 CM2 Stick on 200mm curved extension | VIRPIL T50 CM2 Throttle | VPC Rotor TCS Plus/Apache64 Grip | MFG Crosswind Rudder Pedals | WW Top Gun MIP | a hand made AHCP | 2x Elgato StreamDeck (Buttons galore)

Link to comment
Share on other sites

  • 4 weeks later...

So what's the latest on using exported displays at night? There was a brief time when using the custom exports as in the first post here would allow you to control the video on the in cockpit displays independently of the exports, so you could turn them way down and still use the exports. But now it seems that using the custom exports as in this thread will just make the video feed on the exports disappear.

So I'm stuck, are we just expected to not fly this at night or something?

476th Discord   |    476th Website    |    Swift Youtube
Ryzen 5800x, RTX 4070ti, 64GB, Quest 2

Link to comment
Share on other sites

1 hour ago, Swift. said:

So I'm stuck, are we just expected to not fly this at night or something?

I posed a similar question here in August, but never got a suitable response.

If anyone has come up with a solution in the meantime, I would also love to know.  I don't fly night missions very often because of this, but when I do, I just have the in-cockpit displays cranked way up and blinding me so I can get my exports to work properly.

Link to comment
Share on other sites

On 10/9/2022 at 12:26 PM, Floyd1212 said:

I just have the in-cockpit displays cranked way up and blinding me so I can get my exports to work properly.

Yup, this is my solution as well in all DCs modules. At night I only look at the displays on my export monitor, and just leave the in-game displays blindingly bright. 

Link to comment
Share on other sites

I've got it working after inserting the following lines to my TEDAC_init.lua:

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

and added the following lines to my monitorsetup-file:

Spoiler

_  = function(p) return p; end;
name = _('Apache PURZEL TEDAC only');
Description = 'Mainscreen + TEDAC =2720x1080'
Viewports =
{
     Center =
     {
          x = 0;
          y = 0;
          width = 1920;
          height = 1080;
          viewDx = 0;
          viewDy = 0;
          aspect = 1920/1080;
     }
}

Gui =
{
    x = 0;
    y = 0;
    width = 1920;
    height = 1080;
}
UIMainView = Gui

    TEDAC =
{
     x = 2021;
     y = 0;
     width = 600;
     height = 600;
}

UIMainView = Viewports.Center
GU_MAIN_VIEWPORT = Viewports.Center



but my ingame-TEDAC shows a "doubled picture" (the exported picture on the hardware-monitor is displayed correctly!)
Does anybody know why?
Is it important to name the viewport "TECAC_LCD"...?

Ingame-picture:

image.png

The external picture is ok:

TEDAC-Image.jpg

  • Thanks 1
Link to comment
Share on other sites

On 10/23/2022 at 6:35 PM, Purzel said:

but my ingame-TEDAC shows a "doubled picture" (the exported picture on the hardware-monitor is displayed correctly!)
Does anybody know why?

Unfortunately, no. 

Myself and several others have tried chasing down a fix, but everything has been a dead end. At this point I suspect it's something only ED can fix. 

Link to comment
Share on other sites

12 hours ago, Bunny Clark said:

Unfortunately, no. 

Myself and several others have tried chasing down a fix, but everything has been a dead end. At this point I suspect it's something only ED can fix. 

Does the fix that we've been using before not work in 2.8?


Edited by Swift.

476th Discord   |    476th Website    |    Swift Youtube
Ryzen 5800x, RTX 4070ti, 64GB, Quest 2

Link to comment
Share on other sites

23 hours ago, Bunny Clark said:

I'm not aware of a TEDAC export fix?

Scripts/Aircrafts/_Common/Cockpit/ViewportHandling.lua

line 81. comment out render_purpose.GENERAL

Will remove the double render from all displays, will also completely remove the EUFD from the game window (so export only Im afraid).

If you are also using the old AH64_PLT_LEFT_MPCD (iirc) viewports, rather than the normal DCS LEFT_MPCD ones. You can go to Mods/Aircraft/AH-64D/Cockpit/Scripts/Displays/MFD/indicator/LCD/MFD_LCD.lua
and comment out lines 11-25.

Which will remove the in game renders completely (and the universal exports, hence the need for the older ones). Which means you can fly at night finally!


Edited by Swift.
  • Like 1

476th Discord   |    476th Website    |    Swift Youtube
Ryzen 5800x, RTX 4070ti, 64GB, Quest 2

Link to comment
Share on other sites

I was able to get the export to work, no special lua files needed except appending for the one that @Purzel described...

but of course customizing the actual multimontior config file specific to your multimonitors setup..

SIMPLY AMAZING... thanks for the find..

 

 

find me on steam! username: Hannibal_A101A

http://steamcommunity.com/profiles/76561197969447179

Link to comment
Share on other sites

  • 1 month later...

Does anybody know if this issue "-- TEDAC currently will show up as a double image within DCS when it is exported. There is no known workaround. "

 

is fixed in the latest patch? If it is -what i need to change in my lua files to get it fixed..?


Edited by hreich

[sIGPIC][/sIGPIC]

Pilot from Croatia

Link to comment
Share on other sites

On 10/31/2022 at 4:22 PM, Swift. said:

Scripts/Aircrafts/_Common/Cockpit/ViewportHandling.lua

line 81. comment out render_purpose.GENERAL

Will remove the double render from all displays, will also completely remove the EUFD from the game window (so export only Im afraid).

If you are also using the old AH64_PLT_LEFT_MPCD (iirc) viewports, rather than the normal DCS LEFT_MPCD ones. You can go to Mods/Aircraft/AH-64D/Cockpit/Scripts/Displays/MFD/indicator/LCD/MFD_LCD.lua
and comment out lines 11-25.

Which will remove the in game renders completely (and the universal exports, hence the need for the older ones). Which means you can fly at night finally!

 

Thanks Swift!!

 

if anyone is wondering For TEDAC double Render FIX 

I use the standard LEFT_MPCD, RIGHT_MPCD in the monitor config lua

Scripts/Aircrafts/_Common/Cockpit/ViewportHandling.lua , the lines 81-84 should look like this:

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

 


Edited by JIGGAwest
  • Thanks 1
Link to comment
Share on other sites

Hi 

I've solved the double display problem. Just put TEDAC for the TEDAC display and it will work fine. It switches also to the night mode.

_  = function(p) return p; end;
name = _('Camera+RMFCD2');
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 = 16/9;
     }
}
 
LEFT_MFCD =
{
     x = 1920;
     y = 0;
     width = 560;
     height = 560;
}
 
CENTER_MFCD =
{
     x = 2480;
     y = 490;
     width = 560;
     height = 560;
}
 
RIGHT_MFCD =
{
     x = 3040;
     y = 0;
     width = 560;
     height = 560;
}
 
TEDAC =
{
     x = 2480;
     y = 490;
     width = 560;
     height = 560;
}
 
UIMainView = Viewports.Center
GU_MAIN_VIEWPORT = Viewports.Center

Desktop Screenshot 2022.12.30 - 22.01.50.39.png

Desktop Screenshot 2022.12.30 - 21.52.08.49.png

I just don't know how to take a screenshot from both screen together. Geforce experience only take the right screen as desktop.  


Edited by grim_reaper68
Link to comment
Share on other sites

  • 2 weeks later...
On 11/2/2022 at 7:57 AM, hannibal said:

what location should be the file "TEDAC_init.lua" be saved to @Joker256

I've installed to program files, so my way will be like this:

C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\AH-64D\Cockpit\Scripts\Displays\TEDAC

 

(sry for so long answer)

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