Jump to content

DCS-ExportScripts for Stream Deck Community Github Library


Recommended Posts

11 hours ago, Bailey said:

Post your lua here so someone can take a look. 

Development of the app is focused on dcs-bios integration. If you can make those exceptions for the handful of aircraft it would be greatly appreciated. 

I have managed to make the F1 export script work, there was a problem with Encoding of the lua and probably also Line endings. 

Cant really modify the original code of StreamDeck interface. Might have a look at it later and change the lookup path for Mirage in my own fork.

Because of pure interest, I am writing my own tool for exporting the Button IDs from DCS modules. As I am C# developer not used to work LUA, it's a chance to learn. I was already able to get some data for Mirage F1, so will be working on formatting those into CSV or HTML page. If the project goes well, I might publish it for everyone. This tool could also be in form of DLL to be used by other projects.

I have also looked at StreamDeck development examples and Elgato doesnt provide C# toolkit, which is a pitty. As StreamDeck DCS interface doesnt seem to be updated, I wanted to check, how much work it would be to recreate it from scratch and add some ideas. For now, not an option for me. I just would like to ease some work for others in looking up those damn Button IDs for their SD profiles.


Edited by ShadowDragonCZ
  • Like 4
Link to comment
Share on other sites

Has anyone experienced a massive drop in frames while using the Apache lua file and turning ON the CMWS ?

Whenever I turn ON the CMWS I drop 30fps, and if I turn it back OFF I recover the lost frames.

As a note I downloaded the Apache lua from the exports library on github and I use it in conjunction with this stream deck profile:

https://www.digitalcombatsimulator.com/en/files/3321515/

Has anyone have an idea on what might be the issue?


Edited by secretcode
Link to comment
Share on other sites

On 8/1/2022 at 12:37 AM, secretcode said:

Has anyone experienced a massive drop in frames while using the Apache lua file and turning ON the CMWS ?

Whenever I turn ON the CMWS I drop 30fps, and if I turn it back OFF I recover the lost frames.

As a note I downloaded the Apache lua from the exports library on github and I use it in conjunction with this stream deck profile:

https://www.digitalcombatsimulator.com/en/files/3321515/

Has anyone have an idea on what might be the issue?

 

I just tried to test this with the instant mission mission on the Persian map. I didn't notice any difference. Turning on/off the CWMS and all the switches. 

13900@5.8Ghz, Asus TUF 4090 OC, 64GB@6400mhz DDR5, 4K, TrackIR 5, Tobii, Virpil CM2, CM3
F-15E | F-16C | F/A-18C | A-10C | A-10C II | AV-8B | AH-64D |  MI-24P | MI-8 | BS 2 | UH-1H | Mosquito | BF 109 | Spitfire | P-47D | CA | SC | WWII AP

 

Link to comment
Share on other sites

On 6/14/2022 at 12:47 AM, Scofflaw said:

Sorry, I'm not super familiar with github, but I downloaded the .zip from github (this URL : https://github.com/asherao/DCS-ExportScripts/archive/refs/heads/master.zip).  Is this not the latest?

On github, I see the tools.lua link on line 38 of this file : https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportScript.lua

This matches the exportscript.lua in on my computer, am I using the wrong version?

Hi,

Did you resolve this problem, I have the same symptoms and went through the same troubleshooting process before I found this thread. High spec PC, latest DCS-ExportScript = unusable stutters

Thanks

W10 64

I7 4790k o/c to 4.6Ghz

Asus Maximus Ranger VII

24gb DDR3 RAM @ 2133

Asus Strix 1080ti OC

ASUS ROG G-sync 27" monitor

DCS on M2 drive Samsung 960 Pro

MS FFB2 with F-16 grip

CH pro throttle

MFG Crosswind pedals

TrackIR 5

3 x Bodnar button & axis boxes

Link to comment
Share on other sites

10 hours ago, marcost said:

Hi,

Did you resolve this problem, I have the same symptoms and went through the same troubleshooting process before I found this thread. High spec PC, latest DCS-ExportScript = unusable stutters

Thanks

 

Unfortunately, I was unable to get this script working without the stutters.  I often see other people complaining of stutters with export LUAs, but none of the fixes they propose work for me either.

run come save me

Link to comment
Share on other sites

Hi,

I feared that was the situation, which is a real pity.

Thanks for taking the time to reply.

Regards,

M

 

**EDIT**

I did find a workround for partial functionality by removing the two-way communication process. By removing the line:

ExportScript.Tools.createUDPListner()       in ExportScript.lua

By doing this, there is still status info from DCS>>Streamdeck but obviously I cannot send keypresses Streamdeck>>DCS. However, I have working switch status lights etc on the Streamdeck and no stutters.

Also suggests where the issue lies, so I will investigate more.

 

 


Edited by marcost
More info

W10 64

I7 4790k o/c to 4.6Ghz

Asus Maximus Ranger VII

24gb DDR3 RAM @ 2133

Asus Strix 1080ti OC

ASUS ROG G-sync 27" monitor

DCS on M2 drive Samsung 960 Pro

MS FFB2 with F-16 grip

CH pro throttle

MFG Crosswind pedals

TrackIR 5

3 x Bodnar button & axis boxes

Link to comment
Share on other sites

I managed to essentially eliminate the stutters by editing Config.lua and increasing ExportScript.Config.ExportInterval. In mine it was 0.01 (even though the comment suggested it should be 0.05) and I changed to 0.25 and it was much much better 

Link to comment
Share on other sites

I tried changing that setting, but it just made the stutters further apart on my system

Thanks

W10 64

I7 4790k o/c to 4.6Ghz

Asus Maximus Ranger VII

24gb DDR3 RAM @ 2133

Asus Strix 1080ti OC

ASUS ROG G-sync 27" monitor

DCS on M2 drive Samsung 960 Pro

MS FFB2 with F-16 grip

CH pro throttle

MFG Crosswind pedals

TrackIR 5

3 x Bodnar button & axis boxes

Link to comment
Share on other sites

On 28/07/2022 at 20:44, ShadowDragonCZ said:

Salut à tous!

Bailey, avez-vous réussi à obtenir la liste des valeurs de l'interface DCS après avoir cliqué sur Actualiser ? J'ai copié le Mirage-F1CE.lua pour exporter le dossier des scripts et je n'obtiens aucune sortie en SD. Les autres modules et scripts fonctionnent très bien.

De plus, le plugin DCS Interface est-il toujours en développement ? Il ne peut pas lire les identifiants DCS, car l'outil utilisé pour les extraire, qui fait partie du plugin, ne peut pas lire les données cliquables grâce au fait que la structure des dossiers est différente pour F1. Il n'a pas de cas exceptionnel pour F1, comme c'est le cas pour L-39 ou C-101. Ce serait une solution assez facile pour le développeur, même si je pourrais le faire moi-même, mais on dirait que le développement du plugin est mort, ce qui est dommage.

Merci de vos conseils Bailey, mais en ce qui me concerne, j'ai suivi les procédures pour que je puisse jouer avec mon streamdeck xl et les touches ne sont pas reconnues dans le jeu. Même sur le mirage F1, quand j'appuie sur Id Lookup et qu'il faut ouvrir la fenêtre et chercher son cockpit avion, il trouve bien le cockpit Mirage F1 mais rien n'est écrit dedans. Tout cela est fatigant et il faut, à mon avis, savoir quelles sont les versions exigées que vous utilisez. Un petit film sur youtube serait bienvenu. Je pense que je ne suis pas le seul à ne pas pouvoir faire fonctionner le streamdeck pour DCS. 

Link to comment
Share on other sites

SU30 mod luas added 
https://github.com/asherao/DCS-ExportScripts/tree/master/Scripts/DCS-ExportScript/ExportsModules

8 hours ago, fouga magister said:

Merci de vos conseils Bailey, mais en ce qui me concerne, j'ai suivi les procédures pour que je puisse jouer avec mon streamdeck xl et les touches ne sont pas reconnues dans le jeu. Même sur le mirage F1, quand j'appuie sur Id Lookup et qu'il faut ouvrir la fenêtre et chercher son cockpit avion, il trouve bien le cockpit Mirage F1 mais rien n'est écrit dedans. Tout cela est fatigant et il faut, à mon avis, savoir quelles sont les versions exigées que vous utilisez. Un petit film sur youtube serait bienvenu. Je pense que je ne suis pas le seul à ne pas pouvoir faire fonctionner le streamdeck pour DCS. 

The Mirage F1 is not recognized because DCS-Interface does not have the capability to read the files for modules with multiple versions like the F1 and C101. 

There are instructions on how to use DCS-Interface with the Mirage here: https://github.com/asherao/DCS-ExportScripts/wiki/Mirage-F1


Edited by Bailey
Link to comment
Share on other sites

23 minutes ago, fouga magister said:

désolé, cela ne fonctionne pas.

If you would like assistance on how you can get it yo work for your system, please describe your processes and expectations as detailed as you can. It has worked for myself and many others.


Edited by Bailey
  • Like 1
Link to comment
Share on other sites

Bailey

I have just downloaded your Mirage F1 profile and installed it in my streamdeck.  The profile pictures in your July 21st post have a lot more icons, etc than the profile I just downloaded.  I downloaded the profile from your July 21st  post today.  Is there a more recent profile?pic 1.png

Trackir4 using the latest Trackir 5 software, Win10 Pro [Creator Update] updated from Win7Pro Pro 64Bit, Intel® Core™ i5-2500 3.30 GHz 6M Intel Smart Cache LGA115 , GigaByte GA-Z68XP-UD4 Intel Z68 Chipset DDR3 16GB Ram, GTX MSI Gaming 1060 [6 GB] Video Card, Main Monitor 1 on left 1920x1080 Touchscreen Monitor 2 on right 1920x1080 .

Link to comment
Share on other sites

2 hours ago, sobe said:

Bailey

I have just downloaded your Mirage F1 profile and installed it in my streamdeck.  The profile pictures in your July 21st post have a lot more icons, etc than the profile I just downloaded.  I downloaded the profile from your July 21st  post today.  Is there a more recent profile?pic 1.png

No, I have not posted a newer profile. The profile remains mostly the same. The differences can be found in the wiki. If you need help making or finding specific tiles, let me know. 

Link to comment
Share on other sites

Bailey

This is my first attempt at using the streamdeck with the DCS Interface so I am still trying to understand everything.  Are the tiles in the wiki (and not in the current profile) available to copy/use? 

Do you intend to update the profile to include these tiles?


Edited by sobe

Trackir4 using the latest Trackir 5 software, Win10 Pro [Creator Update] updated from Win7Pro Pro 64Bit, Intel® Core™ i5-2500 3.30 GHz 6M Intel Smart Cache LGA115 , GigaByte GA-Z68XP-UD4 Intel Z68 Chipset DDR3 16GB Ram, GTX MSI Gaming 1060 [6 GB] Video Card, Main Monitor 1 on left 1920x1080 Touchscreen Monitor 2 on right 1920x1080 .

Link to comment
Share on other sites

21 minutes ago, sobe said:

Bailey

This is my first attempt at using the streamdeck with the DCS Interface so I am still trying to understand everything.  Are the tiles in the wiki (and not in the current profile) available to copy/use? 

Do you intend to update the profile to include these tiles?

 

Yes, all Lua files are up to date with the wiki Tile documentation. 

Link to comment
Share on other sites

Bailey

So is this the latest link to your F1 profile?   https://github.com/asherao/DCS-ExportScripts/tree/master/docu/StreamDeck Examples

Trackir4 using the latest Trackir 5 software, Win10 Pro [Creator Update] updated from Win7Pro Pro 64Bit, Intel® Core™ i5-2500 3.30 GHz 6M Intel Smart Cache LGA115 , GigaByte GA-Z68XP-UD4 Intel Z68 Chipset DDR3 16GB Ram, GTX MSI Gaming 1060 [6 GB] Video Card, Main Monitor 1 on left 1920x1080 Touchscreen Monitor 2 on right 1920x1080 .

Link to comment
Share on other sites

  • 4 weeks later...

Awsome job you did here

currently working on your Mirage F1 Profil to fit it to my needs

is there a way to separate the information in flight instant

to have bigger numbers like altitude separate from pressure etc ?

 

and i guess you already know but you tacan button supposed to be for uit doesnt work it put the tacan Off instead

 

 


Edited by Jexmatex
Link to comment
Share on other sites

5 hours ago, skypickle said:

@Bailey thank you for that ov10 work. How did you get the battery, generators and start switches mapped?

I didn't

5 hours ago, Jexmatex said:

Awsome job you did here

currently working on your Mirage F1 Profil to fit it to my needs

is there a way to separate the information in flight instant

to have bigger numbers like altitude separate from pressure etc ?

 

and i guess you already know but you tacan button supposed to be for uit doesnt work it put the tacan Off instead

 

 

 

1 - Yep. Just modify the lua to make your own exports and then increase the font size.

2 - No, I do not know what you are talking about for the tacan.

Link to comment
Share on other sites

19 hours ago, skypickle said:

TY. I've also been looking for a T45 lua. Have you seen any floating around?

Nope. The next time you boot DCS you can help make one.

After getting in the T-45 look for the file called `Saved Games/DCS/Logs/Export.lua`. In there there will be a line that say something to the effect of `Unknown Module Name: T-45`. Remember that module name (It may not be "T-45", but for the rest of this example lets say it was). Navigate to `Saved Games\DCS\Scripts\DCS-ExportScript\ExportsModules`. Make a copy of `Empty-DCS.lua` and rename it to the T-45 module name that was displayed earlier, then open the file. At the top rename ExportScript.Version.<ModuleName> = "1.2.X". The `<ModuleName>` is the same as what you found earlier, but without dashes (see other luas for reference)Replace the 1.2.X with 1.2.1. Save the lua, add some args like in other modules (eg, [0] = "%.4f", etc), save again, test it, and then you can post it here and I can add it to the library!

I did the above with a fresh Empty-DCS.lua on the A4 mod. It worked great. Good luck!


Oh, and I have made some non-critical changes to Empty-DCS.lua and the Bronco lua. Just makes some things easier. You can find them here: https://github.com/asherao/DCS-ExportScripts/tree/master/Scripts/DCS-ExportScript/ExportsModules


Edited by Bailey
  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

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