Skip to content

Bugfixes and enhancements#2629

Merged
Dunbaratu merged 21 commits intoKSP-KOS:developfrom
CharlesOliner:bugfixes-and-enhancements
Nov 1, 2019
Merged

Bugfixes and enhancements#2629
Dunbaratu merged 21 commits intoKSP-KOS:developfrom
CharlesOliner:bugfixes-and-enhancements

Conversation

@CharlesOliner
Copy link
Contributor

@CharlesOliner CharlesOliner commented Oct 14, 2019

Resolves #2613
Resolves #2609
Resolves #2606
Resolves #2599
Resolves #2587
Resolves #2556
Resolves #2530

Added suffixes PARTNER and HASPARTNER to DockingPort, an optional third argument to the heading function, suffix WORDWRAP to Style, a global BODYEXISTS function, optional second arguments to FLOOR and CEILING, and an orbit constructor.
Got rid of startup message about terminal fonts.

Copy link
Member

@Dunbaratu Dunbaratu left a comment

Choose a reason for hiding this comment

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

Sorry I took so long to respond to this. Between the apartment fire and being sick, I haven't been operating at my best. I finally got around to it today and had some minor comments. Other than these few minor things I think it looks good and I could merge.

:func:`CEILING(a)` round up
:func:`CEILING(a,b)` round up to nearest place
:func:`FLOOR(a)` round down
:func:`CEILING(a,b)` round down to nearest place
Copy link
Member

Choose a reason for hiding this comment

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

Is this right? Should that be the comment that goes with FLOOR(a,b), not CEILING(a,b)?

SET myDir TO HEADING(degreesFromNorth, pitchAboveHorizon).

The third parameter, *roll*, is optional.

Copy link
Member

Choose a reason for hiding this comment

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

The sentence above doesn't mention what roll actually does. I think this will have to explain roll by giving examples, since it's otherwise unclear. example: 0 = roof of capsule points at the sky, 180 = roof of capsule points at the ground.

This creates a new orbit around the Mun::

SET myOrbit TO O(0, 0, 270000, 0, 0, 0, 0, Mun).

Copy link
Member

Choose a reason for hiding this comment

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

I think we have too many built-ins that are only one letter long like this O(). It gets in the way of people making their own variables. I think we should make this a longer word. Orbit is taken already so maybe neworbit() or createorbit().

Added more details about the new roll argument for HEADING.
Renamed the new Orbit constructor O to CREATEORBIT.
@CharlesOliner
Copy link
Contributor Author

CharlesOliner commented Oct 25, 2019 via email

@Dunbaratu
Copy link
Member

Sadly no - you really need python to run the sphinx scripts. I can't seem to get it to work right on my Windows install at all either (not python, but the rest of the sphinx stuff). I have a remote server with Linux on it where I run them the script generation there. I often don't run it until about to release, which means often releasing includes one more PR where I fix up the minor errors from .RST stuff that didn't parse right, or misspelled links, etc from the last few months. I usually accept RST edits in PRs without testing that they have proper syntax, because I feel confident I can fix them up later while still keeping the meaning right if the author typed all the text but just messed up the formatting syntax.

@Dunbaratu Dunbaratu merged commit f57f899 into KSP-KOS:develop Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment