maneatingape / rsvp

kOS library that enables scripted orbital transfer window planning and vessel rendezvous for the the game Kerbal Space Program
GNU General Public License v3.0
41 stars 5 forks source link

Add retry logic to transfer creation #2

Open maneatingape opened 4 years ago

maneatingape commented 4 years ago

Before creating a feature request please check that:

Is your feature request related to a problem? Please describe.

Celestial bodies sometimes get in the way of transfers, causing them to fail. e.g Mun when leaving Kerbin

Describe the solution you'd like

Return list of transfers in ascending order of cost, instead of just returning best transfer. If a transfer can't be made for some reason (e.g. an unwanted encounter with another body gets in the way) then try the next best transfer and so on.

Describe alternatives you've considered

The user could handle retry logic in their own scripts.

ElWanderer commented 3 years ago

I ran into this issue (in my case it was Jool blocking the optimal path to Eeloo) but there was no indication as to what had gone wrong, other than no nodes being created (until I turned off node clean-up). Is it meant to print anything to the terminal in this case?