Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #911 - Set VCCS PTT and audio device via LogonDetails.exe #912

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AdriTheDev
Copy link
Contributor

Fixes #911

Summary of changes

Updated LogonDetails.exe to now set up VCCS PTT and audio devices.

Screenshots (if necessary)

N/A

@AdriTheDev
Copy link
Contributor Author

As per advice from Patrick, there are some modules that aren't a standard part of Python. Shall fix :)

# VCCS PTT Key

print("Push a key you want to use for VCCS. (Note: Keyboard only)")
PTT = str(int(hex(keyboard.read_event().scan_code), 16) << 16)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The keybind prompt character may be transferred to the next prompt as input.

# VCCS PTT Key

print("Push a key you want to use for VCCS. (Note: Keyboard only)")
PTT = str(int(hex(keyboard.read_event().scan_code), 16) << 16)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this in my cursory look over earlier; what's the purpose of this? Is int(hex(_), 16) not identity?

Comment on lines +108 to +109
VCCSInput = sd.query_devices(sd.default.device[0])['name']
VCCSOutput = sd.query_devices(sd.default.device[1])['name']
Copy link
Contributor

@PLM1995 PLM1995 Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't provide any protection against 'abridged' names being the default device, e.g. in my case, my default device is Headset Microphone (2- Corsair rather than the full Headset Earphone (2- Corsair HS70 Wireless Gaming Headset) as saved in ES .prf files. Do we need a warning/prohibition of this? I wonder if it might make more sense to force people to choose their device from a valid list??

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this is problematic, but I get twice as many device options in the script as I do running from ES's VCCS Setup. I can imagine it being unhappy if you chose a device which it didn't have in its list?
image

Comment on lines +130 to +133
PrfVCCSNick=("TeamSpeakVccs Ts3NickName "+CID)
PrfVCCSPTT=("TeamSpeakVccs Ts3G2GPtt "+PTT)
PrfVCCSInput=("TeamSpeakVccs CaptureDevice "+VCCSInput)
PrfVCCSOutput=("TeamSpeakVccs PlaybackDevice "+VCCSOutput)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be considering setting the TeamSpeakVccs CaptureMode as well for completeness or does it not matter/default to something sensible?

@SamLefevre
Copy link
Collaborator

Probably also worth renaming the file to something like "Profile Configurator".

@PLM1995
Copy link
Contributor

PLM1995 commented Nov 18, 2024

Probably also worth renaming the file to something like "Profile Configurator".

Yeah.


Also, given this .exe is going to be used by new people and observers, should we be explaining more explicitly what VCCS is?

Something like: "VCCS is used for voice coordination within EuroScope."...

We could maybe even allow users to skip the configuration of it if they wish, but I think 'making' everyone set it up is good personally.

@AdriTheDev
Copy link
Contributor Author

Sorry about the delays everyone! Been busy with work and trying to get FS 2024 working.
I'll work on fixing the issues bought up Friday :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set VCCS PTT and audio device via LogonDetails.exe
5 participants