Floyd1212 Posted September 7, 2022 Posted September 7, 2022 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. You are missing two "=" on those last two exports, and one of your curly braces is backwards.
Derbroomaster Posted September 8, 2022 Posted September 8, 2022 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)
Floyd1212 Posted September 8, 2022 Posted September 8, 2022 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.
Derbroomaster Posted September 8, 2022 Posted September 8, 2022 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. 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)
Derbroomaster Posted September 8, 2022 Posted September 8, 2022 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. 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)
shagrat Posted September 9, 2022 Posted September 9, 2022 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. 2 Shagrat - Flying Sims since 1984 - 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)
Joker256 Posted September 16, 2022 Posted September 16, 2022 (edited) got perfectly work 2 mfd and tedac lcds Camera_3_MFCD.lua TEDAC_init.lua Edited September 18, 2022 by Joker256
Swift. Posted October 9, 2022 Posted October 9, 2022 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
Floyd1212 Posted October 9, 2022 Posted October 9, 2022 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.
Bunny Clark Posted October 16, 2022 Author Posted October 16, 2022 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. Oil In The Water Hornet Campaign. Bunny's: Form-Fillable Controller Layout PDFs | HOTAS Kneeboards | Checklist Kneeboards
Purzel Posted October 23, 2022 Posted October 23, 2022 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: The external picture is ok: 1
Floyd1212 Posted October 23, 2022 Posted October 23, 2022 On 4/7/2022 at 1:31 AM, Bunny Clark said: The TEDAC currently will show up as a double image within DCS when it is exported. There is no known workaround. Bunny mentioned this in the first post of this thread. Known issue. 2
Bunny Clark Posted October 29, 2022 Author Posted October 29, 2022 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. Oil In The Water Hornet Campaign. Bunny's: Form-Fillable Controller Layout PDFs | HOTAS Kneeboards | Checklist Kneeboards
Swift. Posted October 30, 2022 Posted October 30, 2022 (edited) 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 October 30, 2022 by Swift. 476th Discord | 476th Website | Swift Youtube Ryzen 5800x, RTX 4070ti, 64GB, Quest 2
Bunny Clark Posted October 31, 2022 Author Posted October 31, 2022 14 hours ago, Swift. said: Does the fix that we've been using before not work in 2.8? I'm not aware of a TEDAC export fix? Oil In The Water Hornet Campaign. Bunny's: Form-Fillable Controller Layout PDFs | HOTAS Kneeboards | Checklist Kneeboards
Swift. Posted October 31, 2022 Posted October 31, 2022 6 hours ago, Bunny Clark said: I'm not aware of a TEDAC export fix? Involves commenting out a line somewhere. I'll compile something and share it. 476th Discord | 476th Website | Swift Youtube Ryzen 5800x, RTX 4070ti, 64GB, Quest 2
Swift. Posted October 31, 2022 Posted October 31, 2022 (edited) 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 October 31, 2022 by Swift. 1 476th Discord | 476th Website | Swift Youtube Ryzen 5800x, RTX 4070ti, 64GB, Quest 2
hannibal Posted November 2, 2022 Posted November 2, 2022 On 9/16/2022 at 6:23 PM, Joker256 said: got perfectly work 2 mfd and tedac lcds Camera_3_MFCD.lua 954 B · 14 downloads TEDAC_init.lua 1.06 kB · 15 downloads what location should be the file "TEDAC_init.lua" be saved to @Joker256 find me on steam! username: Hannibal_A101A http://steamcommunity.com/profiles/76561197969447179
hannibal Posted November 4, 2022 Posted November 4, 2022 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
hreich Posted December 17, 2022 Posted December 17, 2022 (edited) 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 December 17, 2022 by hreich [sIGPIC][/sIGPIC] Pilot from Croatia
rrutko Posted December 18, 2022 Posted December 18, 2022 (edited) It says in the patch notes that it was fixed, but it wasn't. Mine does it still as well. If you flip it to night mode the double render goes away. Edited December 18, 2022 by rrutko
JIGGAwest Posted December 23, 2022 Posted December 23, 2022 (edited) 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 December 23, 2022 by JIGGAwest 1
Floyd1212 Posted December 23, 2022 Posted December 23, 2022 Does that “purposes” section enable display exports to stay live when looking at an external view, like F2?
grim_reaper68 Posted December 30, 2022 Posted December 30, 2022 (edited) 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 I just don't know how to take a screenshot from both screen together. Geforce experience only take the right screen as desktop. Edited December 30, 2022 by grim_reaper68
Joker256 Posted January 13, 2023 Posted January 13, 2023 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)
Recommended Posts