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

check if STTS is installed and configured before trying to call the executable #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

davidp57
Copy link

If the user add the STTS script to a mission and configures it (sets up the directory and port), but somehow the executable itself is not available (was not installed, has been moved, is not accessible by the current user, etc.), then an error pops up and DCS is frozen.

This little change ensures that, the first time STTS is used, it will check if the executable file is actually there.
Then, this information is cached for better performance.

@davidp57
Copy link
Author

davidp57 commented Mar 9, 2024

Hi @ciribob; we detected a bug in a logging statement that crashed the script, and I made a correction.

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.

1 participant