WildBlueTools
WildBlueTools copied to clipboard
I think there is an issue with Contracts /WBIReturnKerbalHome.cs
if (FlightGlobals.ActiveVessel.mainBody.flightGlobalsIndex == FlightGlobals.GetHomeBodyIndex() && (FlightGlobals.ActiveVessel.situation == Vessel.Situations.LANDED || FlightGlobals.ActiveVessel.situation == Vessel.Situations.SPLASHED || FlightGlobals.ActiveVessel.situation == Vessel.Situations.PRELAUNCH))
I'm guessing it's the "prelaunch".
I only experiened this with WBIContractVesselTour.cs (as I didn't accept any other types from the mod).
WBIKerbalStayParam works alright, counts down.
WBIFerryKerbalParam only recognizes the kerbal is in the vessel after I return to the space center and reload the vessel.
WBIReturnKerbalHome gets completed as soon as WBIFerryKerbalParam gets completed.
After WBIKerbalStayParam gets completed as well, the contract gets completed and moves into archive before the tourists are returned. The vessel with those kerbals become impossible to load, crashing during load or messing up with the entire vessel after loading.
Last time I experienced this, I deleted those kerbals from the vessel (given the contract appeared completed I assumed it was safe), and everything turned back to normal. This time I edited state = incomplete in the contracts part in the save file in advance as following.
name = WBIReturnKerbalHome enabled = False state = Incomplete values = 0,0,0,0,0 isCompleted = True titleText = Bring her home kerbalName = Irlin Kerman