You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"System.NullReferenceException: Object reference not set to an instance of an object
at LunaClient.Systems.VesselUpdateSys.VesselUpdate.GetInterpolatedAcceleration (Single interpolationValue) [0x00020] in C:\shared\kerbal space program\LunaMultiPlayer\Client\Systems\VesselUpdateSys\VesselUpdate.cs:449
at LunaClient.Systems.VesselUpdateSys.VesselUpdate.ApplySurfaceInterpolation (Single interpolationValue) [0x00001] in C:\shared\kerbal space program\LunaMultiPlayer\Client\Systems\VesselUpdateSys\VesselUpdate.cs:398
at LunaClient.Systems.VesselUpdateSys.VesselUpdate.ApplyInterpolations (Single percentage) [0x00033] in C:\shared\kerbal space program\LunaMultiPlayer\Client\Systems\VesselUpdateSys\VesselUpdate.cs:353 "
Breakpointing on VesselUpdate:449, I found that the Target.Acceleration was null, but the Target was valid. I'm not sure what the conditions are for a target to have or not have an acceleration.
The text was updated successfully, but these errors were encountered:
This occurs when we are targeting an entity which provides an Orbital update. Orbital updates do not set acceleration, but instead set Orbit (see VesselUpdateMessageHandler.cs), which means that you get a NullReference exception inside VesselUpdate when it attempts to apply a surface interpolation but the target is providing orbital coordinates.
This explains why Target.Acceleration is null. Target.Orbit does contain information, but Target.Acceleration does not.
"System.NullReferenceException: Object reference not set to an instance of an object
at LunaClient.Systems.VesselUpdateSys.VesselUpdate.GetInterpolatedAcceleration (Single interpolationValue) [0x00020] in C:\shared\kerbal space program\LunaMultiPlayer\Client\Systems\VesselUpdateSys\VesselUpdate.cs:449
at LunaClient.Systems.VesselUpdateSys.VesselUpdate.ApplySurfaceInterpolation (Single interpolationValue) [0x00001] in C:\shared\kerbal space program\LunaMultiPlayer\Client\Systems\VesselUpdateSys\VesselUpdate.cs:398
at LunaClient.Systems.VesselUpdateSys.VesselUpdate.ApplyInterpolations (Single percentage) [0x00033] in C:\shared\kerbal space program\LunaMultiPlayer\Client\Systems\VesselUpdateSys\VesselUpdate.cs:353 "
Breakpointing on VesselUpdate:449, I found that the Target.Acceleration was null, but the Target was valid. I'm not sure what the conditions are for a target to have or not have an acceleration.
The text was updated successfully, but these errors were encountered: