Jump to content

DCS-ExportScripts for Stream Deck Community Github Library


Recommended Posts

bones1014

Did you upload your updated Mirage F1 profile?  The one I downloaded from Bailey did not contain all the button art that was on his example page and is 3 months old. 

 


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

Yesterday i noticed a constant annoying stutter when running DCS. Before that it ran silky smooth.
Quick test in IL-2 and Elite Dangerous showed that it was only in DCS because they ran supersmooth.
Because i played around with my StreamDeck the other day (added an M-2000 profile and some HW64Info data) i first thought of that.
Removed my export.lua and all ran smooth again.
Then i commented out line by line to find the problem and it turned out to be the DCS-ExportScript entry.
When i commented out:

-- load the DCS ExportScript for DAC and Ikarus
dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]])

DCS ran without stutters again.
I also have TacView, The Way and SRS in the export.lua but these didn't cause stutters, only the DCS ExportScript did.

Q1: What causes DCS to stutter with this DCS ExportScript (latest version) in the export.lua and how to prevent it?

Q2: Do i actually need DCS-ExportScript for my StreamDeck. The profiles that i made still actually work without it.

 

Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind combat pedals, TrackIR4, Rift-S.

Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!

Link to comment
Share on other sites

That was my thought too but how do you pinpoint what is causing that?

Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind combat pedals, TrackIR4, Rift-S.

Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!

Link to comment
Share on other sites

10 hours ago, Lange_666 said:

That was my thought too but how do you pinpoint what is causing that?

I do it the old school way. Backup everything. Remove half of the lua profiles. If problem is not fixed then then remove half of the half. Repeat. If the problem is fixed during this process then replace the half you removed, remove the half that was there, and then test again. The above method is for locating the issue Lua script. 

Similar can be done if you are trying to locate a process heavy function within a specific Lua. 


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

Hallo

I downladed the Mirage-F1CE.lua and stored it with all my other export modules, but the "ID Lookup"- window won't populate with the available Button IDs for the F1?

The DCS Comms is working, and the already assign Button IDs work with the in-game cockpit.

How can I get the DCS Module Clickable Data to populate for the F1?
 

DCS Module Clickable Data not showing.png

  • Like 1
Link to comment
Share on other sites

6 hours ago, Bailey said:

I do it the old school way. Backup everything. Remove half of the lua profiles. If problem is not fixed then then remove half of the half. Repeat. If the problem is fixed during this process then replace the half you removed, remove the half that was there, and then test again. The above method is for locating the issue Lua script. 

Similar can be done if you are trying to locate a process heavy function within a specific Lua.

Thx for the tip, should have thought of it myself.
Turned out to be the F-16C lua (wondering: i have stutters when this lua is in the ExportsModules, shouldn't other people have them too, it's the latest version that is in the DCS ExportScript).

For now: Removed the entire DCS-Exportscript since i don't export anything to the Streamdeck for my own profiles, they only work one way (Deck to DCS).


Edited by Lange_666
  • Like 2

Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind combat pedals, TrackIR4, Rift-S.

Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!

Link to comment
Share on other sites

10 hours ago, Dagi85 said:

Hallo

I downladed the Mirage-F1CE.lua and stored it with all my other export modules, but the "ID Lookup"- window won't populate with the available Button IDs for the F1?

The DCS Comms is working, and the already assign Button IDs work with the in-game cockpit.

How can I get the DCS Module Clickable Data to populate for the F1?
 

DCS Module Clickable Data not showing.png

1. You can't. 

2. If you are code savvy, you can visit the Github for DCS-Interface and take a shot at updating the program to recognize modules with different versions such as the F1, L39, Blackshark, C101, and others. 

Link to comment
Share on other sites

11 hours ago, Dagi85 said:

Hallo

I downladed the Mirage-F1CE.lua and stored it with all my other export modules, but the "ID Lookup"- window won't populate with the available Button IDs for the F1?

The DCS Comms is working, and the already assign Button IDs work with the in-game cockpit.

How can I get the DCS Module Clickable Data to populate for the F1?
 

DCS Module Clickable Data not showing.png

To add to the above reply, here is the Readme on how to add buttons of your own 

https://github.com/asherao/DCS-ExportScripts/wiki/Mirage-F1

Link to comment
Share on other sites

On 1/8/2023 at 10:14 AM, sobe said:

bones1014

Did you upload your updated Mirage F1 profile?  The one I downloaded from Bailey did not contain all the button art that was on his example page and is 3 months old. 

 

 

Sorry, I just saw this and I just uploaded my profiles. Just awaiting review by a moderator. You'll be able to find them under the user files for the Mirage F1.

*EDIT

Files are now available for download. Based off of Bailey's profile

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

 


Edited by bones1014
added link to Stream Deck download in user files
Link to comment
Share on other sites

After doing a fresh install of DCS I cannot get export scripts to run at all. I've done a fresh install of the DCS-ExportScript folder twice, I've tried commenting out everything else I have in export.lua, I've confirmed I have the module in the ExportModules folder, and still nothing. I'm not seeing an export.log file even being generated. I'm a little bit at a loss where to even go from here, does anyone have any ideas?

edit: disregard, it's working now, I'm a little confused because I opened export.lua in notepad instead of code and the ExportScript line was duplicated where it wasn't in code. I fixed/saved it in notepad and forced code to revert to the saved version and now everything works. 


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

On 10/12/2022 at 8:42 AM, Bailey said:

Make sure your Lua is sending those values somehow. 

SOLVED IT but I forgot to post the solution. The clickabledata.lua shows:

            -- Manual Advancement Button
            elements["RX_STEP_SW"] = mcabin_button(              {0}, _("Cockpit.Mosquito.rockets_manual_button"), devices.ROCKETS, device_commands.Button_5, 384)

So I added this line to the mosquito lua in the DCS-Exports folder in scripts in Saved games.

	[384] = "%.1f",

The rocket selector button is a rotary button with range of 1 to 4 with increment by 1. The display is a momentary display button with DCS ID 384. Pushing the rocket selector button now works and the display in the cockpit advances properly showing the correct rocket. Only problem is the decimal. so I specify 

 

	[384] = "%.0f",

I suppose there is a nicer way to specify an integer. Now the only detail is when you spawn in, the streamdeck says 0 but the cockpit is showing 1 but once you start clicking the problem goes away. How do I get this change into the github?


Edited by skypickle

4930K @ 4.5, 32g ram, TitanPascal

Link to comment
Share on other sites

  • 2 weeks later...

Hello.
I can't seem to get the SRS working with ExportScripts.
When the ExportScripts is in the Export.lua, SRS doesn't connect the Game plugs.
The SRS Client still connects to an SRS server on a DCS server join, but only shows the Ctrl+Shift+ESC message after that.
Any idea what might be wrong, please?

These are my only lines in Export.lua.
dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]])
pcall(function() local dcsSr=require('lfs'); dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil);


Edited by 312_JS
G6XLe1V.png
Link to comment
Share on other sites

Here's my export.lua file

 

-- load the DCS ExportScript for DAC and Ikarus
dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]])
--BIOS = {}; BIOS.LuaScriptDir = [[C:\Program Files\DCS-BIOS\dcs-lua\]]; BIOS.PluginDir = [[C:\Users\cdeat\AppData\Roaming/DCS-BIOS/Plugins\]]; if lfs.attributes(BIOS.LuaScriptDir..[[BIOS.lua]]) ~= nil then dofile(BIOS.LuaScriptDir..[[BIOS.lua]]) end --[[DCS-BIOS Automatic Setup]]
--TACVIEW
local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua')
dofile(lfs.writedir()..[[Scripts\Helios\HeliosExport16.lua]])
--SRS

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

 

Link to comment
Share on other sites

Looks like the issue was the ";" at the end of the pcall function. Without it it works flawless.
So my Export.lua now is:

dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]])
pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil)
  • Like 1
G6XLe1V.png
Link to comment
Share on other sites

I'm not very code savvy and I'm new to this kind of thing but I've tried what I can to make this work but it still doesnt seem to be exporting anything to DCS Interface. I have included some files that may lead to an answer. I tried watching the DCS logs and it doesnt seem to be exporting anything at all. 

Thanks in advance,

Sarn

Screenshot 2023-02-14 122250.png

Export.lua Config.lua ExportScript.lua

Link to comment
Share on other sites

  • Recently Browsing   0 members

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