Tutorial:Modifing Kerbals
This tutorial will detail how to modify or create Kerbals. Customization is limited to their names, gender, type, behavior, and status.
Requirements
- Knowledge of the location of the KSP installation directory.
- Simple text editor. (e.g. Notepad on Windows, TextEdit on Mac)
Locating and understanding the ROSTER section
- If you are running KSP, quit to main menu. You don't have to quit the entire game.
- Open the saves directory in your KSP installation directory.
- Open the directory of the specific saved game you wish to modify.
- Open the file named persistent.sfs with any simple text editor.
- Locate the personnel section by either:
- Searching for ROSTER. (Win: ^ Control+F, Mac: ⌘ Command+F) or you can
- Navigate (Win: ^ Control+⇲ End, Mac: ⌘ Command+↓) to the end of the file and ⇞ Page Up until you see ROSTER, it's the last section.
- Once located, the ROSTER section contains active personnel and personnel awaiting hire, each in a KERBAL{} section. Crew that can be hired have the type “Applicant”.
- Modify or create Kerbals as you wish. Reference the statistics below if needed.
- Save the file and close it.
- Run KSP to use your new crew.
Kerbal statistics
In the persistent.sfs file, all of the Kerbals visible, but not necessarily commandable, are described in the “ROSTER” block of text. Within that block, each Kerbal is defined in their own “KERBAL” block by the following parameters:
- name = Full name, visually limited to approximately 18 characters.
- gender = The gender, possible values are: “Male” and “Female”.
- type = Recruit type, can be “Crew”, “Applicant”, “Tourist” or “Unowned”.
- brave = Courage, floating decimal from 0 to 1, as of v0.23 only effects behavior.
- dumb = Stupidity, floating decimal from 0 to 1, as of v0.23 only effects behavior.
- badS = Badass trait, boolean (true or false), if set to true this Kerbal is fearless.
- state = State of the kerbal; One of the following: “Available”, “On mission”, “EVA”(?), “Missing” and “Dead”.
- ToD = Time of death, you shouldn't modify this value, for new Kerbals use the ToD value of an existing Kerbal.
- idx = Unique ID, you shouldn't modify this value, for new Kerbals set to -1.
- CAREER_LOG{} = A summary of the activities performed by the recruit. It has a flight para that is set to the number of flights the Kerbal has been on. Its value matches the flight parameter in the FLIGHT_LOG section. Activities are listed by flight number, starting with the first flight as number 0. Activities generally consist of a flight event (Flight, Orbit, Deorbit, Land, ExitVessel, BoardVessel) and an Sphere of Influence or celestial body (Kerbin, Mun) separated by a comma. The “Recover” event is an exception and does not have an SOI parameter.
- FLIGHT_LOG{}
- flight = Total number of flights the Kerbal has been on.
Each section for the Kerbals look like this:
KERBAL { name = Jebediah Kerman gender = Male type = Crew brave = 0.5 dumb = 0.5 badS = True tour = False state = Available ToD = 0 idx = 0 CAREER_LOG { flight = 1 0 = Flight,Kerbin 0 = Suborbit,Kerbin 0 = Orbit,Kerbin 0 = Land,Kerbin 0 = Recover } FLIGHT_LOG { flight = 1 } }
Bug Advisory
In version 0.23, modifying an existing Kerbal's "brave" or "dumb" values will result in the Kerbal acting in an undesired way despite displaying accurately in the Astronaut Complex and Crew Tab within the Vehicle Assembly Building. Previous and later versions are not affected.
The Original Four
If you change the names of the original four Kerbals (Jebediah, Bob, Bill, and Valentina) they will no longer have the orange flight suits.
Mods
These mods may be of interest to further customize your kerbals:
- Texture Replacer
- Kerbal Stats
- Final Frontier