Jump to content

[WIN/MAC/LINUX] KSP Trajectory Optimization Tool v1.6.7 [LVD / kOS Integration!]


Recommended Posts

25 minutes ago, Tacombel said:

Is it possible to include moons in MFMS? I have a mission Mun-Eve-Duna, and don't know exactly how to do it. My best bet at this moment is to go back to Kerbin to do the Mun fly-by, but that nearly doubles the needed dV.

I'm afraid it's not.  That would break the assumptions of the underlying math.  Doing Kerbin->Eve->Duna to get the departure/arrival dates and then use LVD to find the actual trajectory.

Link to post
Share on other sites

I'm currently re-uploading KSPTOT v1.6.8 pre-release 4 with a fix for the LVD bug @Tacombel found.  This is the only difference between the previously released PR4.  Give it 10-15 minutes from this post and then re-download it if you'd like the fixed version.  The bug had to do with optimizing the new flight path angle termination condition, so if you don't need that, then there's no need to download this build.

Link to post
Share on other sites

Hi everyone,

I wanted to make the KSPTOT community aware today that my Reddit account (/u/Arrowstar) that I've previously used to discuss KSPTOT on the KSP subreddit was hijacked last week.  I am trying to get it back and have emailed the support people to see if they'll work with me.  Unfortunately, at this time it looks like whoever now controls it has started to post NSFW content.  This is not me.  They also deleted the past 4 years of my posts, including KSPTOT postings as well as other personal things I've done (RIP to my paintings on /r/HappyTrees). 

Needless to say, I was pretty hurt when I saw this happen.

I've created a (hopefully temporary) new account, /u/Arrowstar2.  Obviously I don't have much KSPTOT stuff to post at the moment, but I wanted to make everyone aware so you didn't think terrible things of me or anything.

If I get the account back, I'll update this post with more information.  Thanks for understanding, everyone.

Link to post
Share on other sites
4 hours ago, Arrowstar said:

Hi everyone,

I wanted to make the KSPTOT community aware today that my Reddit account (/u/Arrowstar) that I've previously used to discuss KSPTOT on the KSP subreddit was hijacked last week.  I am trying to get it back and have emailed the support people to see if they'll work with me.  Unfortunately, at this time it looks like whoever now controls it has started to post NSFW content.  This is not me.  They also deleted the past 4 years of my posts, including KSPTOT postings as well as other personal things I've done (RIP to my paintings on /r/HappyTrees). 

Needless to say, I was pretty hurt when I saw this happen.

I've created a (hopefully temporary) new account, /u/Arrowstar2.  Obviously I don't have much KSPTOT stuff to post at the moment, but I wanted to make everyone aware so you didn't think terrible things of me or anything.

If I get the account back, I'll update this post with more information.  Thanks for understanding, everyone.

OMG, sorry to hear that. I hope they help you recover the account and hopefully the content too, and thank you for the heads up!

Link to post
Share on other sites
Posted (edited)

Hi everyone,

Good news!  The Reddit admins were able to restore my account to me.  Needless to say, I am very grateful and have turned on 2 factor authentication so this doesn't happen again.  I've also cleaned out the filth that the hijacker posted.  Unfortunately it looks like all of my posts were basically deleted.  I've asked to see if they can be recovered, but I suspect that the answer is no. 

Anyway, I will likely be deactivating the /u/Arrowstar2 account in the near future, so please don't follow that one or anything.  Thanks!

Edited by Arrowstar
Link to post
Share on other sites
  • 2 weeks later...

Hi everyone!

Tonight I'm excited to announce the release of KSPTOT v1.6.8 pre-release 5.  This is a major update, not for the features that it brings, but because it marks KSPTOT moving to a new release of MATLAB after ~4 years on the venerable R2017b!  As of PR5, we will be on the latest and greatest, R2021a!

In order to use this release, and all releases going forwards, you will need to download and install the MATLAB Compiler Runtime for R2021a (MATLAB 9.10) for your operating system at this link: here.  The R2017b MCR will not run PR5 and later.

Why move to R2021a?  Because I saw a ton of performance improvements across the board.  In LVD, I was seeing a ~25% decrease in run time in my "Two Stage to Orbit" example just by moving to this version.  It was simply too good to ignore and not pass on to you.  And as an added bonus, the KSPTOT downloads are now 50% smaller than before.  It's really win-win all around.

Here's the change log.  It's pretty minimal because most of my development time has been spent checking out R2021a.

  • Upgrade MATLAB version to R2021a.
  • LVD: Incorporation of surrogate optimizer as an optimization method.
  • LVD: New optimizer output for NOMAD and PatternSearch optimizers.
  • A bunch of bug fixes and tweaks all around.

Because this is a new MATLAB release, and because it's impossible for me to test everything, I would certainly appreciate if everyone could please take a look at this release, test it out, and report back any bugs.  Thank you!

Happy orbiting. :)

Link to post
Share on other sites

Just a heads up, I found a bug in the PR5 build that caused certain listbox UIs to not appear when opened.  This was due to the upgrade to R2021a.  I've resolved the issue and rebuilt PR5.  Please redownload when you have a chance.  Thanks!

Link to post
Share on other sites
  • 2 weeks later...

I stopped playing KSP a few years ago and am now finally returning to it once again. Before I really enjoyed KSPTOT. At the time, I was able to run it directly on macOS and it was pretty good. I was a bit surprised to find that now the macOS instructions are essentially "install it on a linux VM"... This seems to me that it would require running KSP inside the VM as well if planning to use KSPTOTConnect. Overall, this sounds terrible for performance.

I was wondering if the macOS instruction have changed because no one is actively testing it or if there has really been some fundamental change which makes KSPTOT incompatible with macOS?

Link to post
Share on other sites
1 hour ago, Cristovao said:

I stopped playing KSP a few years ago and am now finally returning to it once again. Before I really enjoyed KSPTOT. At the time, I was able to run it directly on macOS and it was pretty good. I was a bit surprised to find that now the macOS instructions are essentially "install it on a linux VM"... This seems to me that it would require running KSP inside the VM as well if planning to use KSPTOTConnect. Overall, this sounds terrible for performance.

I was wondering if the macOS instruction have changed because no one is actively testing it or if there has really been some fundamental change which makes KSPTOT incompatible with macOS?

The person who volunteered to build the MacOS version for me has not been around for some time (since maybe version 1.1 or so).  I don't own a Mac and so basically my options were either to let the last built version stay up or ask people to use a VM. 

Using a VM will definitely cause a hit to performance, but it's the best I've got. :(

Quote

This seems to me that it would require running KSP inside the VM as well if planning to use KSPTOTConnect.

I don't think this is true though!  You can run the KSPTOTConnect plugin on MacOS in KSP and then just figure out what 192.168.x.y your Linux VM and main machine are at, and then connect accordingly.  Or I think anyway.  Long story short, you shouldn't need to run KSP in a VM to get this to work.

Edited by Arrowstar
Link to post
Share on other sites
57 minutes ago, Cristovao said:

Would you be willing to share some instructions on how to build KSPTOT? I would be willing to give it a try to have a native macOS tool.

Do you have a copy of MATLAB R2017b or R2021a for MacOS?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...