Skip to content

Conversation

@Clayell
Copy link

@Clayell Clayell commented May 17, 2025

This PR combines the following PRs and adds additional features: (it was getting too complicated to make sure that they remained compatible with each other)
#10, #11, , #12

List of Improvements:

  • Latitude indicator added
    • There is nothing else in the KSC scene that can tell you your latitude. I like to watch the launch now inclination approach the latitude, and you can't do that if you cannot see your latitude. (Nazfib pointed out that this does not occur anyway with low latitude launch sites, but oh well) Additionally, TWP2 requires you to know your latitude to put it in. This UI has been squeezed into only one line to save some space.
  • A "?" button can be clicked, which opens all tooltips. (for some reason, the mouseover tooltip for Box was not working, so I had to do this)
  • ° has been changed to \u00B0 for more compatibility
  • The user can now input as many digits as they want for the various input boxes (Fixes The "Flight Time" window works with precise user input but rounds it for display #5)
  • The error message when the Moon cannot be found has been clarified, and the flight time input isn't unnecessarily made present
  • Flight time input in days is also shown in days, hours, minutes, and seconds to make it easier to input elsewhere
  • The delta-v for the maneuver for an immediate launch is shown, with a minimum of 3000 m/s and maximum of 6000 m/s. (adapted from test_account's code)
  • The altitude for the parking orbits can be edited in increments of 5km and with a minimum of 140km, can be accessed by hitting "..." under the required delta-V
  • The time in a certain parking orbit after the launch and until the maneuver is shown and is hidden by default, can be accessed by hitting "..." under that specific inclination (adapted from test_account's code)
  • Various spelling and spacing changes
  • README has been updated

Remaining Improvements to make: (not required, might be done in different PRs)
(see comment below)

Pictures:
image image
image image

As it seems that RCrockford has been procrastinating a little bit on merging nazfib's PR (no offense, irl is busy I get it), I have published a release with nazfib's PR and all of my improvements here if anyone wants to use it until a new LTP release is published and doesn't know how to compile the code themselves. I have confirmed that all PRs work as intended.

@ezsnackeur
Copy link

phase angle to TLI*

@Clayell
Copy link
Author

Clayell commented May 18, 2025

The time in parking orbit seems to be consistently wrong (underestimating), both with and without Principia. These images are from a cheated orbit directly above the launch location, so they should theoretically be perfect.

with:
image

without:
image
image

@Clayell
Copy link
Author

Clayell commented May 25, 2025

Unmerged changes status update (the changes are in here, with some of my notes here. definitely not done yet tho)

Done: (this is incomplete, a lot of other features have been added)

  • Ability to target moon (https://discord.com/channels/319857228905447436/480397772248580098/1375974378529095815)
  • Ability to see phasing angle instead of time in orbit
  • Principia support for inclination (fixes Transfer window planner countdown resetting, launch now incl is wrong #6)
  • Increased accuracy for time in orbit (seems to be accurate down to within a few seconds, with and without principia)
  • Reduce code repetition (remove unused Floor method)
  • Replace minus symbol with en dash, replace "..." with "+" and "[en dash]"
  • Mouse-over tooltips
  • Convert things to double instead of float
  • Settings file clean up
  • Add new settings menu
  • Number edit boxes will only update their value when they can parse a value, so it won't get reset if you add a "."
  • Essentially remove all performance impact (previously about 20 FPS) by using a global time and only updating when needed
  • Allow for alternate unity skin
  • Ability to switch the targets/homebodies (LTP now works on Kerbin with the Mun or Minmus, along with any other planet with moon(s)) (Not only Moon. #9)
  • Fixed Some windows get skipped #2 by implementing a better EstimateLaunchTime
  • Moved settings.cfg from Plugins/PluginData/LunarTransferPlanner to Plugins/PluginData
    • Added more settings in the setting.cfg
  • Rename KACWrapper namespace to KerbalAlarmClock (it was KerbalConstructionTime before??? mustve been copy and pasted)
  • Allowed for extra launch windows to be seen, instead of just the 1st and 2nd
  • Allow extra launch windows to be added as an alarm
    • Also made a PR to add KAC to the recommends for LTP on CKAN
  • Button to switch between finding the global minimum and local minimum at low latitudes
  • Special Warp mechanic to get around problems with long warps and perturbations due to Principia (if installed)
  • Allow user to switch between azimuth and inclination
  • Allow user to input custom azimuth/inclination to optimize towards, instead of the default 90 azimuth (east)
  • Allow for vessels to be targeted along with celestial bodies
  • Add ClickThroughBlocker and ToolbarController as dependencies
  • Make UI hide when F2 is pressed
  • Allow mod to function in the VAB, SPH, and Tracking Station
  • Do not open window by default (LTP window defaults to open when installing the mod/on a fresh rp1 install #13)
  • Make Add Alarm button work for stock alarm clock too

Still in Progress:

  • Fix transit time inaccuracy (it seems to be about an hour off, with and without principia)
  • Time in orbit and delta-V seem to be off, not sure what I did to break them
  • Allow ability to see Launch LAN instead of Launch Time
  • Update README

Unfixable bugs: (as in, I've tried to fix them and have given up, but let me know if you have an idea to fix them)

  • ArgumentException related to changing the size of the UI with a button. Seems harmless, but can't figure out how to either stop it from triggering, or how to catch the exception.
  • UI goes partially transparent after switching scenes (this seems to be a stock KSP UI bug, it happens with the RP-1 and KAC UIs at the same time)
  • We have to use getPositionAtUT to predict the target body's position at a later time, which doesn't take into account perturbations of the orbit due to Principia. Principia's CelestialGetPosition doesn't work for a future time, so I'm unsure how to fix this, however I've implemented the special warp mechanic that uses multiple warps to reduce errors from Principia.

@Clayell Clayell changed the title A collection of QoL improvements to the UI A collection of improvements Jun 1, 2025
@Clayell
Copy link
Author

Clayell commented Jun 7, 2025

When this PR is completed, Lunar Transfer Planner will be able to target multiple celestial bodies and vessels in orbit of the current planet. The name "Lunar Transfer Planner" will therefore be obsolete, and so a new name should be chosen to make its capabilities more clear. Does anyone have any ideas? Here's some ideas I have so far:

  • Satellite Transfer Planner
  • Launch Rendezvous Planner
  • Transfer Orbit Planner

Edit: Target Intercept Planner has been officially chosen as the name of the new mod.

@Clayell
Copy link
Author

Clayell commented Jan 8, 2026

This PR is still fine, but LTP is now redundant with the release of TIP.

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.

The "Flight Time" window works with precise user input but rounds it for display

2 participants