kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

SpaceCenter.Service.LaunchVessel throws exception in WaitForVesselSwitch

JonnyOThan opened this issue ยท 0 comments

commented

KRPC Version: 0.4.8
KSP Version: 1.5.1

Trying to use LaunchVessel fails in WaitForVesselSwitch, both from the KSC scene and from flight, with this stack trace:

KRPC.Client.RPCException: Object reference not set to an instance of an object
Server stack trace:

  at KRPC.SpaceCenter.Services.SpaceCenter.WaitForVesselSwitch (Int32 tick) [0x00000] in <filename unknown>:0
  at KRPC.Continuations.ParameterizedContinuationVoid`1[System.Int32].Run () [0x00000] in <filename unknown>:0
  at KRPC.Continuations.Continuation.RunUntyped () [0x00000] in <filename unknown>:0
  at KRPC.Service.Services.ExecuteCall (KRPC.Service.Scanner.ProcedureSignature procedure, IContinuation continuation) [0x00000] in <filename unknown>:0
   at KRPC.Client.Connection.Invoke(ProcedureCall call)
   at KRPC.Client.Connection.Invoke(String service, String procedure, IList`1 arguments)
   at KRPC.Client.Services.SpaceCenter.Service.LaunchVessel(String craftDirectory, String name, String launchSite, Boolean recover)