Jump to content

[1.12] Astrogator v1.0.0


HebaruSan

Recommended Posts

Astrogator v0.7.7 is released.

Based on investigation of @KerbMav's save file, this release improves the accuracy of transfers in general, especially when eccentric orbits are involved. I now get either an encounter or a close approach (within a few m/s of an encounter) from Kerbin for all stock planets in my testing, even Moho and Eeloo:

Spoiler

Mun:

mun.png

Minmus:

minmus.png

Moho:

moho.png

Eve:

eve.png

Duna:

duna.png

Dres:

dres.png

Jool:

jool.png

Eeloo:

eeloo.png

(Note that these screenshots are examples, not guarantees; encounters may become close approaches and vice versa depending on the exact timing.)

https://github.com/HebaruSan/Astrogator/releases/tag/v0.7.7

Link to comment
Share on other sites

On 7/22/2017 at 5:18 AM, Chaumas said:

@HebaruSan I just discovered your beautiful mod thanks to your post on the RPM thread. I love the integration with RPM -- thank you! :) 

On 7/22/2017 at 11:46 AM, Chaumas said:

@HebaruSan Awesome and thank you.

On 7/23/2017 at 1:37 PM, Chaumas said:

@HebaruSan Thank you for such a quick update to Astrogator! I am glad to see that you are now on RPM's OP. I am looking forward to test the update. The RPM monitor error message looks good and I like the red colored font. :) Thanks again!

Thanks, you're welcome, and thanks for the bug report! I had one previous report of a problem in the RPM display that may have been the same issue, but I was not able to track it down, and your report helped me finally to do that.

On 7/24/2017 at 0:23 AM, The Destroyer said:

I haven't played KSP in quite a long time, but this mod sounds fantastic. Easy to use and works (mostly) well it seems!

Welcome back and thanks! With the v0.7.7 release it certainly works better than it did when you posted that. :wink: Definitely a recommended upgrade.

13 hours ago, drtedastro said:

thanks for all of your great work.

cheers.

You're welcome, and thanks for stopping by!

 

In case anyone is curious about the algorithm in the latest update...

I did not manage to find a direct way to calculate transfers that precise (i.e., plug inputs into a math formula and out pops the answer). Instead I took an iterative approach; I started by creating a function to compute how close our transfer orbit would get us to the destination if we started at a given time, with a positive value representing the craft being ahead at arrival, negative representing the craft being behind at arrival, and zero representing a perfect alignment. (The "distance" is the angle in radians between the bodies with respect to the Sun, because converting to km would be extra work and involve vastly different scales e.g. at Mun vs Eeloo.) This already required improving the transfer orbit calculation, which up to this point was still using the semi-major axes of the start and end orbits for a few things! With some refactoring I was able to make it use the appropriate instantaneous radius values instead.

Then I used the bisection method to find a zero value of that distance-at-arrival function over a certain time interval (because I don't know the derivative, but also because it's so dead-simple to implement). If no solution is found in the first interval (as it commonly isn't for Eeloo), we try the next time interval after that, and so on. I think this is similar to what TWP does with its porkchop plots, but with fewer candidate orbits evaluated. I think the end result should be as accurate as any other mod or tool available, but I'm not sure how to establish that for sure.

In principle this should be more complex and slower than previous releases, but I didn't notice any performance degradation myself in testing. Please alert me if you do.

Link to comment
Share on other sites

  • 4 weeks later...

Thanks for the great mod. I am having a small issue with the Astrogator RPM. I am using Galileo's Planet Pack, and the normal Astrogator window shows all bodies correctly, but the Astrogator on RPM seems to have missed something. Not really sure what's going on. Any help would be appreciated. Thanks.

Here is what I am talking about:

 

Link to comment
Share on other sites

1 hour ago, chimpbone said:

Thanks for the great mod. I am having a small issue with the Astrogator RPM. I am using Galileo's Planet Pack, and the normal Astrogator window shows all bodies correctly, but the Astrogator on RPM seems to have missed something. Not really sure what's going on. Any help would be appreciated. Thanks.

Yup, 0.7.0 through 0.7.4 had a bug with the localization strings used for RPM, which I did not catch until RPM was updated for 1.3.0. It's fixed in 0.7.5, but I'd recommend upgrading all the way to 0.7.7 because there are some significant improvements to the orbit calculations.

 

Link to comment
Share on other sites

 

7 minutes ago, HebaruSan said:

Yup, 0.7.0 through 0.7.4 had a bug with the localization strings used for RPM, which I did not catch until RPM was updated for 1.3.0. It's fixed in 0.7.5, but I'd recommend upgrading all the way to 0.7.7 because there are some significant improvements to the orbit calculations.

Awesome. Just grabbed the newest version for the improved calculations. Didn't realize I had an outdated version. Thanks for your help!

Edited by chimpbone
Link to comment
Share on other sites

12 minutes ago, HaydenTheKing said:

=( didnt work for me through CKAN.  The icon just kept duplicating on ingame toolbar could never get it open.

No version numbers, no screenshots, no mod list, no exceptions, no log files... I can't help you, but good luck!

12 minutes ago, HaydenTheKing said:

I have kerbal alarm clock could that be interfering?

Nope. This mod has no conflicts with other mods.

Link to comment
Share on other sites

I'm a big time noob in KSP, but this mod has helped refine my interplanetary aspirations.

I used it to get to Duna, and to start getting the crew back.  I'll let you know how it goes.

Basically, it got me in the neighborhood, and let me set a mid-course correction to refine my Kerbin pass.  I couldn't have done it by myself!

Link to comment
Share on other sites

Ckan download is giving me trouble also, same issue as Haydentheking, The icon just kept duplicating on in game toolbar and clicking the icon didn't open anything.

version 1.3.0.1804  / v0.7.7

if this mod has no conflicts with other mods I guess I wont bother listing 40+ mods here 

NullreferenceException: Object reference not set to an instance of an object

jtxG3iW.png

jVGthCa.png

log file-  https://drive.google.com/open?id=0Bz9LmmuLWtTDV1RJcjlPZTdhMW8

Hopefully it's something dumb I am doing wrong, thanks for any help.

also love the mod, thanks for all the help getting to other planets.

 

Link to comment
Share on other sites

1 hour ago, donatedpants said:

Thanks! It's having trouble loading your settings:

Exception handling event onGUIApplicationLauncherReady in class SpaceCenterAstrogator:System.TypeInitializationException: An exception was thrown by the type initializer for Astrogator.Settings ---> System.NullReferenceException: Object reference not set to an instance of an object
  at ConfigNode.ReadObject (System.Object obj, .ConfigNode node) [0x00000] in <filename unknown>:0 
  at ConfigNode.LoadObjectFromConfig (System.Object obj, .ConfigNode node, Int32 pass, Boolean removeAfterUse) [0x00000] in <filename unknown>:0 
  at ConfigNode.LoadObjectFromConfig (System.Object obj, .ConfigNode node) [0x00000] in <filename unknown>:0 
  at Astrogator.Settings..ctor () [0x00000] in <filename unknown>:0 
  at Astrogator.Settings..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Astrogator.Astrogator.AddLauncher () [0x00000] in <filename unknown>:0 
  at EventVoid.Fire () [0x00000] in <filename unknown>:0

Could you please check whether there's a file at GameData/Astrogator/Astrogator.settings ? I already tested this with and without the file, but obviously I missed some quirk. Also, I assume you're on Windows?

Link to comment
Share on other sites

So if I delete the file the icon and mod are gone, but if I then reinstall with ckan everything works fine. uninstalling and reinstalling with ckan did not work the 3 times I tried it, but manually deleting the Astrogator.settings folder then reinstalling fixed it.

also the file GameData/Astrogator/Astrogator.settings 

has been replaced with GameData/Astrogator/Astrogator   and the file type says SETTINGS File

did a test run to Duna then Eve and back and everything worked just as good as I remembered, thank you for the help and for the great mod.  

2wEVtdJ.png

rvlQ1Wd.png

Edited by donatedpants
resize photos
Link to comment
Share on other sites

Astrogator v0.7.8 is a very small release addressing the problem reported by @donatedpants and @HaydenTheKing. If you're using an earlier version without problems, there's no need to upgrade; this is just so new users aren't installing a version that reacts that way to a zero-length settings file.

https://github.com/HebaruSan/Astrogator/releases/tag/v0.7.8

Link to comment
Share on other sites

Hi, I'm doing a Research Bodies playthrough and I am using your mod because it and Launch Window planner,
with their powers combined,
makes for god-like powers of efficiency.
However, planetary bodies not yet discovered are still shown in your list.
Any way to hide undiscovered locations from my list of destinations?
Cheers

Link to comment
Share on other sites

17 hours ago, donatedpants said:

Ckan download is giving me trouble also, same issue as Haydentheking, The icon just kept duplicating on in game toolbar and clicking the icon didn't open anything.

version 1.3.0.1804  / v0.7.7

if this mod has no conflicts with other mods I guess I wont bother listing 40+ mods here 

NullreferenceException: Object reference not set to an instance of an object

jtxG3iW.png

jVGthCa.png

log file-  https://drive.google.com/open?id=0Bz9LmmuLWtTDV1RJcjlPZTdhMW8

Hopefully it's something dumb I am doing wrong, thanks for any help.

also love the mod, thanks for all the help getting to other planets.

 

Ya deleting the astrogator game data folder fixed it.  I'll try 7.8 if I have a glitch again.

 

thanks every one

Edited by HaydenTheKing
Link to comment
Share on other sites

  • 2 weeks later...
2 minutes ago, genbrien said:

I dont know if its related to the beta version of KSP

Might be. I haven't tried it yet.

2 minutes ago, genbrien said:

, but I cant open Astrogator anymore.

the icon is there, on the side, but if I click on it nothing happens.

Tried 0.7.7 and 0.7.8

Any exceptions in KSP.log?

Link to comment
Share on other sites

2 hours ago, genbrien said:

[EXC 19:54:58.564] MissingMethodException: Method not found: 'DialogGUILabel..ctor'.
    Astrogator.Astrogator.ShowMainWindow ()
    Astrogator.Astrogator.Update ()

Yeah, that's probably a pre-release problem. Thanks for letting me know; I'll take a look when I have a moment. In the meantime, the previous pre-release announcement is worth reading for context on why I probably won't attempt to fix this till the pre-release is over:

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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...