JennDahm / KerbalSorter

A mod for Kerbal Space Program that allows players to sort their crew rosters
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Change which kerbals are auto-assigned to vessels. #7

Open JennDahm opened 9 years ago

JennDahm commented 9 years ago

It'd be great to change which kerbals are auto-assigned to vessels in the Editors and Launch Windows based on the sorting criteria that the user has chosen. I thought I found a way to do so, but it turns out it throws NullReferenceExceptions when used. I'll need to investigate that, though it's not a top priority at the moment.

JennDahm commented 9 years ago

I've discovered that the KerbalRoster object HighLogic.CurrentGame.CrewRoster has a method labelled DefaultCrewForVessel(). It's likely that this is what is used to decide which crew is auto-assigned to vessels. If I can overwrite this object with my own implementation, I could solve this issue entirely.