Jump to content

DCS-ExportScripts for Stream Deck Community Github Library


Recommended Posts

UH-60 Profile is coming along. Cant figure out why the Gen, Bat, etc don't turn on via the SD (even though the switch visibly moved) unless they are clicked or activated by keybind. 

2022-01-18 11_22_01-Stream Deck.jpg2022-01-18 11_21_40-Stream Deck.jpg2022-01-18 11_31_33-Stream Deck.jpg


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

Thank you for your work and I have a few questions

  • Maybe its because I´m old and slow, but is there somewhere a link to download the whole package on github?
  • Any chance to make it compatible with the winwing export? -> No lights on the gear handle in the A-10C_2
  • Last one, I found the fuel quantity counters (90.91.92) for the A-10C_2 but how can I calculate the whole lbs to make an output for the StreamDeck?

And maybe something I have found in the lua file regarding the IFF Antenna Switch. I had to change it in the A-10_2.lua from

[706] = "%1d",     -- IFF - antenna switch

to

[706] = "%0.2f",     -- IFF - antenna switch

to make it work with the StreamDeck, because its a 3way switch

Windows 10 | i7-8700K@5GHz | 2080 Ti | Intel Z370 Chipset | 32GB RAM@1866 MHz | SSD: Samsung 850 EVO 1TB| Thrustmaster Warthog HOTAS w. FSSB R3 Mod | Saitek Switch Panel + Radio Panel + Multi Panel + FIP + Flightpanels Software | MFG_Crosswind | TrackIR5 | TM Cougar MFD Pack | Obutto R3volution | 1 x LG38 | GAMETRIX KW-908 JETSEAT

Link to comment
Share on other sites

58 minutes ago, -Hammer- said:

Thank you for your work and I have a few questions

  • Maybe its because I´m old and slow, but is there somewhere a link to download the whole package on github?
  • Any chance to make it compatible with the winwing export? -> No lights on the gear handle in the A-10C_2
  • Last one, I found the fuel quantity counters (90.91.92) for the A-10C_2 but how can I calculate the whole lbs to make an output for the StreamDeck?

And maybe something I have found in the lua file regarding the IFF Antenna Switch. I had to change it in the A-10_2.lua from

[706] = "%1d",     -- IFF - antenna switch

to

[706] = "%0.2f",     -- IFF - antenna switch

to make it work with the StreamDeck, because its a 3way switch

I'll get to your other questions soon, but to get you started, go to the site (https://github.com/asherao/DCS-ExportScripts) , and click the green Code button next to the About box. then click Download Zip.
 

Progress update for the UH-60. Not yet available. According to my estimate, I am about 32% complete with the project.
 

Spoiler

progress1.jpg

 


Edited by Bailey
Link to comment
Share on other sites

...and click the green Code button next to the About box. then click Download Zip....

I must have been absolutely blind..

Thank you!

Windows 10 | i7-8700K@5GHz | 2080 Ti | Intel Z370 Chipset | 32GB RAM@1866 MHz | SSD: Samsung 850 EVO 1TB| Thrustmaster Warthog HOTAS w. FSSB R3 Mod | Saitek Switch Panel + Radio Panel + Multi Panel + FIP + Flightpanels Software | MFG_Crosswind | TrackIR5 | TM Cougar MFD Pack | Obutto R3volution | 1 x LG38 | GAMETRIX KW-908 JETSEAT

Link to comment
Share on other sites

1 hour ago, -Hammer- said:

...and click the green Code button next to the About box. then click Download Zip....

I must have been absolutely blind..

Thank you!

You aren't the first, and definitely wont be the last. I too experienced the same thing a few times. Heck, just yesterday I couldn't find the "upload" button for a while 😄 Github is well known by this phenomena.


Edited by Bailey
Link to comment
Share on other sites

On 1/19/2022 at 2:08 AM, -Hammer- said:

Thank you for your work and I have a few questions

  • Maybe its because I´m old and slow, but is there somewhere a link to download the whole package on github?
  • Any chance to make it compatible with the winwing export? -> No lights on the gear handle in the A-10C_2
  • Last one, I found the fuel quantity counters (90.91.92) for the A-10C_2 but how can I calculate the whole lbs to make an output for the StreamDeck?

And maybe something I have found in the lua file regarding the IFF Antenna Switch. I had to change it in the A-10_2.lua from

[706] = "%1d",     -- IFF - antenna switch

to

[706] = "%0.2f",     -- IFF - antenna switch

to make it work with the StreamDeck, because its a 3way switch

The script should now be compatible with winwing export. 

Here you go, take a look at this. It should work for the A10C2 also: https://github.com/asherao/DCS-ExportScripts/commit/4cb1d4699c1fc0ffc4218166b40a5d8b96ea4bd3

If so, could you share the code so we can push it to the library?
Edit: I updated the IFF antenna switch. Thank you.


Edited by Bailey
Link to comment
Share on other sites

Link to comment
Share on other sites

59 minutes ago, Bailey said:

Library updated with the initial A-4E mod lua. Clickables have been done. Will need assistance with the animations, which are available by loading the a4 into the modelViewer.exe. 
https://github.com/asherao/DCS-ExportScripts/blob/49019b4bcd5d87a9c95f9b69ded523cd47c18bd7/Scripts/DCS-ExportScript/ExportsModules/A-4E-C.lua

This is outstanding, again!

Link to comment
Share on other sites

9 hours ago, Bailey said:

The script should now be compatible with winwing export. 

Thank you, it works perfectly 👍

  • Like 1

Windows 10 | i7-8700K@5GHz | 2080 Ti | Intel Z370 Chipset | 32GB RAM@1866 MHz | SSD: Samsung 850 EVO 1TB| Thrustmaster Warthog HOTAS w. FSSB R3 Mod | Saitek Switch Panel + Radio Panel + Multi Panel + FIP + Flightpanels Software | MFG_Crosswind | TrackIR5 | TM Cougar MFD Pack | Obutto R3volution | 1 x LG38 | GAMETRIX KW-908 JETSEAT

Link to comment
Share on other sites

7 hours ago, bones1014 said:

This is outstanding, again!

I don't need assistance with the clickables anymore. I made a program to get them for me. 😅 
Remember this? https://github.com/charlestytler/dcs-clickabledata-extract
Well, here's its other half 😛https://github.com/asherao/dcs-unclickabledata-extract
Here is the full lua. Note that its pretty barebones right now, so if you just want somewhere to start, here is were you can. https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/A-4E-C.lua

If you want something a little more developed you'll have to wait for updates or a SD profile. 


Edited by Bailey
Link to comment
Share on other sites

5 hours ago, Bailey said:
I don't need assistance with the clickables anymore. I made a program to get them for me.  
Remember this? https://github.com/charlestytler/dcs-clickabledata-extract
Well, here's its other half https://github.com/asherao/dcs-unclickabledata-extract
Here is the full lua. Note that its pretty barebones right now, so if you just want somewhere to start, here is were you can. https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/A-4E-C.lua
If you want something a little more developed you'll have to wait for updates or a SD profile. 

I took what you previously posted and started messing with it. It's working so far!The only annoying thing is if you want to add something and you don't know all the details you have to move the Skyhawk folder each time. That extract tool is what I used to get my list of clickables.

Sent from my SM-G781U using Tapatalk
 


Edited by bones1014
Link to comment
Share on other sites

@Bailey started work on some things in the scooter. Radar mode and tilt angle to one tile. Need to format the output yet.

function ExportScript.radar_mode_and_tilt(mainPanelDevice)
	--[120] = "%0.4f",	--AN/APG-53A Radar Mode Switch	{0.1,0,0.4}
	--[122] = "%0.4f",	--Radar Antenna Tilt Switch	{0.4,0,1}
		local radar_mode_and_tilt = "MODE" .. "\n" .. string.format("%.1f", mainPanelDevice:get_argument_value(120)) .. "\n" .. "TILT" .. 
		"\n" .. string.format("%.1f", mainPanelDevice:get_argument_value(122))

	ExportScript.Tools.SendData(1250, radar_mode_and_tilt)
end

 

Link to comment
Share on other sites

12 hours ago, bones1014 said:

I took what you previously posted and started messing with it. It's working so far!The only annoying thing is if you want to add something and you don't know all the details you have to move the Skyhawk folder each time. That extract tool is what I used to get my list of clickables.

Sent from my SM-G781U using Tapatalk
 

 

Spoiler

Install the A4 in both Saved games and DCS install directories. For the version in the DCS Install delete the A-4E-C\entry.lua file. You should now be able to use it. 

I hope that CT can figure out a way to read the info from Saved Games.


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

First, thank you for your work!  This plugin works great for me, and is a lot of fun to use to build streamdeck profiles.

I am having a slight problem, and I narrowed it down to this export script.  I get a very noticeable micro-stutter in-game when using this plugin.  My system is pretty decent (10900k, RTX 3090, 32gb RAM, NVME SSD), so I don't suspect it's a hardware issue.  As soon as I move the export script out of the \Saved Games\DCS.openbeta\Scripts folder, the problem goes away completely and DCS runs 100% smooth.  I'm not running any other mods or scripts.

I tried completely formatting my SSD and reinstalling DCS, and it still happens as soon as I add this script to my Scripts folder.

I tried modifying these values to very high numbers (10.0) to see if it would help:

ExportScript.Config.ExportInterval         = 0.05    -- export evry 0.05 secounds
ExportScript.Config.ExportLowTickInterval  = 0.1    -- export evry 0.5 secounds

It seems to help a little bit, but it seems to just prolong the intervals between stutters.

I ran some FPS tests.  With the export script running, I get 80-90fps with stutters.  With it removed, steady 118-120fps.  This is all at 4k resolution.


Edited by Scofflaw
added info

run come save me

Link to comment
Share on other sites

I did some more testing, and it's definitely this value that affects the stutter:

ExportScript.Config.ExportInterval         = 0.05	-- export evry 0.05 secounds

Setting this value to something extremely high like 10000 will make the problem go away completely.  But, setting the export interval to over 2 hours is obviously not very practical.

I tried removing the f16 aircraft LUA in the exportsmodules and testing this aircraft, but it's still happening.  I'm going to try to comment out some of the export libraries and see if I can isolate what is causing this.

run come save me

Link to comment
Share on other sites

38 minutes ago, Scofflaw said:

I did some more testing, and it's definitely this value that affects the stutter:

ExportScript.Config.ExportInterval         = 0.05	-- export evry 0.05 secounds

Setting this value to something extremely high like 10000 will make the problem go away completely.  But, setting the export interval to over 2 hours is obviously not very practical.

I tried removing the f16 aircraft LUA in the exportsmodules and testing this aircraft, but it's still happening.  I'm going to try to comment out some of the export libraries and see if I can isolate what is causing this.

Huh, thats some nice investigation. When and from what link did you download ExportScripts? What else do you have in your export folder? Does making a new dcs and installing ExportScripts in that one solve the problem? What other sim software do you have running? Just a few things to think about. I have seen things lag out the SD, but not the sim itself.

Link to comment
Share on other sites

1 hour ago, Bailey said:

Huh, thats some nice investigation. When and from what link did you download ExportScripts? What else do you have in your export folder? Does making a new dcs and installing ExportScripts in that one solve the problem? What other sim software do you have running? Just a few things to think about. I have seen things lag out the SD, but not the sim itself.

  1. I downloaded ExportScripts from github yesterday.
  2. The only script I have installed in DCS is this DCS-ExportScript.
  3. I tried a full windows reset, nvidia drivers remove and reinstall, reinstall exportscripts, the problem is still there
  4. I have streamdeck running, but it's a default install without any profiles.  I tried removing it and I still have the problem.  Nothing else running

I did perform some more testing, with an FPS counter + graph this time.  In the attached image, I ran the exact same scenario twice (quick start -> F16 -> Caucasus -> ready on ramp).  On the top half, at exactly the same moment, you can see the FPS is very jittery, and I highlighted the stutters in blue.  On the bottom graph, I have the script disabled (removed from folder), and it's perfectly smooth.

I did narrow it even further down to \DCS-ExportScript\lib\Tools.lua.  When this lua is commented out from ExportScript.lua, it runs smoothly.  I guess this makes sense since this lua is the meat and potatoes of this script.

--dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\lib\Tools.lua]]) -- remove for testing purposes

I tried to have a look at Tools.lua to see if I could perhaps remove some sections to see if performance improves, but this starts to be a bit above my skill level.

I did notice another DCS plug-in (DCS UFC Android App) has some users complaining about the same issue with the ExportInterval value causing stutters, but I don't think they were able to resolve that issue either.

fps_dcs.png

run come save me

Link to comment
Share on other sites

1 hour ago, Scofflaw said:
  1. I downloaded ExportScripts from github yesterday.
  2. The only script I have installed in DCS is this DCS-ExportScript.
  3. I tried a full windows reset, nvidia drivers remove and reinstall, reinstall exportscripts, the problem is still there
  4. I have streamdeck running, but it's a default install without any profiles.  I tried removing it and I still have the problem.  Nothing else running

I did perform some more testing, with an FPS counter + graph this time.  In the attached image, I ran the exact same scenario twice (quick start -> F16 -> Caucasus -> ready on ramp).  On the top half, at exactly the same moment, you can see the FPS is very jittery, and I highlighted the stutters in blue.  On the bottom graph, I have the script disabled (removed from folder), and it's perfectly smooth.

I did narrow it even further down to \DCS-ExportScript\lib\Tools.lua.  When this lua is commented out from ExportScript.lua, it runs smoothly.  I guess this makes sense since this lua is the meat and potatoes of this script.

--dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\lib\Tools.lua]]) -- remove for testing purposes

I tried to have a look at Tools.lua to see if I could perhaps remove some sections to see if performance improves, but this starts to be a bit above my skill level.

I did notice another DCS plug-in (DCS UFC Android App) has some users complaining about the same issue with the ExportInterval value causing stutters, but I don't think they were able to resolve that issue either.

fps_dcs.png

Which git did you get it from? whats the link? and what flight sim hardware are you using?

Link to comment
Share on other sites

14 hours ago, bones1014 said:

I fixed the A-4E-C Destination Long and the UHF channel indicator. tried to push it to the master but no permissions so it's in my fork.

Now what you do, I think, is request a Pull using the most recent version of your fork.
Git is still a mystery to me too.

16 hours ago, Scofflaw said:

I got it from https://github.com/asherao/DCS-ExportScripts

Right now for testing purposes, I don't have my HOTAS or TrackIR plugged in.

 

After having the issue, close DCS and check the Saved games/dcs/logs/dcs.log. there may be good info in there. thats how i determined that a usb hub was malfunctioning the other day, funny enough it gave similar symptoms as you. you can post the log here if you feel comfortable doing so.


Edited by Bailey
Link to comment
Share on other sites

1 hour ago, Bailey said:

Now what you do, I think, is request a Pull using the most recent version of your fork.
Git is still a mystery to me too.

After having the issue, close DCS and check the Saved games/dcs/logs/dcs.log. there may be good info in there. thats how i determined that a usb hub was malfunctioning the other day, funny enough it gave similar symptoms as you. you can post the log here if you feel comfortable doing so.

 

Added a pull request. I added a commit yesterday. can you see that?

Link to comment
Share on other sites

4 hours ago, bones1014 said:

Added a pull request. I added a commit yesterday. can you see that?

I see your fork, but I don't see your pull request..... wait, hahaha, you requested the wrong git. Request this one https://github.com/asherao/DCS-ExportScripts/pulls. You sent a pull for s-d-a's. You can cancel that pull by going to the request and near the bottom click close (I recently did something similar on accident too.)

Link to comment
Share on other sites

I see your fork, but I don't see your pull request..... wait, hahaha, you requested the wrong git. Request this one https://github.com/asherao/DCS-ExportScripts/pulls. You sent a pull for s-d-a's. You can cancel that pull by going to the request and near the bottom click close (I recently did something similar on accident too.)
Did it work that time?

Sent from my SM-G781U using Tapatalk

Link to comment
Share on other sites

  • Recently Browsing   0 members

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