Jump to content

DCS-ExportScripts for Stream Deck Community Github Library


Recommended Posts

Hey, since the lastest update im having huge lag when exporting the dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]])

Only in the apache and only in some servers, how do i make exportscript log?

I have found this but i don't know how to work with it
--local lrename1, lrename2 = os.rename(ExportScript.Config.LogPath, ExportScript.Config.LogPath..".old")
    ExportScript.logFile = io.open(ExportScript.Config.LogPath, "wa") -- "W+"
    if ExportScript.logFile then
        ExportScript.logFile:write('\239\187\191') -- create a UTF-8 BOM
        ExportScript.logFile:write("ExportScript Version: "..ExportScript.Version.ExportScript.."\r\n")
    end
    --if lrenmae1 == nil then
    --    ExportScript.Tools.WriteToLog("Rename Error: "..lrename2)
    --end

Link to comment
Share on other sites

Is there anything else in your Export Lua?

I dint know about the logging but happy to try out your script and see if something in there could be causing issues if you’d like. And just to check, lad in the export or lag in the simulation?


Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

-- load the DCS ExportScript for DAC and Ikarus
dofile(lfs.writedir()..[[Scripts\SimShaker-export-core\ExportCore.lua]])
local SimShakerlfs=require('lfs'); dofile(SimShakerlfs.writedir()..'Scripts/SimShaker.lua')
dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]])
dofile(lfs.writedir()..[[Scripts\wwt\wwtExport.lua]])
local wwtlfs=require('lfs')

pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil)

This is my export. working perfect for a year now, had huge lag spikes when the apache starts. i tried to understand what the issue was and it was flawless without the exportscript.lua line. only in the apache in some server

 

Link to comment
Share on other sites

Ok, not at home so cannot get too involved but I had similar issue, the Virpil LED export started causing the ExportScript to lag badly but it didn’t happen every time, just most of the time then stopped happening for a week then started again.

So my first advice is move exportscript to the top and disable your sim shaker lines and try that a few times. If still bad you could try turning off winwing instead. If you can isolate either of those not playing nice with exportscript that’s a start.

Then playing with order and timeouts is a slow process.


The other element that causes issues on some servers not others is if the Apache export file uses any old FC3/base game info commands as some servers disable them and it can cause the script to hang a bit.


Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

4 minutes ago, Trigati said:

Ok, not at home so cannot get too involved but I had similar issue, the Virpil LED export started causing the ExportScript to lag badly but it didn’t happen every time, just most of the time then stopped happening for a week then started again.

So my first advice is move exportscript to the top and disable your sim shaker lines and try that a few times. If still bad you could try turning off winwing instead. If you can isolate either of those not playing nice with exportscript that’s a start.

Then playing with order and timeouts is a slow process.


The other element that causes issues on some servers not others is if the Apache export file uses any old FC3/base game info commands as some servers disable them and it can cause the script to hang a bit.


Sent from my iPhone using Tapatalk

i have tried to reorder the line in the export but still same issue. 
I could send you the IP to the own dedicated server foothold. you can try to start the apache and take off

 

Link to comment
Share on other sites

Yes, if you are using the standard one then it's very likely causing the issues. It has some really cool code built into it (many of them do, I guess developed by the same person) which pulls not only all the standard aircraft data but also pulls map, vehicle, object and AI data.....so it can display the direction/dictance to nearest enemy, SAM, airbase etc etc....which could be processing you don;t need, although I doubt that's the problem, it's more likely that the server is restricting/not sending some of that data which causes the scripts to stutter/fail/recover...if your version of that file has these rows I recomend commenting them out/disabling them and trying.

 

  if LoIsObjectExportAllowed() then -- returns true if world objects data is available
    if LoIsOwnshipExportAllowed() then -- returns true if ownship data is available
  ExportScript.LoAircraftInfo(mainPanelDevice) -- Provides a lot of aircraft properties
  ExportScript.AirportInfo(mainPanelDevice) -- Provides info on the two closest airports
  ExportScript.WindsAloft(mainPanelDevice) -- Gets winds at the aircraft
  ExportScript.GroundRadar(mainPanelDevice) -- Reports 2 closest friendlies and 2 enemies (Use in Single Player)
  ExportScript.AirRadar(mainPanelDevice) -- Reports 2 closest friendlies and 2 enemies (Use in Single Player)
  ExportScript.IglaHunter(mainPanelDevice) -- Locates closest Igla (Use in Single Player)

Link to comment
Share on other sites

1 hour ago, Trigati said:

Yes, if you are using the standard one then it's very likely causing the issues. It has some really cool code built into it (many of them do, I guess developed by the same person) which pulls not only all the standard aircraft data but also pulls map, vehicle, object and AI data.....so it can display the direction/dictance to nearest enemy, SAM, airbase etc etc....which could be processing you don;t need, although I doubt that's the problem, it's more likely that the server is restricting/not sending some of that data which causes the scripts to stutter/fail/recover...if your version of that file has these rows I recomend commenting them out/disabling them and trying.

 

  if LoIsObjectExportAllowed() then -- returns true if world objects data is available
    if LoIsOwnshipExportAllowed() then -- returns true if ownship data is available
  ExportScript.LoAircraftInfo(mainPanelDevice) -- Provides a lot of aircraft properties
  ExportScript.AirportInfo(mainPanelDevice) -- Provides info on the two closest airports
  ExportScript.WindsAloft(mainPanelDevice) -- Gets winds at the aircraft
  ExportScript.GroundRadar(mainPanelDevice) -- Reports 2 closest friendlies and 2 enemies (Use in Single Player)
  ExportScript.AirRadar(mainPanelDevice) -- Reports 2 closest friendlies and 2 enemies (Use in Single Player)
  ExportScript.IglaHunter(mainPanelDevice) -- Locates closest Igla (Use in Single Player)

man.. you are the King. problem is now resolved 🙂

 

https://prnt.sc/og-khWno4JoE

Link to comment
Share on other sites

On 11/25/2023 at 3:23 PM, Wingless091 said:

I've recently encountered an issue where the button lists for certain modules won't populate when doing the ID lookup. My stream deck still works for these modules in game but currently can't edit anything. Install path is correct and all other modules work fine.

Screenshot 2023-11-24 231953.png

Screenshot 2023-11-24 232037.png

Anyone else seeing this same issue? I am also getting this since the last patch, I can only assume this might be due to a change in the exports for these aircraft?

i9-12900KF, MSI Gaming Trio X 4090, Gigabyte Z690, G.Skill 64GB 3600MHz DDR4, 3 x Samsung 990 Pro 2TB M.2 Thermaltake ToughPower GF3 1000W PCIe Gen 5.0 ATX3.0 PSU, NZXT Z73 AIO cooler, Meta Quest 3 VR headset, Virpil WarBRD + Virpil Constellation Alpha Grip, Virpil CM3 Throttle, Thrustmaster TPR Rudder Pedals.
Link to comment
Share on other sites

On 1/2/2023 at 6:44 AM, Nirvi said:

Export script for the FW-190 A8

It's my first try in creating a profile, hope I made no mistakes.

 

FW-190A8.lua 16.4 kB · 21 downloads

Thanks. I'm working on making profiles and I definitely will use this.

I'm almost done making my profile for the P-47D-30. I've mapped everything with the current .lua file for it, and I just need to update the images. I'm having trouble with the P-47D-40 and the P-47D-30 Early since there aren't any .lua files for them. Do you happen to have them or know if anyone worked on them?

Link to comment
Share on other sites

  • 2 weeks later...
On 12/4/2023 at 6:35 AM, nilpointer said:

Anyone else seeing this same issue? I am also getting this since the last patch, I can only assume this might be due to a change in the exports for these aircraft?

Yes, I am also getting no IDs for the F15 right now. Bummer!

Link to comment
Share on other sites

I have a functioning fix PR for this, working with @ctytler to get it merged, but you can pull the branch and build it now to use.

  • Like 2
i9-12900KF, MSI Gaming Trio X 4090, Gigabyte Z690, G.Skill 64GB 3600MHz DDR4, 3 x Samsung 990 Pro 2TB M.2 Thermaltake ToughPower GF3 1000W PCIe Gen 5.0 ATX3.0 PSU, NZXT Z73 AIO cooler, Meta Quest 3 VR headset, Virpil WarBRD + Virpil Constellation Alpha Grip, Virpil CM3 Throttle, Thrustmaster TPR Rudder Pedals.
Link to comment
Share on other sites

  • 2 weeks later...

Does anyone have a working DCS ExportScript for the A-10CII that is properly exporting frequency and TACAN values for Stream Deck use?  At some point in recent patches, mine stopped working properly - it displays initial values but does not update when radio or TACAN values are updated.  The Chaff and Flare counts don't seem to be updating either.  Thoughts? 


Edited by Rowdy
Link to comment
Share on other sites

I run DCS on Steam. Managed to use community created profiles for stream deck XL. But when I try to create buttons of my own, ID lookup for every clickable aircraft is empty. 
My DCS install directory is C:\Program Files (x86)\Steam\steamapps\common\DCSWorld , which I updated for IDlookup function, but no joy. Any way to fix this?

MSI z790, i5 13600k128 Gb DDR4, RTX 4090, 980 pro 2 Tb, 4 SATA SSD, 3 HDD, SB AE-7, Acer 35" curved UltraWide 200Hz, LG CX 55" HDR 120Hz G-Sync, Logitech G510s, Razer Tartarus v2, Naga hex v2, Pico 4 256 Gb, Thrustmaster WARTHOG, RS FSSB MK II Ultra, TPR pedals, Cougar MFDs, Logitech flight switch and radio panels, x56 throttle, Saitek throttle quadrant, Trackir 5, Buttkicker gamer+, Logitech G920 with pedals, shifter, handbrake, Steam controller, Sony Dualsense, Edifier s760d 5.1 540Wt, Beyerdynamic dt 990 (600 ohm), dt 770 pro (250ohm), Razer stream controller, Elgato stream deck XL

FC3, A10-CII, AV-8B, F-5E, F-14, F-15E, F-16, F-18, Viggen, Mirage F1, M2000, C-101, MB-339, Sabre, Mig-15, Mig-21, I-16, Spitfire, Bf-109, 190A8,D9,  P-47, P-51,  Mosquito, Ka 50-III, Mi-8, AH-64D, Mi-24, Gazelle, NS430, Supercarrier, ALL maps, CA, WW2 assets pack

Link to comment
Share on other sites

On 11/25/2023 at 7:23 AM, Wingless091 said:

I've recently encountered an issue where the button lists for certain modules won't populate when doing the ID lookup. My stream deck still works for these modules in game but currently can't edit anything. Install path is correct and all other modules work fine.

Screenshot 2023-11-24 231953.png

Screenshot 2023-11-24 232037.png

I have exactly the same issue. I also have same issue with Ka-50_3. Streamdeck DCS Interface is not populating the keybinds on those two aircraft. All others work just fine.

 

Any tips for KA-50_3? I have the Ka-50.lua file copied and renamed as Ka-50_3.lua. However, I'm unable to see the keybinds from streamdeck. The binds could also be checked from lua-file directly but it's rather inconvenient - I did it to F-15E for my 140 long script...

Link to comment
Share on other sites

I've been trying to rebuild an old BS3 profile but I don't think it's communicating at all, more than just the list populating.

...But, it does work on the BS2, how about that.


Edited by Wostg
Link to comment
Share on other sites

There is support even for the Bronco and Su 30, but I can’t find the MiG19.. Maybe I missed something?

I wonder if it is possible to use the MiG 21 script for the MiG 19 somehow?


Edited by Red_Pilot
Link to comment
Share on other sites

  • Recently Browsing   0 members

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