Git Product home page Git Product logo

streamdeck-starcitizen's People

Contributors

mhwlng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

streamdeck-starcitizen's Issues

Error parsing certain bindings

I ran across a bug today with a specific binding. The binding info seems to not be parsed correctly.

In SC:
image

In the exported controls XML:
image

In the keybindings.csv file in the plugin folder:
image

How it appears in the Stream Deck UI when I attempt to set a button for Cooler Down:
image

I went ahead and set it, because I wasn't sure if it was an error parsing the inputs, or if it was just a visual glitch while setting the button functionality. The button does, indeed, send RAlt+Escape to the game window.

Up-Grade you Plug-In

Hi,
I use your plugin and it is great! During some customization of my stream deck I thought it will be better, if you can customize the plugin with a custimized xml file from Star Citizen.

I mean go into Starcitizen, create your own layout on keyboard, export this file, got your plugin read this file and set up a new selection menue inside the stream deck software.

Do you think this this will be possible?

best regards
Andokan

Seperate Key Down and Key Up

First of all thanks for this plugin. It's pretty awesome.
One thing that would be very useful would be seperate buttons for key down and key up events.
This could be used in multi actions using a delay. Then one could for example for 'exit seat' add a key down event, a delay and a key up event. This way the player could simply press the button instead of holding it down. Additionally this could be combined with other actions like switching to a on-foot profile after leaving a seat.
As an alternative a button that allows to set a delay would be great.

Thanks!

problème assignation de touche

Bonjour,

merci pour ce merveilleux plugins qui fonctionnait à merveille jusque ici.
Mais depuis que j'ai réinstaller SC sur un nouveau disque dur le plugins ne fonctionne plus.
un voyant jaune apparait lorsque j'appui sur les touche du plugin sur mon streamdeck.
j'ai l'impression que le chemin d'accès au touches n'est pas trouvé.
J'ai pourtant suivis les instruction et rentré manuellement le bon chemin d'accès... :/ pouvez-vous m'aider je suis a bout de solution.
Cordialement merci.

Plugin does not find Star Citizen install location if it is not on the C or D drive

I have Star Citizen installed on the E drive on my system (as it's the most performant SSD), but your plugin failed to properly detect the install location from which to read the keybinds, and as such was not sending inputs to the game. I had to manually add my path to the Plugin configuration file as described in the README.md file, at which point the plugin began to operate normally.

I suggest, if possible, having your plugin poll the system for present drives, and check for Program Files/Star Citizen on each drive rather than what it seems to do, which is only check the C and D drives.

Plugin not picking up configuration from Star Citizen

Hello,

Versions:
Star citizen: 3.17.4-LIVE.8288900
Streamdeck plugin: 1.0.8

I've been using this plugin for a few months now and it worked great.
I came back into the game a few days ago, but now I'm having trouble with it: the plugin does not see any change I do in my ingame keybindings. I have tried the following:

  1. Check plugin log: no error (see log below)
  2. Checked appsettings.config. Both SCData_p4k and SCClientProfilePath are good (link to actual path, no weird character in path)
  3. Cleaned the .csj archives and relaunch Stream Deck as Admin: defaultProfile.xml get created again with default keybindings (looks normal given the name of the file)
  4. Restarted Stream deck as Admin

But nothing works.
One thing I noticed is whenever I change a keybinding in Star Citizen, my actionmaps.xml is no longer updated.
The plugin correctly picks keybindings from actionmaps.xml, but they not longer reflect the keybinding in Star Citizen

Any chance that might be related to the Star Citzen version that changed the handling of keybindings ?

Thank you

2022-11-27 12:45:40.4428|DEBUG|com.mhwlng.starcitizen|1|Logger Initialized
2022-11-27 12:45:40.4648|INFO|com.mhwlng.starcitizen|1|Init Star Citizen
2022-11-27 12:45:40.4715|INFO|com.mhwlng.starcitizen|1|D:\Jeux\StarCitizen\StarCitizen\LIVE\Data.p4k
2022-11-27 12:45:49.1216|INFO|com.mhwlng.starcitizen|1|D:\Jeux\StarCitizen\StarCitizen\LIVE\USER\Client\0\Profiles\default\actionmaps.xml
2022-11-27 12:45:49.1466|INFO|com.mhwlng.starcitizen|1|Keyboard Detected, language : 40C keyboard : 40C culture : fr-FR
2022-11-27 12:45:49.1616|INFO|com.mhwlng.starcitizen|1|Keyboard Detected, language : 40C keyboard : 40C culture : fr-FR
2022-11-27 12:45:49.1846|INFO|com.mhwlng.starcitizen|1|monitoring key binding file
2022-11-27 12:45:49.1876|INFO|com.mhwlng.starcitizen|1|Finished Init Star Citizen
2022-11-27 12:45:49.1876|INFO|com.mhwlng.starcitizen|1|Plugin [com.mhwlng.starcitizen] Loading - 2 Actions Found
2022-11-27 12:45:49.3876|INFO|com.mhwlng.starcitizen|1|Plugin version: 1.0.8
2022-11-27 12:45:49.3906|INFO|com.mhwlng.starcitizen|1|Connecting to Stream Deck
2022-11-27 12:45:51.4460|INFO|com.mhwlng.starcitizen|1|Connected to Stream Deck
2022-11-27 12:45:51.4460|INFO|com.mhwlng.starcitizen|1|GlobalSettingsManager initialized

Buttons not doing anything / XmlReader state should be interactive

Hi, I am attempting to use this plugin and am having trouble getting any of the buttons to work. I was browsing this repo and found out about the log which is below. I had tried setting the config to point to my files manually but still no luck. StreamDeck is run as admin. I did notice the XmlReader error and was wondering if that was the issue and how to fix it.

Thank you for your time!

2024-01-05 19:44:54.4958|INFO|com.mhwlng.starcitizen|88|BarRaider.SdTools.Communication.StreamDeckConnection RunAsync completed, shutting down
2024-01-05 19:44:54.5221|INFO|com.mhwlng.starcitizen|15|Disconnect event received
2024-01-05 19:44:54.5221|INFO|com.mhwlng.starcitizen|1|Plugin Disconnected - Exiting
2024-01-05 19:45:11.3359|DEBUG|com.mhwlng.starcitizen|1|Logger Initialized
2024-01-05 19:45:11.3707|INFO|com.mhwlng.starcitizen|1|Init Star Citizen
2024-01-05 19:45:11.3811|INFO|com.mhwlng.starcitizen|1|
2024-01-05 19:45:11.3811|INFO|com.mhwlng.starcitizen|1|C:\StarCitizen\LIVE\USER\Client\0\Profiles\default\actionmaps.xml
2024-01-05 19:45:11.4025|FATAL|com.mhwlng.starcitizen|1|DProfileReader: System.InvalidOperationException: The XmlReader state should be Interactive.
   at System.Xml.Linq.XNode.ReadFrom(XmlReader reader)
   at SCJMapper_V2.SC.DProfileReader.fromXML(String xml)
   at starcitizen.Program.GetKeyBindings(Object threadContext)
   at starcitizen.Program.Main(String[] args)
2024-01-05 19:45:11.4025|INFO|com.mhwlng.starcitizen|1|Finished Init Star Citizen
2024-01-05 19:45:11.4098|INFO|com.mhwlng.starcitizen|1|Plugin [com.mhwlng.starcitizen] Loading - 3 Actions Found
2024-01-05 19:45:11.7672|DEBUG|com.mhwlng.starcitizen|1|Plugin Loaded: UUID: DADCB343280E0425AE4D486269A32C4B Device Info: Devices:
[Id: D077EA89CF1CCFBE779A2985ADB5671E Type: StreamDeckClassic Size: Rows: 3 Columns: 5]
ApplicationInfo: Language: en Platform: windows Version: 6.5.0.19904
PluginInfo: Version: 1.1.1

2024-01-05 19:45:11.7672|INFO|com.mhwlng.starcitizen|1|Plugin version: 1.1.1
2024-01-05 19:45:11.7672|INFO|com.mhwlng.starcitizen|1|Connecting to Stream Deck...
2024-01-05 19:45:13.8661|INFO|com.mhwlng.starcitizen|1|Connected to Stream Deck
2024-01-05 19:45:13.8661|INFO|com.mhwlng.starcitizen|1|GlobalSettingsManager initialized

Request: Use dual icons like System -> Hotkey Switch

Is it possible to set dual-icons on a static button? Or have a seperate "input" called Static Switch?
That functions like the hotkey switch with has 2 icons available? 1 for pushed down, 1 when it's not?

Examples i could think of are:
Landing gear = up, icon = green. Landing gear = down, icon = red
Cruise control = on, icon = green. Cruise control = off, icon = red.

Function keys [static button] not registering

The function keys for my setup aren't working, but if I was to use just a hotkey instead of a function key it works. Not sure where the issue lies. I changed the app settings to point to my needed places:

Below are both my logs and action maps. I've tried running as admin and everything, just seems like the Function pieces in the streamdeck themselves arent registering with SC. I've checked and made sure the hotkeys line up as well.

actionmaps.xml.txt
pluginlog.log

Compilation

Hi
I started modifying your plugin to add a toggle bouton but I cant compil the program.
I ve got stuck with ": error NU1201: Le projet WindowsInput n'est pas compatible avec net40 (.NETFramework,Version=v4.0). Le projet WindowsInput prend en charge : net48 (.NETFramework,Version=v4.8) [E:\0_All\Document\streamdeck-starcitizen-master\starcitizen.sln]"
(sorry it s in french)
And I wonder if you can help me overhide it or compil the program for me
Thanks
streamdeck-starcitizen-master.zip

W32/Exploit.gen' antivirus alert

Hi, the new versión 1.1.2 makes my antivirus to alert and auto-delete the file:

W32/Exploit.gen' antivirus alert --> com.mhwIng.starcitizen.exe

Stream Deck Star Citizen actions no longer firing

My Star Citizen Static Button actions are no longer firing in Star Citizen or while using a test environment like Notepad++. I've uninstalled and reinstalled the 1.0.8 plugin and also tried running Stream Deck in administrative mode with no success.

I don't believe anything has changed in my environment other than the usual updates to Windows, Star Citizen, and Stream Deck. Everything is running at its latest available version.

Examining the log file, it appears there is an issue with the XmlReader state while opening the actionmaps.xml file:

2022-11-21 11:04:20.3284|DEBUG|com.mhwlng.starcitizen|1|Logger Initialized
2022-11-21 11:04:20.3454|INFO|com.mhwlng.starcitizen|1|Init Star Citizen
2022-11-21 11:04:20.3454|INFO|com.mhwlng.starcitizen|1|F:\Program Files\Roberts Space Industries\StarCitizen\LIVE\Data.p4k
2022-11-21 11:04:38.5327|INFO|com.mhwlng.starcitizen|1|actionmaps.xml
2022-11-21 11:04:38.5513|FATAL|com.mhwlng.starcitizen|1|DProfileReader: System.InvalidOperationException: The XmlReader state should be Interactive.
at System.Xml.Linq.XNode.ReadFrom(XmlReader reader)
at SCJMapper_V2.SC.DProfileReader.fromActionProfile(String xml)
at starcitizen.Program.GetKeyBindings(Object threadContext)
at starcitizen.Program.Main(String[] args)
2022-11-21 11:04:38.5513|INFO|com.mhwlng.starcitizen|1|Finished Init Star Citizen
2022-11-21 11:04:38.5513|INFO|com.mhwlng.starcitizen|1|Plugin [com.mhwlng.starcitizen] Loading - 2 Actions Found
2022-11-21 11:04:38.6649|INFO|com.mhwlng.starcitizen|1|Plugin version: 1.0.8
2022-11-21 11:04:38.6649|INFO|com.mhwlng.starcitizen|1|Connecting to Stream Deck
2022-11-21 11:04:40.7353|INFO|com.mhwlng.starcitizen|1|Connected to Stream Deck
2022-11-21 11:04:40.7353|INFO|com.mhwlng.starcitizen|1|GlobalSettingsManager initialized
2022-11-21 11:10:04.6245|INFO|com.mhwlng.starcitizen|26|Disconnect event received
2022-11-21 11:10:04.6255|INFO|com.mhwlng.starcitizen|1|Plugin Disconnected - Exiting
2022-11-21 11:10:37.5616|DEBUG|com.mhwlng.starcitizen|1|Logger Initialized
2022-11-21 11:10:37.5896|INFO|com.mhwlng.starcitizen|1|Init Star Citizen
2022-11-21 11:10:37.6106|INFO|com.mhwlng.starcitizen|1|F:\Program Files\Roberts Space Industries\StarCitizen\LIVE\Data.p4k needs update : False
2022-11-21 11:10:37.6106|INFO|com.mhwlng.starcitizen|1|actionmaps.xml
2022-11-21 11:10:37.6465|FATAL|com.mhwlng.starcitizen|1|DProfileReader: System.InvalidOperationException: The XmlReader state should be Interactive.
at System.Xml.Linq.XNode.ReadFrom(XmlReader reader)
at SCJMapper_V2.SC.DProfileReader.fromActionProfile(String xml)
at starcitizen.Program.GetKeyBindings(Object threadContext)
at starcitizen.Program.Main(String[] args)
2022-11-21 11:10:37.6465|INFO|com.mhwlng.starcitizen|1|Finished Init Star Citizen
2022-11-21 11:10:37.6465|INFO|com.mhwlng.starcitizen|1|Plugin [com.mhwlng.starcitizen] Loading - 2 Actions Found
2022-11-21 11:10:37.8314|INFO|com.mhwlng.starcitizen|1|Plugin version: 1.0.8
2022-11-21 11:10:37.8314|INFO|com.mhwlng.starcitizen|1|Connecting to Stream Deck
2022-11-21 11:10:46.2308|INFO|com.mhwlng.starcitizen|1|Connected to Stream Deck
2022-11-21 11:10:46.2308|INFO|com.mhwlng.starcitizen|1|GlobalSettingsManager initialized

Feature Request

Hi, thank you for creating this plug, it is awesome!

I was wondering if I could submit a feature request for it, to have a second button, that is a toggle button, similar to how the stream deck "Hotkey Switch" works with two functions, and icon swapping for on off toggles, like vehicle power, shields, weapons on/off etc.

Thank you for your time, and creating such an awesome plugin!

Feature Request: Hold Button

The game allows certain actions to be done differently when the hotkey is held. For example, firing countermeasures can be done in two ways: you can fire a single flare by tapping the countermeasures button, or you can "queue up" multiple of the flares by holding the button, then releasing.

Allowing the streamdeck buttons to be held to fire multiple chaff, or any other function that can be used by holding the key down, would be a super useful addition!

Thanks

Stream Deck + dial support?

Is it possible to add support for the stream deck + dial buttons?
I'd like to bind the laser to one of my dials. If i can give any files/support whatever, feel free to reach out as i can understand you might not have access to a stream deck + right away

Similar support for Loupedeck?

Hi!

I hope you don't mind me opening an issue here, I was wondering if you would be interested in looking into something similar for our control surfaces over at Loupedeck. We have similar consoles as what elgato provides and our SDK is in C#. You can email me at [email protected] if you want to talk further :)

Regs,
Emil

Can this be used as a keybind provider?

Feature Request / Question

Can parts of the code be used as a key map/keybind provider?

Background

I don’t have a steam desk but do want to use some of the work here pulling key-binds from the p4k file. Would love if that is possible.

Broken with recent StreamDeck update?

I've recently updated to Stream Deck software version 6.5.0 (19904) and something about your Star Citizen plugin has stopped working. The button's don't even generate errors, that would at least be helpful.
I've tried reinstalling the plugin, recreating some of the buttons, even running the Stream Deck software with and without Admin Privileges. Nothing seems to fix it.

Any possibility you could get it up and running, perhaps?

THANKS!

Can't connect

Hello,

I got a new PC, so far so good, but can't make your fantastic plugin work here.

Path is set (hopefully correctly):
<?xml version="1.0" encoding="utf-8" ?> <appSettings> <add key="SCData_p4k" value ="H:\Program Files\Roberts Space Industries\StarCitizen\LIVE\Data.p4k" /> <add key="SCClientProfilePath" value ="H:\Program Files\Roberts Space Industries\StarCitizen\LIVE\USER\Client\0\Profiles\default" /> </appSettings>

plugin log says
2022-07-01 10:50:25.9680|INFO|com.mhwlng.starcitizen|17|Disconnect event received 2022-07-01 10:50:25.9680|INFO|com.mhwlng.starcitizen|1|Plugin Disconnected - Exiting 2022-07-01 10:50:29.7525|DEBUG|com.mhwlng.starcitizen|1|Logger Initialized 2022-07-01 10:50:29.7650|INFO|com.mhwlng.starcitizen|1|Init Star Citizen 2022-07-01 10:50:29.7650|INFO|com.mhwlng.starcitizen|1|H:\Program Files\Roberts Space Industries\StarCitizen\LIVE\Data.p4k needs update : False 2022-07-01 10:50:29.7650|INFO|com.mhwlng.starcitizen|1|H:\Program Files\Roberts Space Industries\StarCitizen\LIVE\USER\Client\0\Profiles\default\actionmaps.xml 2022-07-01 10:50:29.7779|FATAL|com.mhwlng.starcitizen|1|DProfileReader: System.InvalidOperationException: Der XmlReader-Zustand sollte 'Interactive' sein. bei System.Xml.Linq.XNode.ReadFrom(XmlReader reader) bei SCJMapper_V2.SC.DProfileReader.fromXML(String xml) bei starcitizen.Program.GetKeyBindings(Object threadContext) bei starcitizen.Program.Main(String[] args) 2022-07-01 10:50:29.7779|INFO|com.mhwlng.starcitizen|1|Finished Init Star Citizen 2022-07-01 10:50:29.7779|INFO|com.mhwlng.starcitizen|1|Plugin [com.mhwlng.starcitizen] Loading - 2 Actions Found 2022-07-01 10:50:29.9264|INFO|com.mhwlng.starcitizen|1|Plugin version: 1.0.8 2022-07-01 10:50:29.9264|INFO|com.mhwlng.starcitizen|1|Connecting to Stream Deck 2022-07-01 10:50:31.9814|INFO|com.mhwlng.starcitizen|1|Connected to Stream Deck 2022-07-01 10:50:31.9814|INFO|com.mhwlng.starcitizen|1|GlobalSettingsManager initialized

tried also to run StreamDeck as Admin, bot success.

Any help would be appreciated,
many thanks!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.