Skip to content

Production Facility

AMPW edited this page May 22, 2025 · 1 revision

Used to build facilities and vessels in a colony.

type: KCProductionFacility

Required parameters in the levelnode

  • baseProduction (double): how much each kerbal produces per day.

Optional parameters in the levelnode

  • experienceMultiplier (double) additional production for higher level kerbals, e.g. with experienceMultiplier = 5, a level 1 kerbal gets 0 additional production but a level 5 kerbal gets 20 additional production. Default: 0
  • facilityLevelMultiplier (double): multiplies the total production of each kerbal per facility level (starting at level 0), e.g. facilityLevelMultiplier = 0.05, a level 1 facility gets a 5% production bonus, a level 2 facility 10%, ...

The baseProduction parameter must be present in the level 0 node but may be left empty in higher levels, then the lower level value is used. The production for each production facility is calculated by totalproduction = ((baseproduction + experiencemultiplier * (kerbal level - 1)) => for each kerbal in the facility) * facilityLevelMultiplier

building vessels

A production facility that can build vessels needs the "vesselResourceCost" node in the level node and it gets transfered over to higher levels. Different production facilities with the same vessel cost can build vessels toghether, a different vessel cost can be selected at production facilities that don't have the currently selected cost. Without any production facility that can build a vessel no progress for the vessel building will be made.

The "vesselResourceCost" node is like the level resources node, it has the resouce config name as name (string) and the amount as value (double), see the example below. KCFacilityConfig { name = KCVABFacility displayName = Vehicle Assembly Facility type = KCProductionFacility

    level
    {
        0
        {
            basegroupName = KC_Base_VAB_T1
            resources { RocketParts = 625 }

            maxKerbals = 6
            upgradeTime = 200
            allowedTraits = Engineer

            baseProduction = 60
            experienceMultiplier = 5
            facilityLevelMultiplier = 0

            vesselResourceCost
            {
                Ore = 10
                RocketParts = 120
            }
        }
        1
        {
            basegroupName = KC_Base_VAB_T2
            resources { RocketParts = 750 }

            maxKerbals = 8
            baseProduction = 65
            upgradeTime = 300
            upgradeType = withGroupChange

            vesselResourceCost
            {
                RocketParts = 110
            }
        }
    }
}

Clone this wiki locally