Skip to content

Fixes #2499 disallow unset bindings, also document.#2510

Merged
Dunbaratu merged 2 commits intoKSP-KOS:developfrom
Dunbaratu:fixes_2499_no_unset_bound_vars
May 22, 2019
Merged

Fixes #2499 disallow unset bindings, also document.#2510
Dunbaratu merged 2 commits intoKSP-KOS:developfrom
Dunbaratu:fixes_2499_no_unset_bound_vars

Conversation

@Dunbaratu
Copy link
Member

Fixes #2499 by disallowing the UNSETing of things that were not created by the user.

In trying to document the changes to UNSET, I found out that UNSET was not even really documented at all prior to this, so I also added UNSET documentation.

Dunbaratu added 2 commits May 6, 2019 10:57
In trying to document the changes to UNSET, I found out
that UNSET was not even really documented at all prior
to this, so I also added UNSET documentation.
SET SASMODE TO value.

It is the equivalent to clicking on the buttons next to the nav ball while manually piloting the craft, and will respect the current mode of the nav ball (orbital, surface, or target velocity - use NAVMODE to read or set it). Valid strings for ``value`` are ``"PROGRADE"``, ``"RETROGRADE"``, ``"NORMAL"``, ``"ANTINORMAL"``, ``"RADIALOUT"``, ``"RADIALIN"``, ``"TARGET"``, ``"ANTITARGET"``, ``"MANEUVER"``, ``"STABILITYASSIST"``, and ``"STABILITY"``. A null or empty string will default to stability assist mode, however any other invalid string will throw an exception. This feature will respect career mode limitations, and will throw an exception if the current vessel is not able to use the mode passed to the command. An exception is also thrown if ``"TARGET"`` or ``"ANTITARGET"`` are used, but no target is selected.
It is the equivalent to clicking on the buttons next to the nav ball while manually piloting the craft, and will respect the current mode of the nav ball (orbital, surface, or target velocity - use NAVMODE to read or set it). Valid strings for ``value`` are ``"PROGRADE"``, ``"RETROGRADE"``, ``"NORMAL"``, ``"ANTINORMAL"``, ``"RADIALOUT"``, ``"RADIALIN"``, ``"TARGET"``, ``"ANTITARGET"``, ``"MANEUVER"``, ``"STABILITYASSIST"``, and ``"STABILITY"``. A null or empty string will default to stability assist mode, however any other invalid string will throw an exception. This feature will respect career mode limitations, and will throw an exception if the current vessel is not able to use the mode passed to the command. An exception is also thrown if ``"TARGET"`` or ``"ANTITARGET"`` are used when no target is set.
Copy link
Member Author

Choose a reason for hiding this comment

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

Github's diff'er didn't highlight the relevant part of the line like it usually does. Hint to reviewer: The only difference is in the last sentence of this paragraph.

@Dunbaratu Dunbaratu merged commit 62c81ed into KSP-KOS:develop May 22, 2019
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.

UNSET breaks bound variables like GEAR, TARGET, etc.

1 participant