Jump to content

Recommended Posts

Posted
4 hours ago, skypickle said:

After thinking about this, I realize there is no solution. For example, if the switch is in the middle position, then how could a button press on the stream deck indicate which direction the switch will move?

 

even if I use a switch/rotary with cycling, how can three different icons be used to reflect switch state?

1. There are many solutions. Some may call them "workarounds".
2. The switch will always cycle in the same direction. To make it go the opposite direction put a negative sign in front of the increment number. If you want the ability to do both, you need two buttons, which is ok in some instances such as heading/course dials. 
3. There are a few different ways to work around the issue.
    a. Assuming the switch has three different named positions, use custom text to display what the switch is and what the switch has selected. For the animation background you can use a 2 way switch where 1 way is OFF, and the other way are the two ON positions.
    b. Use ascii block characters combined with a custom background image to display what you need.
    c. Use emojis to indicate the state of the switch or aircraft. This works great for flaps, landing gear, AoA indicators, aircraft limits, etc.\
    d. Use an animated gif as the image (advanced, good luck!).

The above techniques can be seen in my example F16 and Mirage F1 profiles in the Library, in my signature.
 

  • Like 1
Posted
16 hours ago, Bailey said:


3. There are a few different ways to work around the issue.
    a. Assuming the switch has three different named positions, use custom text to display what the switch is and what the switch has selected. For the animation background you can use a 2 way switch where 1 way is OFF, and the other way are the two ON positions.
    b. Use ascii block characters combined with a custom background image to display what you need.
    c. Use emojis to indicate the state of the switch or aircraft. This works great for flaps, landing gear, AoA indicators, aircraft limits, etc.\
 

Snce I dont have either the mirage or the f16, I cant see what's going on in the cockpit. I understand how to assign different icons to either of two states to a switch. However, I dont know how I could get three different icons to show.

I could just use a blank button and show one of three different texts, . But to get weird symbols that could look like three different pics i would have to use unicode. For example in the default Tahoma font U+2191 is ↑, U+2193 is ↓,and U+2194 is ↔. In symbol, OxDD is an up arrow (cant type it here as symbol is not an option in the formating bar above). There are many others.  I can just copy the symbols out of character map application and paste them into the text box of the streamdeck plugin where one puts text to display. I guess doing that in combination with a font like symbol or wingdings would give me a greater selection of symbols for different states.

 

I cant figure out how to do b) andc) you described above to give three different icons.

4930K @ 4.5, 32g ram, TitanPascal

Posted
22 hours ago, skypickle said:

After thinking about this, I realize there is no solution. For example, if the switch is in the middle position, then how could a button press on the stream deck indicate which direction the switch will move?

 

even if I use a switch/rotary with cycling, how can three different icons be used to reflect switch state?

You could try some fancy stuff with the position it reports and various text or symbols to get what you want. @Bailey is amazing at it!

  • Thanks 1
Posted (edited)

Hi all,

Sorry if this has been asked before (couldn't find it): 

How do you update the dcs plugin for streamdeck? I keep getting this error...

image.png

I tried to open the plugin using 7-zip but got errors for the individual files for some reason. 

Edited by inexus

13900@5.8Ghz, Asus TUF 4090 OC, 64GB@6400mhz DDR5, 4K, TrackIR 5, Tobii, Virpil CM2, CM3
CH-47F | OH-58D | 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

 

Posted
11 hours ago, skypickle said:

Snce I dont have either the mirage or the f16, I cant see what's going on in the cockpit. I understand how to assign different icons to either of two states to a switch. However, I dont know how I could get three different icons to show.

I could just use a blank button and show one of three different texts, . But to get weird symbols that could look like three different pics i would have to use unicode. For example in the default Tahoma font U+2191 is ↑, U+2193 is ↓,and U+2194 is ↔. In symbol, OxDD is an up arrow (cant type it here as symbol is not an option in the formating bar above). There are many others.  I can just copy the symbols out of character map application and paste them into the text box of the streamdeck plugin where one puts text to display. I guess doing that in combination with a font like symbol or wingdings would give me a greater selection of symbols for different states.

 

I cant figure out how to do b) andc) you described above to give three different icons.

You don't need the modules. Take a look at the lua code, the videos, the wiki, and pictures to get a sense of whats going on. 

You can copy/paste icons, emoji, and unicode from the web directly to the lua file and dcs-interface. (That covers B and C options.)

 

Posted

@Bailey thank you for a clear exposition in your wiki with the mirage. Perhaps you could link to it more prominently in the wiki as that might reduce these kinds of questions. I understood most of it.

the logic in mirage lua file shows how to display any number of text options or emoji. How does one get references to custom icons? Does the icon.png get put in the same directory as the lua file and then simply referenced in the lua file?

4930K @ 4.5, 32g ram, TitanPascal

Posted
8 hours ago, skypickle said:

@Bailey thank you for a clear exposition in your wiki with the mirage. Perhaps you could link to it more prominently in the wiki as that might reduce these kinds of questions. I understood most of it.

the logic in mirage lua file shows how to display any number of text options or emoji. How does one get references to custom icons? Does the icon.png get put in the same directory as the lua file and then simply referenced in the lua file?

For background images you can create them with a image editing software and then click and drag the age onto the streamdeck button while it is selected on the lower half of the app. 

For the emojis and unique characters they can be Googled and copy/pasted into the text fields. 

Posted
18 hours ago, Bailey said:

For background images you can create them with a image editing software and then click and drag the age onto the streamdeck button while it is selected on the lower half of the app. 

 

I was not clear. How do I reference a jpg in the lua for it to be displayed? Currently, I can only assign one of two images to each icon state. The icon state is designated by the radio button underneath the button selected in the lower half of the app. I do not know if it is possible to have three or more radio buttons so that the appropriate image is displayed . By being able to reference a jpg in the lua, I could then have logic that shows the correct image.

4930K @ 4.5, 32g ram, TitanPascal

Posted
On 8/29/2022 at 1:56 AM, skypickle said:

I was not clear. How do I reference a jpg in the lua for it to be displayed? Currently, I can only assign one of two images to each icon state. The icon state is designated by the radio button underneath the button selected in the lower half of the app. I do not know if it is possible to have three or more radio buttons so that the appropriate image is displayed . By being able to reference a jpg in the lua, I could then have logic that shows the correct image.

Only max of two is possible. 

Posted

I know that. I was just wondering if the icon is replaceable by using lua. That way more than two can be programmatically be used.

4930K @ 4.5, 32g ram, TitanPascal

Posted
On 8/31/2022 at 12:25 AM, skypickle said:

I know that. I was just wondering if the icon is replaceable by using lua. That way more than two can be programmatically be used.

Not to my knowledge.

Posted

ctytler explained that 2 icons maximum is the limitation of the Stream Deck software itself. A few folks from here have already asked Elgato for more icons per button, but no luck so far 😞

I wonder if they realize that flight simmers, maybe also simracers (I don't know, but maybe) are using their Stream Decks. They still advertise it as the hardware for streamers/youtubers.

Fortunately I don't know anything about marketing, so maybe narrowing the pool of your potential customers is good for the company. Maybe. 😉

 

i7-8700K 32GB 3060Ti 27"@1080p TM Hawg HOTAS TPR TIR5 SD-XL 2xSD+ HC Bravo button/pot box

  • 1 month later...
Posted (edited)

Hi @ctytler love the work you have done. But running into a problem with DCS not finding in the COMMS panel. I have checked the .lua / .config and the ports are correct - Does anyone know what might be stopping it for finding DCS? Thanks for your help. This is for the AH64

I am running this with DCS openbeta.

nullnull

image.png

image.pngnull

image.png

Edited by zedman1uk
  • 4 weeks later...
Posted

Hi  @ctytler,

 

thank you for your great work! Very much appreciate it.

 

To all guys on this thread, i tried using the Stream Deck in a TTI Multiplayer Server and my inputs were not regocnised.

It works fine in Singleplayer though. If you have some clue or possible fix i would be happy.

For reference: Stream Deck XL, checked for newest software for Dcs_export_scripts, StreamDeck Plugin and StreamDeck itself.

I was using OpenTrack and SRS while in the Server.

Thank you!

  • 1 month later...
Posted (edited)

Anyone else found that selecting 'Ka-50_3' in the ID Lookup Window for the Streamdeck Plugin shows no data? 

EDIT: To answer my own question, there is currently no Ka-50_3.lua file in the DCS-ExportScript\ExportsModules folder. Creating one is probably beyond my patience and/or capabilities, but hopefully someone will come up with it at some point. Hopefully it reuses much of the data from the existing Ka-50.lua file.

Edited by AndyJWest
Posted
On 12/17/2022 at 7:26 AM, AndyJWest said:

Anyone else found that selecting 'Ka-50_3' in the ID Lookup Window for the Streamdeck Plugin shows no data? 

EDIT: To answer my own question, there is currently no Ka-50_3.lua file in the DCS-ExportScript\ExportsModules folder. Creating one is probably beyond my patience and/or capabilities, but hopefully someone will come up with it at some point. Hopefully it reuses much of the data from the existing Ka-50.lua file.

 

Here you go
https://forum.dcs.world/topic/283178-dcs-exportscripts-for-stream-deck-community-github-library/?do=findComment&comment=5112783
 

On 12/18/2022 at 8:55 AM, rrutko said:

So far my KA-50 sets are working with the new module. 

 

Awesome news! Thanks.

  • Like 1
  • 2 weeks later...
Posted

Ive been losing my mind that I cant use the Streamdeck Plugin on certain servers with Pure Scripts.

@Bailey - Do you see anything here that would point towards a problem? Literally everything is tied.

Directory pointing to the root install folder, Listerner port and Send port in the "comms" menu match the Config.lua ports, Export.lua in Saved games Scripts has the dofile........

Some servers I join and single player it works fine, join other servers with pure scripts and it stops working but I've copied the entire scripts folder from other people who's streamdeck plugin WORKS in the servers mine DOESNT.

Im at a loss. Even did a full long repair of DCS. AND I copied the same exportmodules.lua from the friends whos are working just fine as well. I just get the "module not detected as soon as I join the server.



Anyone else got ideas?
null

image.png

Posted
11 hours ago, Coyote_One said:

Ive been losing my mind that I cant use the Streamdeck Plugin on certain servers with Pure Scripts.

@Bailey - Do you see anything here that would point towards a problem? Literally everything is tied.

Directory pointing to the root install folder, Listerner port and Send port in the "comms" menu match the Config.lua ports, Export.lua in Saved games Scripts has the dofile........

Some servers I join and single player it works fine, join other servers with pure scripts and it stops working but I've copied the entire scripts folder from other people who's streamdeck plugin WORKS in the servers mine DOESNT.

Im at a loss. Even did a full long repair of DCS. AND I copied the same exportmodules.lua from the friends whos are working just fine as well. I just get the "module not detected as soon as I join the server.



Anyone else got ideas?
null

image.png

My only idea right now is that whatever profile you are either using or have available is crashing the streamdeck program by freezing it up. Try making a totally new streamdeck profile. In that profile make a single simple dcs-interface button that only displays the arg for adi yaw or something that changes often. Remove all other aircraft luas from the ExportScripts folder. Fly a mission in MP and watch the results. The purpose of this is to reduce the number of possible factors to hopefully single out the issue. 

Posted (edited)

I've been trying to find the button ID of the 'pinky switch' for the A10C-2. Its formal name is 'master exterior light switch' but I can find neither in the A10C_2 lua in the Export modules folder.

I also looked in the clickabledata.lua in

C:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\A-10C_2\Cockpit\Scripts

Is there another place I can look to find a button ID?

Edited by skypickle

4930K @ 4.5, 32g ram, TitanPascal

Posted
On 1/8/2023 at 5:36 AM, Bailey said:

My only idea right now is that whatever profile you are either using or have available is crashing the streamdeck program by freezing it up. Try making a totally new streamdeck profile. In that profile make a single simple dcs-interface button that only displays the arg for adi yaw or something that changes often. Remove all other aircraft luas from the ExportScripts folder. Fly a mission in MP and watch the results. The purpose of this is to reduce the number of possible factors to hopefully single out the issue. 

Unfortunately I even did a total reset of Streamdeck and also deleted the %appdata% folder so its brand new basically. Downloaded a single DCS aircraft profile off the forums. Same thing happens.  Some servers it works some it doesnt while others stream decks are functional. Only if Player exports are disabled on the server, others with this option "yes" are fine.

Im at a loss.
null

image.png

Posted

Also to add, dont update your streamdeck software to version 6.0.x.xxx.....

All the text image states got messed with with Baileys profiles and everything else. Unless you want to go through and manually change the font or text spacing to every button..... Mine got thrown off and some font changed, etc etc.

@Bailey - heads up if you havent already updated your software. I would wait.

Posted

I was about to ask that how to fix it. I just updated the stream deck couple days ago. Had to manually fix it and exit the stream deck per page, cuz it would revert back. If you don't update some new profile will show as empty. 

  • Recently Browsing   0 members

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