Skip to content
Matthew Mahnke edited this page Sep 18, 2013 · 3 revisions

Welcome to the KOS wiki!

Getting Started

Overview of kOS

kOS is a scriptable autopilot Mod for Kerbal Space Program. It allows you write small programs that automate specific tasks. kOS can interact with other parts on your craft via action groups, it can also be set to run programs in response to action groups being fired.

Installation

  1. Download the latest version that is provided in the forum page.
  2. Simply merge the contents of the .zip file into your Kerbal Space Program GameData folder. Note: Versions 0.5 and earlier do not use the GameData folder. Folder structure should look like this: Kerbal Space Program/GameData/kOS.

Usage

Add the Compotronix SCS part to your vessel; it’s under the “Control” category in the Vehicle Assembly Building or Space Plane Hanger. After hitting launch, you can right-click on the part and select the “Open Terminal” option. This will give you access to the KerboScript interface where you can begin issuing commands and writing programs.

The SCS module requires some electric charge to operate. You can shut it off to save power by right-clicking it and using the "Toggle Power" option.

Some commands can be aborted, including programs that you have run. Simply open the terminal and hit control-c to break. This is useful if you accidentally write something that runs forever.

KerboScript

KerboScript is a programming language that is derived from the language of planet Kerbin, which sounds like gibberish to non-native speakers but for some reason is written exactly like English. As a result, KerboScript is very English-like in its syntax. For example, it uses periods as statement terminators.

The language is designed to be easily accessible to novice programmers, therefore it is case-insensitive, and types are cast automatically whenever possible.

A typical command in KerboScript might look like this:

PRINT “Hello World”.

API for writing programs:

See Also

Clone this wiki locally