Addon for the Kerbal Space Program mod kOS. Adds functionality for interacting with career mode elements like contracts, building upgrades, and the tech tree.
CKAN is recommended. For a manual install, merge the contents of the GameData folder with your GameData folder.
This is the entry point to the entire addon - see below for the suffixes available.
Closes UI elements such as the flight results, mission recovery, and science experiment results.
Recovers the specified vessel.
Returns a boolean indicating whether the specified vessel can be recovered.
Gets the current available funds.
Gets the current avialable science points.
Gets the current reputation.
Returns a list of offered CONTRACT
s. Note that this function has side effects: KSP does not generate contracts until you open the mission control window. Similarly, calling this function will regenerate the list of offered contracts.
Returns a list of active (accepted) CONTRACT
s.
Returns a list of all CONTRACT
s. Note that this function has side effects: KSP does not generate contracts until you open the mission control window. Similarly, calling this function will regenerate the list of offered contracts.
Returns a list of all TECHNODE
s.
Returns a list of TECHNODE
s that have all prerequisites met and can be unlocked.
Returns a list of the FACILITY
s at KSC.
Returns a list of all CrewMember
s. Note that this function has side effects: it may respawn dead kerbals and refresh the applicant list.
Returns a list of CrewMember
s that are currently assigned (in a vessel).
Returns a list of CrewMember
s that are available for a new launch.
Returns a list of CrewMember
s that can be hired. Note that this function has side effects: it may respawn dead kerbals and refresh the applicant list.
Tries to hire an available CrewMember
. Returns a boolean indicating whether it succeeded. Use CANHIRE
to check if this will succeed.
Tries to fire a CrewMember
. Returns a boolean indicating whether it succeeded (only available CrewMember
s can be fired).
Returns the current maximum number of crew.
Returns the current funds cost of hiring a new CrewMember
.
Returns a boolean indicating whether you can hire a new kerbal. This checks the hire cost, crew limit, and other game difficulty options.
A structure that represents a contract.
Gets the current state of the contract as a string. One of the following values:
"Generated"
"Offered"
"OfferExpired"
"Declined"
"Cancelled"
"Active"
"Completed"
"DeadlineExpired"
"Failed"
"Withdrawn"
Gets the name of the agency behind the contract.
Gets the amount of funds that will be lost if the contract is failed.
Gets the amount of funds awarded immediately when accepting the contract.
Gets the amount of funds awarded when completing the contract.
Gets the amount of science points awarded when completing the contract.
Gets the amount of reputation points awarded when completing the contract.
Gets the amount of reputation points that will be lost if the contract is failed.
Gets the title of the contract.
Gets any notes for the contract.
Gets the description for the contract
Gets a list of CONTRACTPARAMETER
structures representing the individual objectives of the contract.
Accepts the contract. Throws an exception if the current state is not "Offered".
Declines an offered contract. Throws an exception if the contract cannot be declined.
Cancels an active contract. Throws an exception if the contract cannot be cancelled.
An individual objective for a contract.
Gets the current state of the parameter as a string. Possible values are:
"Incomplete"
"Complete"
"Failed"
Gets the amount of funds that will be lost if the parameter is failed.
Gets the amount of funds awarded when completing the parameter.
Gets the amount of science points awarded when completing the parameter.
Gets the amount of reputation points awarded when completing the parameter.
Gets the amount of reputation points that will be lost if the paramater is failed.
Gets the title of the parameter.
Gets any notes for the parameter.
Gets a list of CONTRACTPARAMETER
structures representing any sub-objectives of the parameter.
A structure that represents one of the buildings at KSC.
Gets the internal name of the facility.
Gets the human-readable and localized name of the facility.
Gets the body the facility is on.
Gets the current level of the facility.
Gets the maximum level of the facility.
Gets the cost to upgrade this facility.
Upgrades the facility. Throws an exception if it cannot be done, for example if it is already max level or you do not have enough funds.
A structure that represents a node in the tech tree.
Gets the internal name of the tech node as a string.
Gets the cost in science points to research the node.
Gets the current state of the node as a string. Possible values are:
"Unavailable"
- the node has not been researched"Available"
- the node has been researched
Gets the human-readable and localized name of the tech node.
Researches the tech node. Throws an exception if this is not possible, for example if it is already researched or if you do not have enough science points.
- Added crew methods
- Update compatibility for 1.8-1.12
- initial release, compatible with KSP 1.8.x - 1.10.x