Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
jkru2133

Avatar / Picture

Registered:
Posts: 18
Reply with quote  #1 
Hi everyone,

I am looking for a bit of help. I have an APC mini MIDI pad lying around my house and would love to use it to control Artemis. Now i have set up a MIDIkey2key for scicom and for Weapons but for engineering I would love to be able to use those little sliders. Does anybody maybe know how to do that?

I am quite the noob at programming so I would not even know how to begin writing a script for this but if anyone has an idea for me?

Thanks in advance!

__________________
LT.JR Pierce - TSN 2nd Space Fleet, 4th Light Division
TSN Horizon - Helm
HaydenBarca

Registered:
Posts: 455
Reply with quote  #2 
You found the control.ini file.  The key thing about the sliders (assuming that MIDIkey2key can convert them into a number) is that the energy level of each ship system ranges from 0 to 1.0, where 1.0 is displayed as 300% in the game (and 0.33 is listed as 100%).  I know others have linked sliders into engineering before, but I haven't done it myself.  Most of that sort of thing is in the forum in the "LBE and Custom Bridges" section.  Here's one that might help:
https://artemis.forumchitchat.com/post/engineering-consoles-and-rotary-encoders-and-capacitive-touch-sliders-oh-my-10052068?highlight=sliders&pid=1307762934
jkru2133

Avatar / Picture

Registered:
Posts: 18
Reply with quote  #3 
Thanks for the quick response!
I'm gonna take a look

__________________
LT.JR Pierce - TSN 2nd Space Fleet, 4th Light Division
TSN Horizon - Helm
NoseyNick

Avatar / Picture

Registered:
Posts: 349
Reply with quote  #4 
If you're a bit of a coder, one possible option might be to convert them to PACKETS instead of keystrokes or whatever?

https://artemis-nerds.github.io/protocol-docs/ describes the protocols. You would need something to be able to connect to a server on TCP port 2010, https://artemis-nerds.github.io/protocol-docs/#setshippacket to ask to be on ship 1 (or N), then https://artemis-nerds.github.io/protocol-docs/#engsetenergypacket and https://artemis-nerds.github.io/protocol-docs/#engsetcoolantpacket to set energy / coolant levels. Maybe https://artemis-nerds.github.io/protocol-docs/#engresetcoolantpacket to reset to flat. The display will update appropriately BUT won't let you exceed max coolant etc - you may want to work out the best way to provide the right feedback for that.

You will also need to send https://artemis-nerds.github.io/protocol-docs/#clientheartbeatpacket periodically or the server will start ignoring you, and presumably have some way to handle server crashes / disconnects / reconnects / etc.

If you're just trying to be an "input device" you can PROBABLY ignore everything else that it will throw at you, but if you wish to decode system damage and stuff, that's certainly possible too. I built a giant 4ft x 4ft LED display that shows damage and damcon team locations but is OUTPUT only - almost the opposite of what you want to do   [rofl]
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.