Skip to content

I think there is an issue with Contracts /WBIReturnKerbalHome.cs #47

@idulort

Description

@idulort

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions