Skip to content

Body

The Body { } node contains all the aspects of a body and describes the essential components for making a body. Body { } is a subnode of the @Kopernicus node.

Subnodes

Example

@Kopernicus:AFTER[Kopernicus]
{
    Body
    {
        name = Pear
        cacheFile = Fruits/Cache/Pear.bin
        barycenter = false
        identifier = Fruits/Pear
        randomMainMenuBody = true
        contractWeight = 15

        Debug
        {
            ...
        }
        Template
        {
            ...
        }
        Properties
        {
            ...
        }
        Orbit
        {
            ...
        }
        ScaledVersion
        {
            ...
        }
        PQS
        {
            ...
        }
        Ocean
        {
            ...
        }
    }
PropertyFormatDescription
nameTextThe name of the body.
cacheFileFile PathThe path to the cache file for the body.
barycenterBooleanWhether the body should act as a barycenter. Also makes the body unselectable.
identifierTextThe Unique Body Identifier (UBI) for the body. Used in the Interstellar Consortium and follows the format System/Body.
implementsText(Optional) The UBIs that the body implements. Any number of these can be used. Each line should have the key "implements" and have a UBI as the value.
finalizeOrbitBooleanWhether the orbit of the body should be finalized.
randomMainMenuBodyBooleanWhether the body should have a chance at being displayed on the Main Menu.
contractWeightIntegerHow often contracts should be generated for a body. Default is 30.

Note on cbNameLater

A common usecase for cbNameLater was for mods that replaced Kerbin with another planet, to name it to the correct (non-Kerbin) name after loading if Properties/displayName didn't work. A new, better way to do this has been added in recent versions:

@Kopernicus_config
{
    %HomeWorldName = CorrectName
}