Jump to content

[1.12.x] Trajectories v2.4.5 (2023-08-22) : atmospheric predictions


Kobymaru

Recommended Posts

7 hours ago, Kobymaru said:

It's FAR v0.16.0.2, it always returns 0 Force. Fortunately, this has been fixed already.

So either revert to v0.16.0.1, build the current master or wait for the next FAR release.

There's actually a compile of the latest version if you download the master.

Link to comment
Share on other sites

  • 2 weeks later...

This mod is throwing a bunch of exceptions:

...
[LOG 21:06:10.630] dT is NaN! tA: NaN, E: NaN, M: NaN, T: NaN
  at System.Environment.get_StackTrace () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at Orbit.GetDTforTrueAnomaly (System.Double tA, System.Double wrapAfterSeconds) [0x00000] in <a1ca58b5ca7140639de29a81de5e3f32>:0 
  at PatchedConics._CalculatePatch (Orbit p, Orbit nextPatch, System.Double startEpoch, PatchedConics+SolverParameters pars, CelestialBody targetBody) [0x00000] in <a1ca58b5ca7140639de29a81de5e3f32>:0 
  at Trajectories.Trajectory.CreateOrbitFromState (Trajectories.Trajectory+VesselState state) [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory+<AddPatch>d__48.MoveNext () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory+<ComputeTrajectoryIncrement>d__39.MoveNext () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory.ComputeTrajectory () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory.Update () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectories.Update () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
[LOG 21:06:10.630] dT is NaN! tA: NaN, E: NaN, M: NaN, T: NaN
  at System.Environment.get_StackTrace () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at Orbit.GetDTforTrueAnomaly (System.Double tA, System.Double wrapAfterSeconds) [0x00000] in <a1ca58b5ca7140639de29a81de5e3f32>:0 
  at PatchedConics._CalculatePatch (Orbit p, Orbit nextPatch, System.Double startEpoch, PatchedConics+SolverParameters pars, CelestialBody targetBody) [0x00000] in <a1ca58b5ca7140639de29a81de5e3f32>:0 
  at Trajectories.Trajectory.CreateOrbitFromState (Trajectories.Trajectory+VesselState state) [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory+<AddPatch>d__48.MoveNext () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory+<ComputeTrajectoryIncrement>d__39.MoveNext () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory.ComputeTrajectory () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectory.Update () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
  at Trajectories.Trajectories.Update () [0x00000] in <1599f0119b6e426290c88a610947d26e>:0 
[EXC 21:06:10.631] NullReferenceException: Object reference not set to an instance of an object
	Trajectories.Trajectory.RealMaxAtmosphereAltitude (CelestialBody body) (at <1599f0119b6e426290c88a610947d26e>:0)
	Trajectories.Trajectory+<AddPatch>d__48.MoveNext () (at <1599f0119b6e426290c88a610947d26e>:0)
	Trajectories.Trajectory+<ComputeTrajectoryIncrement>d__39.MoveNext () (at <1599f0119b6e426290c88a610947d26e>:0)
	Trajectories.Trajectory.ComputeTrajectory () (at <1599f0119b6e426290c88a610947d26e>:0)
	Trajectories.Trajectory.Update () (at <1599f0119b6e426290c88a610947d26e>:0)
	Trajectories.Trajectories.Update () (at <1599f0119b6e426290c88a610947d26e>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 21:06:10.671] CheckEncounter: failed to find any intercepts at all
...

* This block keeps repeating indefinitly!

Steps:

1) Take off with a airplane from the airfield

2) In the air, make a EVA with some Kerbal

3) Deploy the parachute

Info:

Mod Version:  2.4.0

KSP Version: 1.12.0

* Stock Aerodynamics!

 

Thanks.

Edited by Dominiquini
Link to comment
Share on other sites

On 6/25/2021 at 2:10 AM, Dominiquini said:

This mod is throwing a bunch of exceptions:

KSP Version: 1.12.0

Because it's compatible with versions up to 1.11.

ps.: Next guy who says it doesn't work with 1.12 or asks for an update gets reported. It will be ready when it's ready.

Edited by Kobymaru
Link to comment
Share on other sites

On 6/25/2021 at 2:10 AM, Dominiquini said:

1) Take off with a airplane from the airfield

2) In the air, make a EVA with some Kerbal

Turns out that this is enough to reproduce it, and turns out it's unrelated to KSP 1.12 and has been in the mod for a long time. I have trouble figuring out the reason though, so for now please just disable Trajectories when you fly an EVA Kerbal.

For 1.12 I should do more testing, but hopefully I can get a release out soon.

Link to comment
Share on other sites

New release is up!

Version 2.4.1 for KSP 1.8 to 1.12.x

Download from GitHub or Spacedock

Changelog:

## v2.4.1 for KSP 1.8 to 1.12.x
 - 2021-06-27

### Changes since the last release

 - Support for KSP 1.12.x
 - Max decelerating G-force readout now correctly displays the predicted value
 - Targeting vessels that are splashed down is now possible
Edited by Kobymaru
Link to comment
Share on other sites

Is there any way to manually enter drag data in Trajectories? I make extensive use of the Inline Balutes mod for reentry, which unfortunately makes trajectories almost useless because my craft has a massive increase in drag over what it expects, so my impact is dozens, even hundreds sometimes, of km shorter than indicated. The mod is still useful some in helping me generally plot my reentry burn to come down in the vicinity of the KSC, but there isn't really any "precision" to it to speak of. 

I haven't a clue how to calculate the drag of the inflated balute, but I figure that, if it's possible to manually enter data, I can just do trial and error to get something close to correct. 

Link to comment
Share on other sites

  • 3 weeks later...

ugh the bug with far where it doesn't auto update the trajectory even with that option on has appeared again, what was causing that last time? Don't have time to get a clean log atm, will update with it later if I can't figure out what's causing it.

Edited by Crimor
Link to comment
Share on other sites

On 8/2/2021 at 1:54 PM, HintSystem said:

It's not working for me either not sure what logs you need but here are the module manager logs

MMPatch.log: https://pastebin.com/SGJjTXua
ModuleManager.log: https://pastebin.com/ZBySvJLL

Btw I was using the normal toolbar, also here are the player logs

Player.log: mega.nz

Edit: I was trying to use this mod while in a scenario, and apparently this mod does not appear while playing in a scenario, otherwise it works fine!

Edited by HintSystem
Link to comment
Share on other sites

On 8/1/2021 at 5:39 PM, willysilly said:

ive installed the 1.12 version its not showing on blizzys or the nromal tool bar and nothing is showing. how do i get it to work? and yes i have module manager

 

12 hours ago, HintSystem said:

It's not working for me either not sure what logs you need but here are the module manager logs

MMPatch.log: https://pastebin.com/SGJjTXua
ModuleManager.log: https://pastebin.com/ZBySvJLL

 

Read this BEFORE asking for supporthttp://forum.kerbalspaceprogram.com/index.php?/topic/83212-how-to-get-support-read-first/

 

Please keep in mind this is not my mod, I'm just telling you what will be needed to help

Link to comment
Share on other sites

  • 2 weeks later...

It's fair to say I have become reliant on this mod. I could not land on anything without it. However, there is one aspect of this mod that I've found to be very tedious:

I find that I am constantly having to toggle "fixed body" on and off. I need it on when landing on pretty much anything, but especially for a fast-rotating non-atmospheric body like Minmus (though on any body, "fiixed body" is better for "in-flight" tracking). But if I leave it on all the time, it creates a terrible amount of visual clutter in eliptical and transfer orbit, which implores me to turn it off. However, the processes of toggling this option (which for me requires right clicking the Blitzy's Toolbar button to open the mod menu, toggling the option, then closing the menu again) gets very tedious after a while. Left clicking Blitzy's Toolbars button toggles the entire mod on and off, but I almost never need to disable the entire mod, just the fixed body tracking.

It would be much more convienient to have a quick toggle button for "fixed body."

However, considering that fixed body tracking is only needed when close to a celestial body, except maybe to show a synchronous orbit, I think a better soulution would be to have an option that allows the user to set a maximum altitude for fixed body tracking, above which it would stop.

rrmrpgzyzoyy.jpg?width=640&crop=smart&au

Link to comment
Share on other sites

Using 2.4.1 mod version and 1.12.2 KSP, getting this nullref when switching to a vessel in flight scene:

 

[ERR 15:43:05.500] Exception loading ScenarioModule Trajectories: System.TypeInitializationException: The type initializer for 'Trajectories.Settings' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader+LoadedAssembyList.GetPathByType (System.Type type) [0x00020] in <cd473063d3a2482f8d93d388d0c95035>:0
  at AssemblyLoader.GetPathByType (System.Type type) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0
  at KSP.IO.IOUtils.GetFilePathFor (System.Type T, System.String file, Vessel flight) [0x00005] in <cd473063d3a2482f8d93d388d0c95035>:0
  at KSP.IO.PluginConfiguration.CreateForType[T] (Vessel flight) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0
  at Trajectories.Settings..cctor () [0x00007] in <54b43012425c4547b2c53f8eb9f179ca>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Trajectories.Trajectories.OnLoad (ConfigNode node) [0x0000b] in <54b43012425c4547b2c53f8eb9f179ca>:0
  at ScenarioModule.Load (ConfigNode node) [0x0000e] in <cd473063d3a2482f8d93d388d0c95035>:0
  at ScenarioRunner.AddModule (ConfigNode node) [0x0005e] in <cd473063d3a2482f8d93d388d0c95035>:0 

A friend let me know that I needed the .bin file in the same folder as the DLL. He uses Trajectories122.bin in the same folder, and works fine on 1.12.2 (game ver) with no issues, but his Trajectories is version 2.3.4 while mine is 2.4.1. I used his bin file there when this nullref was produced. I tried all this because Trajectories, like others have mentioned here, was not showing up for me at all despite being installed, but this bin file solution doesn't appear to work either.

Edited by sjsharks39
Link to comment
Share on other sites

6 minutes ago, sjsharks39 said:

Using 2.4.1 mod version and 1.12.2 KSP, getting this nullref when switching to a vessel in flight scene:

 

[ERR 15:43:05.500] Exception loading ScenarioModule Trajectories: System.TypeInitializationException: The type initializer for 'Trajectories.Settings' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at AssemblyLoader+LoadedAssembyList.GetPathByType (System.Type type) [0x00020] in <cd473063d3a2482f8d93d388d0c95035>:0
  at AssemblyLoader.GetPathByType (System.Type type) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0
  at KSP.IO.IOUtils.GetFilePathFor (System.Type T, System.String file, Vessel flight) [0x00005] in <cd473063d3a2482f8d93d388d0c95035>:0
  at KSP.IO.PluginConfiguration.CreateForType[T] (Vessel flight) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0
  at Trajectories.Settings..cctor () [0x00007] in <54b43012425c4547b2c53f8eb9f179ca>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Trajectories.Trajectories.OnLoad (ConfigNode node) [0x0000b] in <54b43012425c4547b2c53f8eb9f179ca>:0
  at ScenarioModule.Load (ConfigNode node) [0x0000e] in <cd473063d3a2482f8d93d388d0c95035>:0
  at ScenarioRunner.AddModule (ConfigNode node) [0x0005e] in <cd473063d3a2482f8d93d388d0c95035>:0 
 

A friend let me know that I needed the .bin file in the same folder as the DLL. He uses Trajectories122.bin in the same folder, and works fine on 1.12.2 (game ver) with no issues, but his Trajectories is version 2.3.4 while mine is 2.4.1. I used his bin file there when this nullref was produced. I tried all this because Trajectories, like others have mentioned here, was not showing up for me at all despite being installed, but this bin file solution doesn't appear to work either.

Huh?  What "bin" file?  I don't see any "bin" file in the release file.

Looks like there may be a missing config file, just guessing.  The error is happening in the Settings module, when it's being created.  

Also, you should always provide the log file.  You have no idea if anything else in the log file might help, providing a snippit like this is almost always useless in and of itself.  The snippet along with a log file can be  very helpful.

see my signature 

Link to comment
Share on other sites

On 8/13/2021 at 3:09 PM, Rethkir said:

It's fair to say I have become reliant on this mod. I could not land on anything without it. However, there is one aspect of this mod that I've found to be very tedious:

Eventually an option to automatically switch to complete mode when an orbit intersects the surface of a planet will be implemented but it's at the bottom of the list tbh. You can keep up with development on the Trajectories GitHub Issues · neuoy/KSPTrajectories (github.com)

 

On 8/15/2021 at 11:46 PM, sjsharks39 said:

Using 2.4.1 mod version and 1.12.2 KSP, getting this nullref when switching to a vessel in flight scene:

A friend let me know that I needed the .bin file in the same folder as the DLL. 

The .bin files where used in older versions, they are now gone. I would suggest deleting the Trajectories folder from GameData and reinstalling.

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