Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
idulort opened this issue Aug 20, 2023 · 0 comments
Open

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

idulort opened this issue Aug 20, 2023 · 0 comments

Comments

@idulort
Copy link

idulort commented Aug 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant