FélixBachiller Posted May 18, 2016 Share Posted May 18, 2016 2 minutes ago, dewin said: Heh! Coincidentally, I've been working on a bunch of orbital math myself using kOS -- there's a long series of steps on how to convert from position and velocity to the 6 Keplerian elements -- and some of my earlier work essentially finds the flight path angle indirectly (when realizing that the radial vector is not just a line from the planet out passing through your ship, but is instead perpendicular to prograde). KSP uses a left-handed coordinate system though, so your +z is -y and I'm not sure which part of the xz equatorial plane is the vernal equinox vector. (Though +x is probably correct). I've been trying to find out those values with kOS too, but not with a lot of success, because I know how to do a vector angle with kOS but I don't know how to input the horizontal vector, only the prograde. Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 18, 2016 Share Posted May 18, 2016 36 minutes ago, FélixBachiller said: These values are the flight path angle or the angle between the horizon and the velocity vector Do you really mean between the horizon and the velocity vector? By horizon, do you mean the vector from the vessel that is tangential to the planet surface? Surely there are more useful values for a vessel in orbit. Basically, any value that is useful and (reasonably) quick to calculate from values the game supplies can be made a readout. Deriving the actual maths is, by far, the most complex part as it often has to deal with differences in reference frames and other quirks of KSP, so the code required can end up looking much more complicated than might be expected. The more details you can give about why these readouts would be useful and how the values should be derived, the more likely they are to get implemented. Quote Link to comment Share on other sites More sharing options...
FélixBachiller Posted May 18, 2016 Share Posted May 18, 2016 (edited) 3 minutes ago, Padishar said: Do you really mean between the horizon and the velocity vector? By horizon, do you mean the vector from the vessel that is tangential to the planet surface? Surely there are more useful values for a vessel in orbit. Basically, any value that is useful and (reasonably) quick to calculate from values the game supplies can be made a readout. Deriving the actual maths is, by far, the most complex part as it often has to deal with differences in reference frames and other quirks of KSP, so the code required can end up looking much more complicated than might be expected. The more details you can give about why these readouts would be useful and how the values should be derived, the more likely they are to get implemented. Yes, by horizon I meant the local horizon. And I hope it gets implemented, because I love playing KSP only with math!! In the meantime, I will calculate the orbit by the two point method. Edited May 18, 2016 by FélixBachiller Quote Link to comment Share on other sites More sharing options...
dewin Posted May 18, 2016 Share Posted May 18, 2016 I'm not at home to pull up my .ks files (which I'll put on github eventually), but if I recall correctly (mind you, I'm not a math expert): - Your prograde vector is your velocity vector. - Your normal vector is the cross product of your velocity and position vectors. Since kOS positions are relative to the ship's reference frame, use -body:position instead. - Your radial vector is the result of rotating your prograde vector 90 degrees around the normal vector. If I understand my recent crash course in math correctly, it's also the cross product of prograde and normal:normalized. - The angle between radial and position vectors is the same as the angle between prograde and horizon. - From this, you can convert vectors from an XYZ basis to terms of prograde/normal/radial for, e.g, plotting maneuver nodes. An inclination change at LAN/LDN or anywhere on an equatorial orbit can be calculated by rotating your velocity X degrees around position, subtracting your current velocity, and converting basis. Quote Link to comment Share on other sites More sharing options...
Cronus425 Posted May 18, 2016 Share Posted May 18, 2016 Is there any way to get Kerbal Engineer working with RO? The pack recommends MechJeb but I prefer the KER UI. Currently KER works fine in the VAB, but in flight it does not show the deltaV left in the current stage. Later stages are shown fine, but as soon a staging event happens the deltaV in the next stage reads as 0. I have not tried it in RSS only to see if the problem lies there or with something else in RO yet. Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 18, 2016 Share Posted May 18, 2016 22 minutes ago, Cronus425 said: Is there any way to get Kerbal Engineer working with RO? The pack recommends MechJeb but I prefer the KER UI. Currently KER works fine in the VAB, but in flight it does not show the deltaV left in the current stage. Later stages are shown fine, but as soon a staging event happens the deltaV in the next stage reads as 0. I have not tried it in RSS only to see if the problem lies there or with something else in RO yet. The problem is that KER is not correctly handling RealFuels engines. It is on the list of things that need fixing but I've not yet got around to it for one reason or another... Quote Link to comment Share on other sites More sharing options...
Cronus425 Posted May 18, 2016 Share Posted May 18, 2016 @Padishar Ah ok, that would make sense. Glad it's at least a known issue and not some hard to reproduce thing. Thanks! Quote Link to comment Share on other sites More sharing options...
dewin Posted May 19, 2016 Share Posted May 19, 2016 @FélixBachiller Uploaded some of my kOS scripts; see https://gist.github.com/dewiniaid/1e57f68c903b38c03aedb552dabe4f95 and https://github.com/dewiniaid/ksp-kos-scripts. (Particularly lib_basis.ks). To avoid derailing this thread though, we should take any further discussion to PMs, the kOS thread, or... poke me on IRC. Quote Link to comment Share on other sites More sharing options...
toric5 Posted May 19, 2016 Share Posted May 19, 2016 i love this mod, but i also sometimes hate it. it really bothers me that many engines exert a couple of newton metres of tourqe on a perfectly balanced craft. the offset tool and small weights have become my savior! Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 19, 2016 Share Posted May 19, 2016 10 minutes ago, toric5 said: i love this mod, but i also sometimes hate it. it really bothers me that many engines exert a couple of newton metres of tourqe on a perfectly balanced craft. the offset tool and small weights have become my savior! Please post a (preferably stock) craft file (or at least a screenshot) of a vessel that does this that you consider "perfectly balanced". Quote Link to comment Share on other sites More sharing options...
toric5 Posted May 19, 2016 Share Posted May 19, 2016 (edited) 13 minutes ago, Padishar said: Please post a (preferably stock) craft file (or at least a screenshot) of a vessel that does this that you consider "perfectly balanced". a single orange tank with a mainsail. should have .02 KNm of tourqe. a twin boar, by itself, give .01 KNm. Edited May 19, 2016 by toric5 Quote Link to comment Share on other sites More sharing options...
Alshain Posted May 19, 2016 Share Posted May 19, 2016 I'm having an issue where no matter how big my maneuver is, the half-burn time is always 0, and Time to Node and Time to Node Burn are identical. Any ideas how to resolve this? Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 20, 2016 Share Posted May 20, 2016 13 hours ago, toric5 said: a single orange tank with a mainsail. should have .02 KNm of tourqe. a twin boar, by itself, give .01 KNm. I see... I assume that the thrust transforms of the engines (or possibly the CoM of the parts) are very slightly off true. I'll try to take a look at the actual figures reported for the parts later today sometime... 9 hours ago, Alshain said: I'm having an issue where no matter how big my maneuver is, the half-burn time is always 0, and Time to Node and Time to Node Burn are identical. Any ideas how to resolve this? I've not noticed this myself and, going by the lack of other reports, assume it is a problem specific to you. As with any problem in KSP or in mods, please supply an output_log.txt/player.log file, a mod list and any other supporting files (screenshots, craft, saves etc.). Do the deltaV readouts in the flight engineer give reasonable values for your vessel? Quote Link to comment Share on other sites More sharing options...
Alshain Posted May 20, 2016 Share Posted May 20, 2016 (edited) 7 hours ago, Padishar said: I see... I assume that the thrust transforms of the engines (or possibly the CoM of the parts) are very slightly off true. I'll try to take a look at the actual figures reported for the parts later today sometime... I've not noticed this myself and, going by the lack of other reports, assume it is a problem specific to you. As with any problem in KSP or in mods, please supply an output_log.txt/player.log file, a mod list and any other supporting files (screenshots, craft, saves etc.). Do the deltaV readouts in the flight engineer give reasonable values for your vessel? Well if it is just me it's not that big an issue for me, Snark added the same functionality to Better Burn Time and I like that stock alike appearance a lot more. I still use KER for a lot of other information, which is all working as far as I can tell, but a stock alike method of shortening my KER HUD is always welcome It could just be a mod conflict anyway, I'm running more mods than I ever have before. Speaking of shortening my KER HUD, a slight suggestion. If an auto-hiding field (like Burn Time or Impact Biome) in the HUD would cause a separator to be the last entry visible on the HUD, it would be nice if that separator would hide as well so it isn't just a line at the bottom for some reason. You could also apply the same logic if two separators would be displayed in a row because all the content between them is hidden, just hide one of them for a nice seamless look. This is really just my personal OCD talking, if it is a lot of trouble, I can deal with it. Edited May 20, 2016 by Alshain Quote Link to comment Share on other sites More sharing options...
Gordon Dry Posted May 20, 2016 Share Posted May 20, 2016 (edited) Spoiler Could it be that 'L' makes the 'ALT+L' no more work? I'm stuck with an unmanned rocket, purple stage lock, ALT+L does nothing. ALT+F12 - 'Clear Input Lock Stack' - and there it is again immediately. Solved. Thanks to the laggy GC (that plays with my patience) I just forgot to reattach an antenna, that's all... Edited May 20, 2016 by Gordon Dry Quote Link to comment Share on other sites More sharing options...
Galenmacil Posted May 20, 2016 Share Posted May 20, 2016 Reporting log errors in the "KerbalEngineer.log" file: Spoiler Executing: KerbalEngineer - 1.1.1.0 Assembly: G:\Kerbal Space Program 1.1.2\GameData\KerbalEngineer\KerbalEngineer.dll [Log 21:15:32.9744738]: BuildAdvanced->OnDestroy [Log 21:16:15.7460381]: ActionMenu->Awake [Log 21:16:15.7470391]: FlightEngineerCore->Awake [Log 21:16:19.5442873]: ActionMenu->Start [Log 21:16:19.5643066]: FlightEngineerCore->Start [Log 21:18:56.1143401]: ActionMenu->OnDestroy [Log 21:18:56.1338588]: FlightEngineerCore->OnDestroy [Log 21:22:06.7851991]: ActionMenu->Awake [Log 21:22:06.7851991]: FlightEngineerCore->Awake [Log 21:22:10.3327281]: ActionMenu->Start [Log 21:22:10.3352307]: FlightEngineerCore->Start [Log 21:35:07.3693893]: ActionMenu->OnDestroy [Log 21:35:07.3899112]: FlightEngineerCore->OnDestroy [Log 21:36:02.7836953]: ActionMenu->Awake [Log 21:36:02.7836953]: FlightEngineerCore->Awake [Log 21:36:06.3652480]: ActionMenu->Start [Log 21:36:06.3677502]: FlightEngineerCore->Start [Exception 21:36:06.8246989]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Exception 21:36:08.9102546]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Log 21:43:05.6160193]: ActionMenu->OnDestroy [Log 21:43:05.6285314]: FlightEngineerCore->OnDestroy [Log 21:44:11.1388131]: ActionMenu->Awake [Log 21:44:11.1388131]: FlightEngineerCore->Awake [Log 21:44:14.7353599]: ActionMenu->Start [Log 21:44:14.7378622]: FlightEngineerCore->Start [Exception 21:44:15.2018101]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Exception 21:44:17.2958737]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Log 21:48:00.2046050]: ActionMenu->OnDestroy [Log 21:48:00.2216214]: FlightEngineerCore->OnDestroy [Log 21:49:42.2433939]: ActionMenu->Awake [Log 21:49:42.2433939]: FlightEngineerCore->Awake [Log 21:49:45.8484309]: ActionMenu->Start [Log 21:49:45.8509332]: FlightEngineerCore->Start [Log 21:56:55.4313665]: ActionMenu->OnDestroy [Log 21:56:55.4493837]: FlightEngineerCore->OnDestroy [Log 22:33:37.5286381]: BuildAdvanced->OnDestroy [Log 22:34:50.1732624]: BuildAdvanced->OnDestroy [Log 22:35:46.6533817]: ActionMenu->Awake [Log 22:35:46.6533817]: FlightEngineerCore->Awake [Log 22:35:48.6974166]: ActionMenu->Start [Log 22:35:48.6999189]: FlightEngineerCore->Start [Log 22:53:19.6253070]: ActionMenu->OnDestroy [Log 22:53:19.6558362]: FlightEngineerCore->OnDestroy [Log 22:53:20.6273116]: ActionMenu->Awake [Log 22:53:20.6273116]: FlightEngineerCore->Awake [Log 22:53:22.7243600]: ActionMenu->Start [Log 22:53:22.7273631]: FlightEngineerCore->Start [Log 22:53:45.9985450]: FlightEngineerCore->OnDestroy [Log 22:53:46.0285743]: ActionMenu->OnDestroy [Log 22:53:46.9434673]: ActionMenu->Awake [Log 22:53:46.9434673]: FlightEngineerCore->Awake [Log 22:53:48.8533368]: ActionMenu->Start [Log 22:53:48.8558394]: FlightEngineerCore->Start [Log 22:54:15.1930160]: FlightEngineerCore->OnDestroy [Log 22:54:15.2230448]: ActionMenu->OnDestroy [Log 22:55:22.4137354]: ActionMenu->Awake [Log 22:55:22.4137354]: FlightEngineerCore->Awake [Log 22:55:25.2190257]: ActionMenu->Start [Log 22:55:25.2215280]: FlightEngineerCore->Start [Log 22:58:43.8525998]: FlightEngineerCore->OnDestroy [Log 22:58:43.8601070]: ActionMenu->OnDestroy [Log 22:59:46.6845340]: ActionMenu->Awake [Log 22:59:46.6845340]: FlightEngineerCore->Awake [Log 22:59:50.6084355]: ActionMenu->Start [Log 22:59:50.6109396]: FlightEngineerCore->Start [Exception 22:59:52.4627873]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Exception 22:59:55.6068570]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Log 23:03:43.1701535]: ActionMenu->OnDestroy [Log 23:03:43.1736568]: FlightEngineerCore->OnDestroy [Log 23:10:57.0539559]: BuildAdvanced->OnDestroy [Log 23:11:25.7478143]: ActionMenu->Awake [Log 23:11:25.7478143]: FlightEngineerCore->Awake [Log 23:11:29.9049437]: ActionMenu->Start [Log 23:11:29.9084486]: FlightEngineerCore->Start [Exception 23:11:30.3664032]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Exception 23:11:32.9609399]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Log 23:39:55.2619550]: FlightEngineerCore->OnDestroy [Log 23:39:55.2859775]: ActionMenu->OnDestroy [Log 23:42:05.6230669]: ActionMenu->Awake [Log 23:42:05.6230669]: FlightEngineerCore->Awake [Log 23:42:09.7310954]: ActionMenu->Start [Log 23:42:09.7335977]: FlightEngineerCore->Start [Log 23:50:14.0685752]: FlightEngineerCore->OnDestroy [Log 23:50:14.0946041]: ActionMenu->OnDestroy [Log 23:50:15.0970971]: ActionMenu->Awake [Log 23:50:15.0975976]: FlightEngineerCore->Awake [Log 23:50:18.3112427]: ActionMenu->Start [Log 23:50:18.3142458]: FlightEngineerCore->Start [Log 23:52:57.5655987]: ActionMenu->OnDestroy [Log 23:52:57.5831156]: FlightEngineerCore->OnDestroy [Log 23:52:58.6021174]: ActionMenu->Awake [Log 23:52:58.6021174]: FlightEngineerCore->Awake [Log 23:53:02.4249119]: ActionMenu->Start [Log 23:53:02.4274142]: FlightEngineerCore->Start [Log 23:53:47.2466821]: ActionMenu->OnDestroy [Log 23:53:47.2486839]: FlightEngineerCore->OnDestroy [Log 23:53:48.3742703]: ActionMenu->Awake [Log 23:53:48.3742703]: FlightEngineerCore->Awake [Log 23:53:50.9963161]: ActionMenu->Start [Log 23:53:50.9988199]: FlightEngineerCore->Start [Log 23:54:11.7019433]: FlightEngineerCore->OnDestroy [Log 23:54:11.7234669]: ActionMenu->OnDestroy [Log 23:54:12.7935019]: ActionMenu->Awake [Log 23:54:12.7935019]: FlightEngineerCore->Awake [Log 23:54:15.4065699]: ActionMenu->Start [Log 23:54:15.4095730]: FlightEngineerCore->Start [Log 23:55:01.7299051]: FlightEngineerCore->OnDestroy [Log 23:55:01.7604340]: ActionMenu->OnDestroy [Log 23:55:02.7814155]: ActionMenu->Awake [Log 23:55:02.7814155]: FlightEngineerCore->Awake [Log 23:55:05.4145105]: ActionMenu->Start [Log 23:55:05.4170128]: FlightEngineerCore->Start [Log 23:58:25.5397227]: FlightEngineerCore->OnDestroy [Log 23:58:25.5647469]: ActionMenu->OnDestroy [Log 23:58:26.6107733]: ActionMenu->Awake [Log 23:58:26.6107733]: FlightEngineerCore->Awake [Log 23:58:29.2603634]: ActionMenu->Start [Log 23:58:29.2633662]: FlightEngineerCore->Start [Log 00:07:57.0862546]: FlightEngineerCore->OnDestroy [Log 00:07:57.1318019]: ActionMenu->OnDestroy [Log 00:07:58.1633120]: ActionMenu->Awake [Log 00:07:58.1633120]: FlightEngineerCore->Awake [Log 00:08:00.6367380]: ActionMenu->Start [Log 00:08:00.6392406]: FlightEngineerCore->Start [Log 00:14:07.0832713]: ActionMenu->OnDestroy [Log 00:14:07.1037905]: FlightEngineerCore->OnDestroy [Log 00:14:08.1563370]: ActionMenu->Awake [Log 00:14:08.1563370]: FlightEngineerCore->Awake [Log 00:14:10.8109081]: ActionMenu->Start [Log 00:14:10.8134104]: FlightEngineerCore->Start [Log 00:14:53.9745136]: FlightEngineerCore->OnDestroy [Log 00:14:53.9860246]: ActionMenu->OnDestroy [Log 00:14:55.0475609]: ActionMenu->Awake [Log 00:14:55.0475609]: FlightEngineerCore->Awake [Log 00:14:57.5289776]: ActionMenu->Start [Log 00:14:57.5319801]: FlightEngineerCore->Start [Log 00:21:13.7451600]: ActionMenu->OnDestroy [Log 00:21:13.7516662]: FlightEngineerCore->OnDestroy [Log 00:21:15.0224124]: ActionMenu->Awake [Log 00:21:15.0224124]: FlightEngineerCore->Awake [Log 00:21:17.7270225]: ActionMenu->Start [Log 00:21:17.7300253]: FlightEngineerCore->Start [Log 00:22:43.6834698]: ActionMenu->OnDestroy [Log 00:22:43.6884775]: FlightEngineerCore->OnDestroy [Log 01:01:39.4827579]: BuildAdvanced->OnDestroy [Log 01:03:12.6748809]: ActionMenu->Awake [Log 01:03:12.6748809]: FlightEngineerCore->Awake [Log 01:03:16.4926075]: ActionMenu->Start [Log 01:03:16.4951101]: FlightEngineerCore->Start [Exception 01:09:30.6468856]: DisplayStack->Window // Object reference not set to an instance of an object []: at KerbalEngineer.Flight.Readouts.Rendezvous.TargetSelector.DrawTarget (KerbalEngineer.Flight.Sections.SectionModule section) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Rendezvous.TargetSelector.Draw (KerbalEngineer.Flight.Sections.SectionModule section) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Sections.SectionModule.DrawReadoutModules () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Sections.SectionModule.Draw () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.DisplayStack.DrawSections (IEnumerable`1 sections) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.DisplayStack.Window (Int32 windowId) [0x00000] in <filename unknown>:0 [Log 01:12:29.4183165]: ActionMenu->OnDestroy [Log 01:12:29.4353345]: FlightEngineerCore->OnDestroy [Log 01:31:55.4106495]: BuildAdvanced->OnDestroy [Log 01:32:50.4968832]: ActionMenu->Awake [Log 01:32:50.4968832]: FlightEngineerCore->Awake [Log 01:32:54.5158583]: ActionMenu->Start [Log 01:32:54.5188611]: FlightEngineerCore->Start [Log 01:40:21.0828841]: FlightEngineerCore->OnDestroy [Log 01:40:21.1189190]: ActionMenu->OnDestroy [Log 01:41:13.0912638]: BuildAdvanced->OnDestroy [Log 01:42:19.7576386]: ActionMenu->Awake [Log 01:42:19.7576386]: FlightEngineerCore->Awake [Log 01:42:23.7566177]: ActionMenu->Start [Log 01:42:23.7591200]: FlightEngineerCore->Start [Exception 01:42:25.6304659]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Exception 01:42:28.5643327]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Log 01:47:35.3577306]: FlightEngineerCore->OnDestroy [Log 01:47:35.3767488]: ActionMenu->OnDestroy [Log 02:03:11.3059341]: BuildAdvanced->OnDestroy [Log 02:03:57.3050348]: ActionMenu->Awake [Log 02:03:57.3050348]: FlightEngineerCore->Awake [Log 02:04:01.2609798]: ActionMenu->Start [Log 02:04:01.2639826]: FlightEngineerCore->Start [Exception 02:04:03.1198093]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Exception 02:04:07.1372508]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.FlightEngineerCore.UpdateModules () [0x00000] in <filename unknown>:0 [Log 02:04:53.5626955]: FlightEngineerCore->OnDestroy [Log 02:04:53.8129406]: ActionMenu->OnDestroy Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 20, 2016 Share Posted May 20, 2016 2 hours ago, Galenmacil said: Reporting log errors in the "KerbalEngineer.log" file: Thanks for that. Most of the errors are an issue with reading the impact biome with one being a different issue in the rendezvous window. I have added some extra logging to try to determine the causes of these issues. It would be very helpful if you (and anyone else that feels like it) could replace your main KER dll with the one from this zip and then look out for the errors happening again (the source changes can be seen on my github). The biome issue should dump out the parameters it is calling into KSP code with when it fails and the other should print "FlightGlobals.fetch returned null in TargetSelector.Draw" instead of the exception. Quote Link to comment Share on other sites More sharing options...
Galenmacil Posted May 21, 2016 Share Posted May 21, 2016 5 hours ago, Padishar said: Thanks for that. Most of the errors are an issue with reading the impact biome with one being a different issue in the rendezvous window. I have added some extra logging to try to determine the causes of these issues. It would be very helpful if you (and anyone else that feels like it) could replace your main KER dll with the one from this zip and then look out for the errors happening again (the source changes can be seen on my github). The biome issue should dump out the parameters it is calling into KSP code with when it fails and the other should print "FlightGlobals.fetch returned null in TargetSelector.Draw" instead of the exception. Downloaded your updated DLL. I will keep you informed of any further errors... Quote Link to comment Share on other sites More sharing options...
delta wee Posted May 25, 2016 Share Posted May 25, 2016 I want to modify the Vessel info so the mass is shown with 2 decimal places in kg. Is the KerbalEngineer.dll file the only one that needs to be replaced after I compile and build the modified source code? Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 25, 2016 Share Posted May 25, 2016 1 minute ago, delta wee said: I want to modify the Vessel info so the mass is shown with 2 decimal places in kg. Is the KerbalEngineer.dll file the only one that needs to be replaced after I compile and build the modified source code? Yes, assuming you have the latest release version installed then, after building the source from GitHub, you should just need to replace the one DLL. However, are you sure you really need a resolution of 10 grams? Seems a bit excessive to me... Quote Link to comment Share on other sites More sharing options...
delta wee Posted May 25, 2016 Share Posted May 25, 2016 4 minutes ago, Padishar said: Yes, assuming you have the latest release version installed then, after building the source from GitHub, you should just need to replace the one DLL. However, are you sure you really need a resolution of 10 grams? Seems a bit excessive to me... In my case I'm building a rocket that has a payload of less than 1 kg to LEO, so I need a higher resolution on the mass. Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 25, 2016 Share Posted May 25, 2016 7 minutes ago, delta wee said: In my case I'm building a rocket that has a payload of less than 1 kg to LEO, so I need a higher resolution on the mass. I assume from "LEO" that you are using RSS. If you are also using RealFuels then you should bear in mind (if you're not already aware) that there are currently issues with KER in flight that cause it to fail to calculate deltaV/TWR correctly for RF engines. If you're just using for VAB, design time, numbers then you should be fine. You may find that you also need to adjust the size of bits of the UI as some of it is quite tightly fitted and extending the length of the mass readouts may cause stuff to wrap strangely and look bad... Quote Link to comment Share on other sites More sharing options...
Galenmacil Posted May 25, 2016 Share Posted May 25, 2016 (edited) Reporting error found in the "KerbalEngineer.log" file: Spoiler [Log 02:00:14.6340845]: GetExperimentBiome(Kerbin, NaN, NaN) died [Exception 02:00:14.6340845]: Array index is out of range. []: at MapSO.GetPixelColor (Int32 x, Int32 y) [0x00000] in <filename unknown>:0 at MapSO.GetPixelColor (Single x, Single y) [0x00000] in <filename unknown>:0 at CBAttributeMapSO.GetAtt (Double lat, Double lon) [0x00000] in <filename unknown>:0 at ScienceUtil.GetExperimentBiome (.CelestialBody body, Double lat, Double lon) [0x00000] in <filename unknown>:0 at KerbalEngineer.Flight.Readouts.Surface.ImpactProcessor.Update () [0x00000] in <filename unknown>:0 This is with the updated DLL. No other errors or exception found in the main KSP log file. Edited May 25, 2016 by Galenmacil Quote Link to comment Share on other sites More sharing options...
Padishar Posted May 25, 2016 Share Posted May 25, 2016 (edited) 29 minutes ago, Galenmacil said: Reporting error found in the "KerbalEngineer.log" file: Thank you. That clearly shows that the reason the call to the stock GetExperimentBiome function is failing is because both the latitude and longitude of the impact point are being passed as NaN (not a number, an invalid numerical value used to represent undefined results). That should help to narrow down the cause... Edit: I have updated the zip in my dropbox with a speculative fix for the NaNs by clamping a calculated value that is passed to Acos to (-1,1). Edited May 25, 2016 by Padishar Quote Link to comment Share on other sites More sharing options...
delta wee Posted May 25, 2016 Share Posted May 25, 2016 (edited) I'm having some trouble building the source code for KER using Visual Studio 2012. It seems that it needs to have some .dlls from both KSP and the Unity engine, which don't seem to be available on the Github site. Are we supposed to link our entire KSP directory to the KER project somehow before building? Edited May 25, 2016 by delta wee typo Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.